Comment on page
This chatbot template can be adapted for your own restaurant. With this bot, your users can see the latest menu, order food online for delivery or pick-up, and book a table.
Keep reading to learn how you can customise this template for yourself!
To manage orders and reservations, this chatbot uses Airtable. If you also plan to use Airtable for this you'll need an Airtable account and base, and connect to it in the Action blocks where the bot makes the API calls.
Below is an overview of all blocks you need to edit to customise this template for your own restaurant.
Let's get started!
In the Introduction block, replace the image with that of your own restaurant. You can also delete it if you prefer. In the text, make sure to change The Taco Shop and Sal with the names of your own restaurant and bot.
Block: Show menu
Change the image of the taco menu in this block to an image of your own restaurant’s menu.
This flow allows users to make a reservation at your restaurant. The bot will first ask the user on what date they want to make a reservation, and for how many people, and then look up the availabilities for that day in an external database. It then shows these options to the user.
This Action block will look up available reservation times in an external database. By default, this bot will look up the available time slots in an Airtable base, using the Search Record function of Chatlayer’s Airtable integration.
You will need to customise this block by connecting it to your own Airtable account and your own Airtable base. However, when you just imported the Restaurant template, it will be linked to this Airtable.
The reservations table in the Airtable base
Feel free to use this as an example for testing but make sure to replace it with your own base once you start using the bot for your restaurant!
If you do not yet have an Airtable account set up yet, you can do so by clicking Connect new account and following the steps in the pop-up window. For this you will need your Airtable API key, which you can find on your Airtable account page.
Like the template Airtable base, your own base should have a table with columns for reservation date, reservation time name, user email, special menu and number of people.
In the Base field, replace the example ID with the ID of your own Airtable base. In the Table field replace the example ID with the ID or name of the table in your own Airtable base where your reservations data is stored. You can find your Airtable's base and table IDs here.
The Search field is the name of the field (column) in Airtable that we want to search in. In this case, that is the column with possible reservation dates. Search value is the value that will be searched for in that field, in this case the date the user said they want a reservation.
This Action block uses the Update Record functionality to modify the Airtable record of the reservation slot your customer has chosen with their reservation details (name, email, number of people and choice of special menu).
Just like the Search availability in Airtable block, you will need to customise this block by connecting it to your own Airtable account and your own Airtable base.
This Action block sends your customer an email with the confirmation of their reservation. Replace The Taco Shop by your own restaurant’s name and customise the email’s text to your own preference.
This flow allows your customers to place an online order. The user will go through several options, step-by-step, choosing between main dishes (tacos in this template), extras, and desserts. After choosing, they will be given an overview of their complete order and the opportunity to make changes if they want. When their order is complete, the user is asked to choose between delivery or pickup, and at what time they want to receive their order. Finally, the user needs to choose a payment method, after which they will receive a confirmation by email.
This block lets the customer choose main dishes, displayed in a carousel. This enhances the user experience because people like to see what the dish looks like, before deciding if they want it.
Replace all images, titles, and subtitles for each carousel item with the options available at your restaurant. If your restaurant offers more than three menu items, you can add an additional carousel item for every extra menu option needed.
In the button of each carousel item, replace the
name_of_tacovariable name with a name for your own restaurant. If your restaurant does not specialise in one food item, you can give this variable a generic name, like for example,
Replace the example values from the template (carnitas, al pastor, barbacoa) with the values corresponding to main courses at your restaurant. These variables and their values should correspond to the match entities you define in your bot’s NLP.
This Go-to block will check if the user already has the same taco in their order.
In the conditions, replace
name_of_tacowith the name of the variable you gave to your main courses in the Order tacos block. Replace
taco_order_nr_3by the name of the variables you define in the block Save taco order. Add an additional Go to condition for each main course item you added to the carousel in Order tacos and ad a Go to to a corresponding bot block.
name_of_tacoin the text with the menu items variable you defined in Order tacos, and also replace
number_of_tacoswith a variable name appropriate to your restaurant.
This Go to block saves the menu item chosen by the customer to the correct variable. If the customer has not selected any items yet, their choice will be assigned to the first variable. If they already chose one previous item, the item will be stored in a second variable, etc.
You should add an extra Go-to condition for any additional menu items you added to the carousel in the Order tacos block. Also replace the names of the variables
3_quantityby variable names for your restaurant.
Ordering extras and dessert operates in the same way as ordering tacos. You can customise the blocks below by applying the same steps as described above for taco ordering:
- Order extras
- Order dessert
- Already ordered same extras/dessert?
- Number of extras
- Number of dessert
- Save extras
- Save dessert
This block gives the customer an overview of their final order. Replace the order and order quantity variable names with the ones you defined for your own menu items above.
This block gives the customer the option to choose between pick up or delivery for their order.
In case your restaurant does not offer these options, you can change the text of this block to a general acknowledgement message and set either the Delivery or Pick-up time block as the Go to.
This Action block will store the customer’s order in an external database. By default, this template is set up to store this information in an Airtable using the Create Record function of Chatlayer’s Airtable integration.
Just like with the other Airtable integration blocks, you will need to customise this block by connecting it to your own Airtable account and your own Airtable base. The example Airtable the template is linked to by default also contains an orders table.
Your own orders table should contain a field for each menu item and the quantity of each item, as well as fields that specify delivery or pickup, delivery time, pick-up time, and the customer’s phone number and email address.
In the Action block, in the left column under Record, we add the names of all fields we want to fill in the new Airtable record, i.e. all menu item options and their quantities, pick-up or delivery details and the customer’s details; in the right column we specify the variables we want to put as values in those fields.
That's it, you've just customised your own Restaurant chatbot! 👏