🟢 How to add buttons to your WhatsApp chatbot

📚 Learn how to enhance your WhatsApp chatbot by adding interactive buttons.

💡 PRO TIP: Click here to hire an expert to guide you in the step by step. Book a call now to learn all the tips and tricks for training your AI, or let us handle it all for you instead.

To truly elevate the user experience, it’s essential to make your WhatsApp chatbot more interactive and responsive. One effective way to achieve this is by incorporating buttons. Buttons allow users to navigate through menus, make selections, and perform actions with just a tap, making the interaction more seamless and efficient. In this tutorial, we’ll explore how you can easily integrate them into your WhatsApp chatbot using our app, empowering you to create a more engaging and user-friendly experience.

Remember that this function is only available for accounts using the Official API Connection. Click here to learn more.

Creating a button template #

 

Open the app. Go to the WhatsApp section and click on Chatbot. Find the WhatsApp account where you wish to insert the buttons. Click on Add item.

Scroll down. On the section below API Rest data, click on Buttons, and then on Add Button Template.

Configure the template. You will open a page called Button Template. On the first field, give your template a name to identify it. On the Main Description field, write the text message that your chatbot will send along with the buttons. Optionally, add an image to the message on the Main Image section and a footer for your message.

Create the buttons. Scroll down. On the List Button section, click on Add button to create your first button.

Select a button type. We have three kinds of buttons: Text Buttons, Link Buttons and Call To Action Buttons.

Link buttons #

 

If you select Link Button as button type, users will be directed to the URL you provide. Write it on the Link Field. On the Display text Field, state the text that will be shown on the button.

Call To Action Button #

 

With a Call To Action Button, users will automatically call the phone number you provide on the Phone Number Field. Make sure to include the country code.

Text Button #

 

Text buttons allow you to perform different types of commands to trigger several actions. Use the Display Field to write the command. You will find the instructions for different commands under the Display Field. The Quick Reply Command (as shown on the image below) will send the word you provide after the “:” symbol. You can then use this word as the Keyword that will trigger another item on your chatbot.

The UrlButton Command will mimic a Link Button, sending the user to the URL you provide. The CallButton will mimic a Call To Action Button, triggering a call to the phone number you provide. With a Spintax, you can trigger different messages. The words that you write between the {} symbols will be rotated.

Finally, you can add custom parameters that you have collected through the Capturer tool of your chatbot, placing their name between “%” symbols. For example, if you write %name%, the user will see the information that he previously provided and stored under the ‘name’ category.

Add more buttons. Click on the Add Button anytime to add more buttons. WhatsApp allows you to send up to three per message. When you are done creating your buttons, click on Submit to save your template.

Edit your template. You can see, edit and delete the templates you have created on the Button Template section. You can also create new templates by clicking on the Add button at the top right corner. Once you have your templates ready, you can attach them to the items of your chatbot.

Adding your template to an item #

 

Go back to the chatbot section. Once again, look for the number where you wish to add the buttons and click on Add item.

Configure the item. Give the item a name and a description to identify it. Add a keyword that will trigger the message with the buttons. For example, here we used ‘buttons’. Indicate if the message will be sent to individuals, groups, or both. Leave the rest of the settings as shown on the image.

Add the buttons template. On the section below API Rest, click on Buttons. Look for the template you created before and select it. Click on Submit to save. Done! When a user sends the indicated keyword, the message with the buttons will be sent.