Multiple Select Option for Zia Skills

This card can be used to collect more than one option from the list of options provided. The card waits until the visitor picks the options and press the submit button to send the input. The options that were selected by the visitors will be displayed as comma separated values in the chat window .

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be displayed to the visitormultiple-select
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.
max_selectionNoThe maximum number of options allowed to be selected from the given options arrayYou can set minimum 2 - maximum options you have in the array.

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": "multiple-select",
    "options": [
        "Classic",
        "Chalse",
        "Recliner",
        "Ploolside",
        "Wing"
    ],
    "max_selection": "3"
});
prompt = Map();
prompt.put("param_name", "rating");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;

Output: