A flow is the logical design of your conversational journey. It is a structure that defines the sequence of a chatbot conversation with the virtual agent based on the questions your chatbot would ask and the various replies that a user would provide.
Flows can be further categorised using Categories. The words Flows and Journeys are used synonymously.
In the platform, there are different types of nodes, and you can connect each individual node to build a single conversational flow based on your use case. Each of these nodes either displays, requests, or processes information when a particular flow is triggered.
Once you have the scope of your bot ready, depending on the use case, the bot must be built to respond accordingly. This is done by dividing the scope into multiple flows.
- User: “Show me the menu”
- Bot: “Please select your Cuisine: South Indian, North Indian”
- User: “South Indian”
- Bot: “Please select the Item: Dosa, Pongal . . .”
Suppose the bot is used as an official portal to apply for leaves or check salary, bot must converse with the user and fetch the information from all the nodes.
In this article, you will learn:
- What are the different UI elements to build a flow?
- How to create a flow?
- Workflow- a variation of flow
- How to preview a flow?
1. Understand UI elements to build a flow
The icons available on the side are shortcuts to access the following:
|Node navigator||Used to navigate to a specific node. You can also use it to filter and segregate nodes in your flow.|
|Channel - Use to configure how bot functions in each channel.|
|Prompts||Shortcut to drag and drop prompt nodes.|
|Message||Shortcut to drag and drop message nodes.|
|Action||Shortcut to drag and drop action nodes.|
|Logic||Shortcut to drag and drop logic nodes.|
|Variables||Variables are used throught this module for multiple purposes.|
|Language||Select a language your bot is accessible in.|
|Tools||Used to open the global tools tab.|
2. Create a flow
You must first create a flow and then trigger a flow. You can create a flow using a template or from scratch. When you create a flow from scratch, you must create a placeholder for the flow first.
To create a flow, follow the below steps:
- Login to yellow.ai, select your bot.
- Select Overview > Studio.
Learn more about Studio.
Click + Create a new flow.
To open flows, use the keyboard shortcut
If you want to select from the available templates, click a suitable template from the Flow template dialog box. To know more about templates, click here.
Otherwise, click Create from scratch in the top menu bar.
Enter the following details:
Flow name: Enter the name of your flow and make sure the name is according to the task of the flow. For example, flight booking, customer service, and products on discount.
Flow Description: Enter the description of the flow. You can also convert the description into any language other than English by clicking the Google translator button. For example, these flows lead customers to flight booking workflow.
Category: One flow can have multiple categories. The created flow will fall into default categories if no category is mentioned. You can either select an existing category from the drop-down or, add a new category:
- Click +Create category.
- Enter the Name of the category.
- Click Create Category to save it.
Create as a workflow: Click the toggle button if you want to convert the flow to a workflow. Workflows run in the backend along with the conversational flow. To know more about workflow, click here.
- Click Save.
- Add nodes and build a flow as per your use-case.
2.1 Workflow - a variant of flow
Workflows are background processes that run along with the conversational flow. Workflow option can be selected while creating a flow.
Workflow is the same as any other flow page, it will have a start node. Nodes connecting the start node can only be Action or Logic nodes (Message and Prompt nodes are not available to build a workflow).
3. Preview a flow
After creating a flow, you can preview it to ensure that its functionality is working as expected. You can quickly preview a single flow, or you can use a preview bot based on your business needs.
3.1 Preview single flow
You can preview directly a selected flow instead of always triggering a flow from the welcome journey using Preview current flow option. This option helps you quickly test the single flow without triggering the welcome message or any intents that are not related to the selected flow.
Consider that you have created a flow to order food from a restaurant, and you can preview this particular flow by clicking Preview current flow option.
While testing your flow, you can view debugging details, which provide the details of the respective node in the flow.
3.2 Preview a bot
You can preview all the flows that are intended a bot by clicking Preview bot option.
You can also select the channels from the Website drop-down to test your flows in the respective channels.
After testing the flow, click the below highlighted icon to preview your bot.
After previewing your flow, you can publish your bot to the respective environmnet. To know more about publish bot, click here.