Add buttons to the messages that you send.
Buttons simplify the communication process with your customer and allow you to receive specified answers from them.
To add a button, you must send it as part of a Template.
We have 4 types of buttons:
- text
- postback
- web_url
- phone_number

{
"templates": [
{
"subtitle": "What's your favorite band?",
"buttons": [
{
"title": "Led Zeppelin",
"type": "postback",
"data": "My custom data - Led Zeppelin. This data returns to your webhook url"
},
{
"title": "Pink Floyed",
"type": "text"
},
{
"title": "The Rolling Stones",
"type": "web_url",
"uri": "https://en.wikipedia.org/wiki/The_Rolling_Stones"
}
]
}
]
}
Parameter | Type | Desription |
---|---|---|
title | string | REQUIRED |
type | string | REQUIRED |
uri | string | The link for the web_url button. |
data | string | Custom data that will return on postback button click event via webhooks. |