Like Button

This card can be used to collect the feedback from the visitors as like/dislike (thumbsup / thumbsdown) inputs format.

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be displayed to the visitorlike

SalesIQ Script Input:


				{
  "type": "like"
}			

Dialogflow Input:


				{
  "platform": "ZOHOSALESIQ",
  "input": {
    "type": "like"
  }
}			

Watson Assistant


				"user_defined": {
 "zohosalesiq": {
        "input": {
          "type": "like"
        }
      }
}			

Zia Skills Platform Input:

For Param Loader function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "How did you like our service?"
});
response.put("input", {
    "type": "like"
});
additionalParams = {
    {
        "name": "like",
        "data_type": "STRING",
        "input_mode": "TEXTUAL",
        "prompt_msg": "How did you like our service?",
        "data": response
    }
};
result.put("additionalParams", additionalParams);
return result;

For Context Handler function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "How did you like our service?"
});
response.put("input", {
    "type": "like"
});
prompt = Map();
prompt.put("param_name", "rating");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;

For Execution function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "How did you like our service?"
});
response.put("input", {
    "type": "like"
});
result.put("data", response);
return result;

 

Output: