Skip to main content

Web Chat Button Types

Use buttons to request input from users. Both response templates (including Button, Carousel and List) as well as the persistent menu support buttons that can perform different kinds of actions:


URL Button

Web Chat URL Button
Web Chat URL Button
Open Website in New Tab
Open Website in New Tab

The URL Button can be used to open a web page in a new tab within the same browser.

{
type: "web_url",
title: "some title",
url: "https://sanuker.com",
}
PropertyDescriptionRequired
typeweb_urlY
titleStringY
urlURL of the destinationY

Postback Button

Web Chat Payload Button
Web Chat Payload Button
Sending Response through Payload Button
Sending Response through Payload Button

The Postback Button helps invoke an action (usually sending an answer back) in your chatbot. You can set a payload to the button.

{
type: "postback",
title: "some title",
payload: "some payload",
}
PropertyDescriptionRequired
typepostbackY
titleStringY
payloadCustom defined payload triggersY

Call Button

Call Button
Call Button

The Call Button can be used to initiate a phone call directly.

{
type: "phone_number",
title: "Call us",
payload: "+85281930208"
}
PropertyDescriptionRequired
typephone_numberY
titleStringY
payloadFormat must have "+" prefix followed by the country code, area code and local number without any spaceY