Happiness Rating
This card can be used to get the visitors' ratings with smiles.
| 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 | 
| set_conversation_rating | No | To update the feedback on the Feedback sessions | true/false | 
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.
Telegram:
- The card is supported on Telegram.
- When using this card, users get ratings as single select options. They can choose an option to provide the rating.
LINE:
- The card is supported on LINE.
- When using this card, users get ratings as single select options. They can choose an option to provide the rating.
Use Case
Copied{
  "type": "happiness-rating",
  "level": "5",
  //Key for updating the rating in feedback section
  "set_conversation_rating":true
}Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [
    "Please rate us :)"
]);
response.put("input", {
    "type": "happiness-rating",
    "level": "3"
});
prompt = Map();
prompt.put("param_name", "rating");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;
//Execution function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Please rate us"
});
response.put("input", {
    "type": "happiness-rating",
    "level": "3"
});
result.put("data", response);
return result;Copied{
  "type": "happiness-rating",
  "level": "5",
  //Key for updating the rating in feedback section
  "set_conversation_rating":true
}Copied{
  "platform": "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
  }
}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
    }
  }
}Copied"channelData": {
        "zohosalesiq": {
            "input": {
             "type": "happiness-rating",
             "level": "5"
              //Key for updating the rating in the feedback section
              "set_conversation_rating":true
           },
           "replies":[{"Your order is successfully placed, you will be getting an order confirmation mail shortly. Would you mind rating my service ?"]}
    }





