Slider Option for Zia Skills
This card can be used to collect the input from the visitor with a slider interface ie., they can choose a range starting from the first in the pre-defined range of inputs.
Attribute | Mandatory | Description | Values |
type | Yes | The type of the input to be displayed to the visitor | slider |
values | Yes | An array of string you would like to mark in the slider as options | You can enter maximum of 10 options in the array, and the character limit for each option is 10. |
Use Case:
Context Handler function:
Copiedresult = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [
"Happiness rating for the chat you just had with Zyt"
]);
response.put("input", {
"type": "slider",
"values": [
"Sad",
"Neutral",
"Happy"
]
});
prompt = Map();
prompt.put("param_name", "slider");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;