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.

SalesIQ Script Input:


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

Dialogflow Input:


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

Watson Assistant:


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

Zia Skills Platform Input:

For Param Loader function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Please choose an option:"
});
response.put("input", {
  "type": "select",
  "options": [
    "Classic",
    "Chalse",
    "Recliners",
    "Wing",
    "Poolside"
  ]
});
additionalParams = {
    {
        "name": "select-single",
        "data_type": "STRING",
        "input_mode": "TEXTUAL",
        "prompt_msg": "Please choose an option:",
        "data": response
    }
};
result.put("additionalParams", additionalParams);
return result;

For Context Handler function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Please choose an option:"
});
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;

For Execution function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Please choose an option:"
});
response.put("input", {
  "type": "select",
  "options": [
    "Classic",
    "Chalse",
    "Recliners",
    "Wing",
    "Poolside"
  ]
});
result.put("data", response);
return result;

 

Output: