Overview
Quick Replies for RCS for Business include the question/statement text and a set of up to 11 replies that each contain:
- Title text (including emojis)
- A
publishTextclick action.
While Quick Reply buttons can contain other actions, they are primarily designed for text responses. For more advanced actions like opening URLs or maps, please see our Suggested Actions Template.
Quick Replies example image:
JSON Template Properties
| Property Name | Description | Type | Required |
|---|---|---|---|
| type | Types of basic elements supported by Structured Content framework. Will always be set to "quickReplies" | String | Y |
| itemsPerRow | The number of items that will be set on each row. For RCS quick replies this property is ignored, since RCS has a fixed set of one row. | Integer | Y |
| replies | Array of quick replies sent to the consumer. Each reply is a button object. | Array | Y |
| button | Buttons contain click and action properties that define the type of action set on user click operation. | Object | Y |
| click | Click objects contain the `actions` array which defines the action(s) to perform on click. | Object | Y |
| actions | A list of action objects to be performed when the user clicks the button. The primary action for a Quick Reply is publishText. For other supported actions, please see the Suggested Actions Template. |
Array | Y |
Quick Reply Template Code Example
This example shows a standard Quick Reply with publishText actions.
{
"type": "quickReplies",
"itemsPerRow": 8,
"replies": [
{
"type": "button",
"tooltip": "Not likely at all",
"title": "Not likely at all",
"click": {
"actions": [
{
"type": "publishText",
"text": "Not likely at all"
}
]
}
},
{
"type": "button",
"tooltip": "Not likely",
"title": "Not likely",
"click": {
"actions": [
{
"type": "publishText",
"text": "Not likely"
}
]
}
},
{
"type": "button",
"tooltip": "likely",
"title": "likely",
"click": {
"actions": [
{
"type": "publishText",
"text": "likely"
}
]
}
},
{
"type": "button",
"tooltip": "Very likely",
"title": "Very likely",
"click": {
"actions": [
{
"type": "publishText",
"text": "Very likely"
}
]
}
}
]
}
Limitations
- Maximum of 11 replies for each template.
- Each quick reply button
titlecan contain up to 25 characters. - Agent or bot will receive an error when trying to send Quick Replies if the
titletext exceeds 25 characters.