Flows¶
A Flow is a conversational structure consisting of Nodes that defines how AI Agents interact with users. With Flows, you can customize the behavior of AI Agents and design tailored and dynamic conversational experiences. AI Agents can access the Input, Context, and Profile objects from the Flow to provide context-aware responses.
Flows include:
- Nodes — the Flow's building blocks.
- Intents — user input mapping with natural language understanding (NLU).
- Lexicons — keyphrases to improve Intent recognition.
- Locales — language settings for a multilingual AI Agent.
- States — control over Intents.
- Slot Fillers — automatic information extraction from user input.
You can also connect different Flows and switch between them with a Go To Node to create more complex conversational experiences.
Working with Flows¶
You can create, clone, and delete Flows in Build > Flows. Also, you can export Flows as a Package, copy their Reference ID. To build and configure Flows, use the Flow editor.
You can create Flows using Generative AI to automatically generate Nodes with predefined configurations and content. For this approach, you need to add a large language model (LLM).
To test Flows, click and use the Interaction Panel.
You can view, create, and edit Flows using the Cognigy API.
You can manage Flows using the Cognigy CLI.
Settings¶
Besides the Nodes, you can customize Flows further on the Settings tab of the Flow editor. For example, you can add Yes/No logic and personalized confirmation responses. Also, you can fine-tune the AI Agent's confidence in understanding Intents and activate recognition of specific details, including age, date, and email addresses, to ensure more accurate responses.
Settings
Setting | Description |
---|---|
General Flow Logic | |
Yes/No logic | Add a specific Yes/No logic within your Flow to confirm and reject an Intent or the Yes/No type in Question Nodes. |
Positive confirmation words | Add customized responses to confirm an Intent and Question Nodes. |
Negative confirmation words | Add customized responses to reject an Intent and Question Nodes. |
Continue main Flow after attached Flow | Enable this setting to continue the main Flow after an attached Flow has been executed. Disabled by default. |
Continue Flow after Default reply | Enable this setting to continue executing the Flow logic after a default reply has been delivered. Disabled by default. |
Continue Flow after negative confirmation | Enable this setting to continue the Flow logic after a negative response to an Intent confirmation sentence. Disabled by default. |
Pass Default Reply into Flow | Enable this setting to have the AI Agent store the default reply in the input instead of using it directly. This setting allows you to use the reply within the Flow logic. Disabled by default. |
Include Default Reply in NLU Training | Enable this setting to include default replies in NLU training. The default replies serve as example sentences for matching Intents. You can also configure this setting individually for each Intent. Enabled by default. |
Intent Mapper | |
Attached Flow Intent Mapping Priority |
|
Implicit Slot Parsing | Determine whether Slots in NLU example sentences should be parsed implicitly or if only Slot annotations should be used for training:
|
Thresholds | |
Intent threshold | Determine the level of confidence required for the AI Agent to understand what the user is trying to communicate. The level of confidence accepts values ranging from 0 to 1. |
Reconfirmation Threshold | Determine a score from which an Intent is considered confirmed or marked for reconfirmation if a reconfirmation sentence is set. By default, the value is 0.2 . Note that the confidence threshold has no effect unless the Intent uses confirmation sentences. The Reconfirmation Threshold is the lower confidence threshold. You must set it in addition to the Confidence Threshold. Intent scores above the reconfirmation threshold are confirmed or marked for reconfirmation. |
Confidence Threshold | Determine a score from which an Intent is considered confirmed if a confirmation sentence is set. By default, the value is 0.4 . |
Attached Flows specific settings | |
Use Thresholds of the attached Flows | Determine whether the thresholds configured in the attached Flows are applied. Enabled by default. |
Use "Continue Flow after Default Reply" setting of the attached Flows | Determine if the conversation continues after giving a default reply in the attached Flows. Enabled by default. |
Use "Pass Default Reply into Flow" of the attached Flows | Determine if the default reply from attached Flows affects the ongoing conversation. Enabled by default. |
Use "Implicit Slot Parsing" setting of the attached flows | Determine if the system should try to understand Slot values even if not directly mentioned. Disabled by default. |
Lexicon Slots | |
Parse Lexicon Slots with submatches | Enable the parsing of Lexicon Slots with submatches. This setting allows more detailed understanding of user input by identifying not just the primary match but also submatches within the Lexicon. This feature can improve accuracy in language understanding tasks, especially when dealing with complex or ambiguous phrases. Disabled by default. |
System Slots | |
Enable Age Slots | Enable the recognition of age-related terms. For more information, read System-Defined Slots. |
Enable Date Slots | Enable the recognition of date-related terms. For more information, read System-Defined Slots. |
Enable Distance Slots | Enable the recognition of distance-related terms. For more information, read System-Defined Slots. |
Enable Duration Slots | Enable the recognition of duration-related terms. For more information, read System-Defined Slots. |
Enable Email Slots | Enable the recognition of email addresses. For more information, read System-Defined Slots. |
Enable Money Slots | Enable the recognition of monetary values. For more information, read System-Defined Slots. |
Enable Number Slots | Enable the recognition of numerical values. For more information, read System-Defined Slots. |
Enable Percentage Slots | Enable the recognition of percentage values. For more information, read System-Defined Slots. |
Enable Temperature Slots | Enable the recognition of temperature values. For more information, read System-Defined Slots. |
Enable URL Slots | Enable the recognition of URLs. For more information, read System-Defined Slots. |