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:

  1. text
  2. postback
  3. web_url
  4. phone_number
265265
{
  "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"
        }
      ]
    }
  ]
}
ParameterTypeDesription
titlestringREQUIRED
typestringREQUIRED
uristringThe link for the web_url button.
datastringCustom data that will return on postback button click event via webhooks.