Conversational Flows
Flows are deterministic conversation paths that guide users through structured interactions. While the AI agent handles free-form questions, flows ensure consistent data collection and multi-step processes.What are Flows?
A Flow is a series of steps that execute in sequence when triggered. Each step can:- Send a message
- Collect and validate user input
- Branch based on conditions
- Call webhook tools
- Generate AI responses
- Transfer to a human agent
When to Use Flows
| Scenario | Use Flow | Use Free-form LLM |
|---|---|---|
| Collecting required data (name, email, phone) | Yes | No |
| Compliance-required messaging | Yes | No |
| Appointment booking | Yes | Maybe |
| General Q&A | No | Yes |
| Product recommendations | No | Yes |
| Order status lookup | Maybe | Yes |
Flow Triggers
Flows can be triggered in several ways:| Trigger Type | Description | Example |
|---|---|---|
keyword | Message contains specific words | ”book”, “appointment”, “schedule” |
intent | AI detects user intent | Booking intent, support intent |
always | Every new conversation starts this flow | Welcome/onboarding flow |
manual | Triggered by API call | After webhook event |
Step Types
Message Step
Send a fixed message to the user.Collect Step
Collect and validate user input.email- Valid email formatphone- Valid phone numbernumber- Numeric valuedate- Date formatregex- Custom patternoptions- One of provided choices
Condition Step
Branch the flow based on conditions.Tool Step
Execute a webhook tool and use the result.LLM Step
Generate a response using the AI model.Transfer Step
End the flow and hand off to a human agent.Via Dashboard
1
Navigate to Flows
Go to Senders > select your sender > Agent tab > Flows section.
2
Create New Flow
Click Create Flow and enter:
- Name: A descriptive name (e.g., “Lead Capture Flow”)
- Description: What this flow does
- Trigger: How the flow is activated
3
Add Steps
Use the visual flow builder to add steps:
- Click Add Step
- Select the step type
- Configure the step parameters
- Connect steps by dragging between nodes
4
Configure Triggers
Set up how the flow is triggered:
- For keyword triggers, enter the words that activate the flow
- For intent triggers, describe the intent in natural language
- For always, the flow runs on every new conversation
5
Test the Flow
Use the Test button to simulate a conversation and verify each step works correctly.
6
Activate Flow
Toggle the flow to Active to enable it for incoming messages.
Via API
Create Flow
List Flows
Update Flow
Example Flows
Lead Capture Flow
Appointment Booking Flow
Flow Sessions
When a user enters a flow, a session is created to track their progress. Sessions store:- Current step
- Collected variables
- Timestamps
- Channel information
You can query active sessions via the API to see where users are in their flows.
Best Practices
Keep Flows Short
Aim for 5-7 steps maximum. Long flows have higher abandonment rates.
Validate Early
Validate critical inputs (email, phone) immediately after collection.
Provide Exit Points
Let users say “stop” or “cancel” to exit the flow at any time.
Use Variables
Reference collected data in messages to personalize the experience.