Single Select Option

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.

 

Note: The character limit for the options is 30.

Use Cases:

SalesIQ Scripts:


{
  "type": "select",
  "options": [
    "Classic",
    "Chalse",
    "Recliners",
    "Wing",
    "Poolside"
  ]
}

Dialogflow:


{
  "platform": "ZOHOSALESIQ",
  "replies": [
      "We have the following loungers stacked up in our store"
    ],
  "input": {
    "type": "select",
    "options": [
      "Classic",
      "Chalse",
      "Recliners",
      "Wing",
      "Poolside"
    ]
  }
}

Watson Assistant:


"user_defined": {
  "zohosalesiq": {
    "replies": [
      "We have the following loungers stacked up in our store"
    ],
    "input": {
      "type": "select",
      "options": [
        "Classic",
        "Chalse",
        "Recliners",
        "Wing",
        "Poolside"
      ]
    }
  }
}

Zia Skills:

Context Handler function:


result = 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: