Booking ChatBot
A look into real-world bot templates
Imagine we have a chatbot which manages System demo booking to interested clients.
We can have a start menu (first step) as below
"MAIN_MENU":
type: button
message:
body: "Hi, I am JAWCE 🤖, your ERP System booking assistant.
\n\nWhat would you like to do today?"
buttons:
- Book a demo
- Help
routes:
"book a demo": "BOOK_STAGE"
"help": "HELP_MENU"
A lot is happening here, but let's break it down.
The type
- Specifies that this template should show as a button message on the end user on WhatsApp.
The message
- Message to show the user, like a button body
The buttons
- The buttons to show to the user which the user will select / click
The routes
- To know where to go when user selects any of the button options we presented them.
The routes maps the user response to the next stage defined in your templates
folder.
Let's see more templates
"BOOK_STAGE":
type: button
message:
body: "Kindly confirm your system demo booking request by clicking the start button"
footer: ERP Demo
buttons:
- Start
- Return
routes:
"start": 1000
"return": "MAIN_MENU"
By now you can picture what the above is doing. You can name your stages any way you want, numbers or text - your choice.
This will be the chatbot conversation brain and it will be hopping from 1 stage to the other as you define it 😀.
PS: The templates above you might not need to understand what each part works, we will look into that in later sections