Single select option 

This card helps to get input from an options list. You can present the visitors with multiple options to get a (one) response. The main difference between a single select option card and a suggestion is that the suggestion can create multiple flows based on the visitors' response, whereas the options can be used to collect information from the visitors. 

AttributeMandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorselect
optionsYesAn array of strings you would like to display as optionsA maximum of 20 options in the array with a character limit of 80 each can be given.
Channel compatibility and limitations

     

Facebook Messenger:

  • The card is supported on Facebook. 
  • A maximum of 13 buttons (20 characters each) will be provided in a horizontal scrolling format.
  • When more than 13 suggestions are provided, only the first 13 will be displayed.
  • The characters exceeding 20 will be trimmed, and only the first 20 characters will be displayed.

Instagram:

  • The card is supported on Instagram. 
  • A maximum of 13 buttons (20 characters each) will be provided in a horizontal scrolling format.
  • When more than 13 suggestions are provided, only the first 13 will be displayed.
  • The characters exceeding 20 will be trimmed, and only the first 20 characters will be displayed.

WhatsApp:

  • The card is supported on WhatsApp.
  • A maximum of 10 options (20 characters each) will be provided in a list format.
  • If the option number is lesser than or equal to 3, all options will be listed as buttons.
  • When more than 10 options are provided, only the first 10 will be displayed.
  • The characters exceeding 20 will be trimmed, and only the first 20 characters will be displayed.

Telegram:

  • The card is supported on Telegram. 
  • A maximum of 20 buttons (40 characters each) will be provided in a horizontal scrolling format.
  • When more than 20 suggestions are provided, only the first 20 will be displayed.
  • The characters exceeding 40 will be trimmed, and only the first 40 characters will be displayed.

LINE:

  • The card is supported on LINE. 
  • A maximum of 13 buttons (20 characters each) will be provided in a horizontal scrolling format.
  • When more than 13 suggestions are provided, only the first 13 will be displayed.
  • The characters exceeding 20 will be trimmed, and only the first 20 characters will be displayed.

Output

Use Case

Copied{
  "type": "select",
  "options": [
    "Monthly Plan",
    "Quartey Plan",
    "Yearly plan"
  ]
}
Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [
    "Please choose an option:"
]);
response.put("input", {
    "type": "select",
    "options": [
           "Monthly Plan",
           "Quartey Plan",
           "Yearly plan"
    ]
});
prompt = Map();
prompt.put("param_name", "rating");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;

//Execution function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Please choose an option:"
});
response.put("input", {
  "type": "select",
  "options": [
       "Monthly Plan",
       "Quartey Plan",
       "Yearly plan"
  ]
});
result.put("data", response);
return result;
Copied{
  "type": "select",
  "options": [
    "Monthly Plan",
    "Quartey Plan",
    "Yearly plan"
  ]
}
Copied{
  "platform": "ZOHOSALESIQ",
  "replies": [
      "Kindly select your plan"
    ],
  "input": {
    "type": "select",
    "options": [
    "Monthly Plan",
    "Quartey Plan",
    "Yearly plan"
    ]
  }
}
Copied"user_defined": {
  "zohosalesiq": {
    "replies": [
      "Kindly select your plan"
    ],
    "input": {
      "type": "select",
      "options": [
    "Monthly Plan",
    "Quartey Plan",
    "Yearly plan"
      ]
    }
  }
}
Copied"channelData":{
        "zohosalesiq": {
            "input": {
              "type": "select",
              "options": [
    "Monthly Plan",
    "Quartey Plan",
    "Yearly plan"
              ]
            },
            "replies":[{
                "text" : "Kindly select your plan"
            }]
        }
    }