Star Rating for Zia Skills
This card can be used to obtain the rating from the visitor in the star input format.
Attribute | Mandatory | Description | Values |
type | Yes | The type of the input to be displayed to the visitor | star-rating |
level | No | The number of stars to be displayed to the visitor | 3-10 |
Use Case:
Context Handler function:
Copiedresult = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [
"Rate the chat session that you had with Zyt"
]);
response.put("input", {
"type": "star-rating",
"level": "5"
});
prompt = Map();
prompt.put("param_name", "rating");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;
Output: