Suggestions
Response suggestions can be given by the bot in order to save the time and trouble of typing for visitors. This card can be used to display suggestions and route the bot conversation based on the selected suggestion.
- Suggestions are a list, you can stack more than one suggestion.
- Suggestions only accept collection as the value.
- The collection, in turn, must only have a list of strings separated by a comma.
- There is no limit to suggestions.
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 more than 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 more than 20 will be trimmed, and only the first 20 characters will be displayed.
WhatsApp:
- The card is supported on WhatsApp.
- A maximum of 10 buttons (20 characters each) will be provided in a list format.
- If the suggestion number is lesser than or equal to 3, all suggestions will be listed as buttons.
- When more than 10 suggestions are provided, only the first 10 will be displayed.
- The characters exceeding more than 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.
Syntax
Copied{
"suggestions": [
"Suggestion1",
"Suggestion2",
"Suggestion3"
]
}
Sample Code
Copied{
"action": "reply",
"replies": [
"How can we help?",
],
"suggestions": [
"Deal of the day,
"Just browsing",
"I need assistance",
"About Zylker Policies"
]
}