Button Template

Makes a message bot send a button template message.

You can use the button to add the postback parameter to a message, which then the server can receive as a callback. For more information, see Receive Messages (Callback).

A message to send can be written in multiple languages. Then, it will be displayed in the language that matches the client device's language settings.

The following figure shows the button template structure.

structure_button

Note

  • A button template can have up to 10 buttons.

Request content {#button-request}

ParameterTypeRequiredDescription
typestringYSet this parameter to "button_template".
contentTextstringYBody content
i18nContentTexts[]arrayNList of multilingual body texts
i18nContentTexts[].languagestringYLanguage code
• ko_KR • ja_JP • zh_CN • zh_TW • en_US
i18nContentTexts[].contentTextstringYBody text in the language
Maximum length: 1,000 characters
actionsarray<Action Object>YButtons to be used in the button template

Request example {#button-request-example}

example_button

{  "content": {    "type": "button_template",    "contentText": "What do you want?",    "actions": [{      "type": "uri",      "label": "WorksMobile Homepage",      "uri": "https://line.worksmobile.com"    }, {      "type": "message",      "label": "FAQ",      "postback": "ButtonTemplate_FAQ"    }]  }}