Happiness Rating
This card can be used to obtain the rating from the visitor and update it on the Feedback section in the smiley input format.
Attributes | Mandatory | Description | Values |
type | Yes | The type of input to be displayed to the visitor | happiness-rating |
level | No | If you would like to handle the smileys using code use the values below:
| 3 / 5 |
Note: The ratings will not be updated for the transferred and missed chats.
Channel compatibility and limitations
Facebook Messenger:
- The card is supported on Facebook.
- The users would get the ratings as single select options. They can choose an option to provide the rating.
Instagram:
- The card is supported on Instagram.
- When using this card, the users would get the ratings as single select options. They can choose an option to provide the rating.
WhatsApp:
- The card is supported on WhatsApp.
- When using this card, the rating will be given in the list format or single select options.
- If the rating number equals 3, all ratings will be listed as single select options.
- When the rating exceeds 3, all 5 ratings will be displayed in the list format.
Sample code
Copied"user_defined": {
"zohosalesiq": {
"replies": [
"Your order is successfully placed, you will be getting an order confirmation mail shortly. Would you mind rating my service ?"
],
"input": {
"type": "happiness-rating",
"level": "5"
//Key for updating the rating in the feedback section
"set_conversation_rating":true
}
}
}