Single Select Option for Zia Skills
This card can be used to collect an option as input from the list of options given. Once the visitor chooses an option, the value will be taken as an input and the options displayed will be hidden.
Attribute | Mandatory | Description | Values |
type | Yes | The type of the input to be displayed to the visitor | select |
options | Yes | An array of string you would like to display as options | You can enter maximum of 10 options in the array, and the character limit for each option is 30. |
Use Case:
Context Handler function:
Copiedresult = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [
"We have the following loungers stacked up in our store"
]);
response.put("input", {
"type": "select",
"options": [
"Classic",
"Chalse",
"Recliners",
"Wing",
"Poolside"
]
});
prompt = Map();
prompt.put("param_name", "rating");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;