Flows & Dialogs
Build conversation flows for virtual assistants.Overview
Dialog flows define how your virtual assistant handles conversations:- Intents — What users want to accomplish
- Entities — Information extracted from messages
- Dialogs — Conversation logic and responses
- Transitions — How conversations move between states
Dialog Types
Standard Dialog
Structured conversation flow for specific tasks:Agent Flow
Complex flows with AI agent capabilities:Sub-Dialog
Reusable dialog components:Building Dialogs
Dialog Builder
Visual drag-and-drop builder:| Node Type | Purpose |
|---|---|
| Message | Display text, cards, or media |
| Prompt | Collect user input |
| Condition | Branch based on conditions |
| API Call | Execute integrations |
| Script | Run custom code |
| Agent | Invoke AI agent |
| Transfer | Hand off to human |
Node Configuration
Message node example:Transitions
Define conversation flow:| Transition Type | Description |
|---|---|
| Intent | Move based on detected intent |
| Entity | Move based on extracted entity |
| Condition | Move based on variable value |
| Default | Fallback when no match |
| Error | Handle errors gracefully |
Entity Management
Entity Types
| Type | Use Case | Example |
|---|---|---|
| Built-in | Common data types | Date, Number, Email |
| List | Defined options | Product names, sizes |
| Regex | Pattern matching | Order ID: ORD-\d |
| Composite | Grouped entities | Full address |
Entity Extraction
Configure extraction:Entity Disambiguation
Handle ambiguous inputs:Context Management
Context Variables
Store and use conversation context:Variable Scopes
| Scope | Lifetime | Use Case |
|---|---|---|
| Turn | Single turn | Temporary processing |
| Session | Conversation | Order details, selections |
| User | Across sessions | Preferences, history |
| Global | All users | Configuration, flags |
Interruption Handling
Configuration
Handle topic switches:Scenarios
| Scenario | Handling |
|---|---|
| New intent | Hold current, start new |
| Clarification | Handle inline, resume |
| Cancel | Confirm and exit |
| Go back | Return to previous step |
Testing
Conversation Testing
Test dialog flows:- Open Test panel
- Enter test utterances
- Verify intent detection
- Check entity extraction
- Validate flow navigation
- Review responses
Batch Testing
Run test suites:Debug Mode
Enable detailed debugging:- Intent confidence scores
- Entity extraction details
- Flow transitions
- Variable values
- API call results
Best Practices
Dialog Design
- Keep flows focused on single tasks
- Use sub-dialogs for reusable components
- Handle errors gracefully
- Provide clear escape paths
- Test edge cases thoroughly
Intent Training
- Add 15-25 utterances per intent
- Include variations and typos
- Use real customer language
- Regularly review misclassifications
- Avoid overlapping intents
Conversation UX
- Confirm understanding before actions
- Provide clear options when ambiguous
- Keep messages concise
- Use quick replies for common paths
- Allow natural conversation flow