Make a Flow
Make the conversation ‘flow’!
What is a flow?
Just like in any big project, you would break it down into smaller pieces and work over it them step by step right? Why do you do that?
We do it for different reasons like:
- To be more organised
- Make it easier for us to locate a specific part of the project
- To make the project more manageable
This is exactly what flows are for. They are the small pieces of your bot.
Let's imagine making a bot for a restaurant, it needs to include information about the restaurant, ability to book a table, place and order and many other things. That’s a huge project. How do we make it manageable? By using flows for different features like booking a table, or placing and order. Just like how we’ve done here!
Creating a flow
Well now you know what a flow is, so let’s start making them 🏁
- Select “+ Flow”
- Mention a flow name: this should be relevant to the conversation you plan to include in the flow. Eg: BookTable, BookOrder, Info, etc
- Select the topic under which it should be saved.
- Kudos! 🥂 It’s ready. Make the bot talk and save it
Note 💡:
When you create the bot, you will be provided with 3 default flows:
- Default: this is the default response a bot would give when it can’t understand the user’s message
- Welcome: this is where your main flow is. When a bot is first opened by a user, the messages from the Welcome flow would be sent. Pre-trained for utterances like hi, hey etc.,
- Help: this is an utility flow where you would have shortcuts to app features or explain how the bot works. Pre-trained for utterances like help, what can you do etc.,