Skip to main content

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

Use flows when you need guaranteed outcomes. Use the LLM when you need flexibility.

Flow Triggers

Flows can be triggered in several ways:

Step Types

Message Step

Send a fixed message to the user.

Collect Step

Collect and validate user input.
Validation Types:
  • email - Valid email format
  • phone - Valid phone number
  • number - Numeric value
  • date - Date format
  • regex - Custom pattern
  • options - 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:
  1. Click Add Step
  2. Select the step type
  3. Configure the step parameters
  4. 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
Sessions expire after 24 hours of inactivity. If a user returns after expiration, they start from the beginning.
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.

Next Steps

Add Tools

Enable your flows to execute actions via webhooks

Knowledge Base

Let your agent answer questions from documents