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.

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be displayed to the visitorselect
optionsYesAn array of string you would like to display as optionsYou 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;

Output: