Button settings

Dariusz Zabrzenski
3 min read
updated: Mar 9, 2022

Button settings allow you to customize every button in your bot scenario. You can use them to add titles to your buttons, define what happens after the user clicks a button, or add actions that are performed in the background. In ChatBot, the button settings are divided into two groups that are called General settings and Button actions settings.

button-settings

General settingsLink icon

General settings let you define the button’s behavior. For instance, you can create a menu card response that navigates users through the Story. To proceed, the user just needs to click the button without typing anything.

Every button needs a title. 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 - this setting shows the user which of the buttons they clicked.

general-settings

Here, you can also 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 of the buttons were clicked.

general-settings

  • Go to block - you can use it when you want to redirect a user to a specific step in your Story.

  • Open URL - this option lets the bot open a provided URL in a new tab.

general-settings

  • Phone call - here, the bot can dial a defined phone number.

general-settings

  • Open Moment - this option lets the bot open a web view to load a web application inside an ongoing chat.

general-settings

What is postbackLink icon

Postback is a message or value that is passed to the system when a button is clicked. For instance, when you use the Gallery response with the same button title, postback helps you distinguish which button was clicked.

How to set up postbackLink icon

  1. Open your bot Story.

  2. Click on the added Bot Response block or add a new one. Add the Gallery response. Write the button’s name, set up the Send message button type, and provide the postback value.

  3. Add two User Input blocks. In the User says section, type in the user’s answers. This way the bot can collect users' queries.

  4. Now, add a Bot Response block to each of the added User Input blocks. Then, provide a customized message for each path.

  5. That’s all. Now you can test your Story using the in-built Testing tool.

Button actionsLink icon

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 more than one action to one button.

Button actions are available in TEAM, BUSINESS and ENTERPRISE plans.
Button actions are available in TEAM, BUSINESS and ENTERPRISE plans.
  1. To add actions to your buttons, click on the Actions icon.

    smart-actions

  2. Then, click on Add new action.

    smart-actions

  3. Here, you can choose from three options:

    smart-actions

  • 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.

Smart actions work with all bot responses that contain buttons.
Smart actions work with all bot responses that contain buttons.

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our other products