Flows
A flow is a structure that defines the sequence of a AI-agent conversation with users based on their questions and responses. It consists of a series of nodes, where each node represents a specific point in the conversation. Nodes can include messages, questions, prompts, actions, or conditions based on user input.
After creating a flow, the first flow you create is considered the start flow, and the second flow is considered the fallback flow. However, when there are multiple flows, you can set any flow as the start or fallback flow.
Key features of Conversational Flows:
- Structured interaction: Flows provide a structured framework for organizing conversations between users and AI-agents, ensuring a seamless and intuitive user experience.
- Message sequencing: Nodes within flows determine the sequence of messages presented to users, allowing for logical progression through the conversation.
- User input handling: Flows include nodes to capture and process user inputs, such as text messages, selections, or commands, enabling AI-agents to understand user intents and respond accordingly.
- Conditional logic: Flows can adjust dynamically based on user responses using condition nodes, enabling personalized interactions.
- AI-agent goal achievement: Flows guide users through completing specific tasks or achieving objectives, such as placing an order, scheduling an appointment, or seeking information.
Sample conversational flow
Use case: Ordering South Indian Food from a AI-agent
User: Show me the menu
AI-agent: Please select your Cuisine: South Indian, North Indian
User: South Indian
AI-agent: Please select the Item: Idly, Dosa, and Pongal
User: Idly
AI-agent: Please enter the quantity
User: 2
AI-agent: Thanks for ordering with us
This flow guides the user through the process of ordering South Indian food from the AI-agent by structuring a series of interactions between the user and the AI-agent.
Key elements to build a flow
You can use the following elements to build a Conversational flows:
Icon | Options | Descriptions |
---|---|---|
Nodes | Define specific points in the conversation flow | |
Channel filter | Set the active channels where you want the AI-agent deployed | |
Variables | Store static or dynamic values | |
Language | Choose the language(s) your AI-agent needs to support | |
Flow trigger | Triggers the flow based on the selected Intent, Entities, Event, and URL clicks |
Flow visualization settings
Once you have manually designed your conversational flow, exported a template, or automated the flows, you can use the following options to visualize the flow:
Icon | Options | Description |
---|---|---|
Zoom in | This options allows you to zoom in on the flow diagram, making the text and elements larger and easier to read. | |
Zoom out | This options allows you to zoom out of the flow diagram, making the text and elements smaller and allowing you to see rest of the flow at once. | |
Fit view | This option adjusts the zoom level to fit the entire flow diagram within the viewable area, ensuring that the entire flow is visible on the screen | |
Auto layout | Automatically arranges the nodes and connections within the flow diagram in an organized manner. You can also undo the alignment by clicking the Undo option. | |
Settings | This option includes additional settings related to the flow visualization such as Init function, Change category, Mandate words, Precluded words, Disable steps for Go Back functionality, and Channels. For more information, see Flow settings. | |
Minimap | This option displays a overview of the entire flow diagram, allowing you to navigate to different sections of the flow by clicking on the desired section in the minimap. |
Flow settings
You can configure the following flow settings for your flow:
Field | Description |
---|---|
Init function | Function that will be executed before going through a flow. |
Change category | Change the Category of the flow if required. |
Mandate words | Include the mandatory words that have to be in the user's utterance to trigger this flow. |
Precluded words | Flow will not be triggered if these words are present in the user utterance. |
Disable steps for Go Back functionality | If the user response is 'go back' (or related words - configured in tools), this takes them to the previous question. At the flow level, you can disable some steps from which going back should not be allowed. |
Channels | Flow will trigger only for the selected active channels. |