Skip to main content

Create a button-based bot

In this tutorial, we will create a button-based bot that can order pizza. The main feature of the button-based bot is that a client interacts with the bot by clicking on the suggested buttons.

The bot will be able to:

  • offer a client two cities for delivery;
  • offer a client several pizza options;
  • fill and edit a cart;
  • get client’s phone number to place the order.
tip
Before you start, we recommend you to study the bot project structure and read through the Creating a simple bot tutorial.

To create a button-based bot, follow the steps:

  1. Create a script to select a delivery city.
  2. Create a dictionary.
  3. Create a script to select pizza.
  4. Create a script to make an order.
  5. Test the bot script.