Button settings allow you to customize every button in your bot flow. You can use them to add titles to your buttons, define what happens after the user clicks a button, or add actions performed in the background.
In ChatBot, the button settings are divided into two groups: general settings and Advanced button actions settings.
General settings
General settings let you define the button’s behavior - you can create a menu card response that navigates users through the bot flow. To proceed, the user must click the button without typing anything.
Below the title, you can choose the button type and decide what will happen after the user clicks it. There are five available options:
-
Send message - shows the user which buttons they clicked
You can add a postback value to a message. This way, after clicking the button, the user will see the button’s title as a message, but underneath the system will collect the postback value. Thanks to that, you can set up multiple buttons with the same title but different postbacks and easily know which buttons were clicked.
-
Go to block - redirects a user to a specific step in your bot flow
-
Open URL - opens a provided URL in a tab
-
Phone call - here, the bot can dial a defined phone number.
-
Open Moment - this option lets the bot open a web view to load a web application inside an ongoing chat.
Advanced button actions
Advanced button actions allow you to add special events that are triggered when the button is clicked. They’re invisible to users. For example, you can add an action that adds a user that clicked a button to a selected segment. Actions are optional, and you can assign multiple actions to one button.
To add Advanced button actions to your buttons, click on the Actions icon. Then, click on Add new action.
Choose from three options:
-
Add to segment - adds a user to the selected segment.
-
Remove from segment - removes a user from the selected segment.
-
Set custom attribute - assigns value to selected attributes.
Read more: