Twilio/quick-reply templates let recipients tap, rather than type, to respond to the message.
(warning)
Warning
Twilio/quick-reply templates can be sent via WhatsApp for out of session messages with variables. If the template's body starts or ends with a variable or has two variables next to each other, the template will not be approved by WhatsApp without a sample variable. For additional information about variables see Using Variables with Content Templates.
Supported Channels
WhatsApp, Facebook Messenger
Message Preview
Data Parameters
body:
Type:
string
Required:
yes
Variable Support:
yes
Description: The text of the message you want to send. This is included as a regular text message.
Variable Support:
See Common Components:
Actions
definition
Description: Buttons that recipients can tap on to act on the message:
Up to 3 buttons can be created for Quick Reply buttons. Please use "type," "title", and "id" actions to create quick reply buttons within the actions array.
Create a Quick Reply Template
Code sample for creating a template using content API
curl
_30
curl -X POST 'https://content.twilio.com/v1/Content' \
_30
-H 'Content-Type: application/json' \
_30
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN \
_30
-d '{
_30
"friendly_name": "flight_replies",
_30
"language": "en",
_30
"variables": {"1":"Owl Air Customer"},
_30
"types": {
_30
"twilio/quick-reply": {
_30
"body": "Hi, {{1}} 👋 \nThanks for contacting Owl Air Support. How can I help?",
_30
"actions": [
_30
{
_30
"title": "Check flight status",
_30
"id": "flightid1"
_30
},
_30
{
_30
"title": "Check gate number",
_30
"id": "gateid1"
_30
},
_30
{
_30
"title": "Speak with an agent",
_30
"id": "agentid1"
_30
}
_30
]
_30
},
_30
"twilio/text": {
_30
"body": "Hi, {{1}}. \n Thanks for contacting Owl Air Support. How can I help?."