Overview
Voice routing allows your AI agent to analyze conversations and direct users down different paths based on their responses. Each route can extract specific variables that can be used later in your workflow.How Routing Works
During a phone conversation, the AI:- Listens to the customer’s responses
- Analyzes the intent and content
- Selects the most appropriate route
- Extracts variables from the conversation
- Continues to the next step in your workflow
Creating a Route
Each messaging node can have multiple routes. To create a route:- Navigate to your voice node
- Click on the Call Routes tab
- Click + Add Custom Route
- Configure the route settings
Route Configuration
Route Title
Give your route a clear, descriptive name:Custom Instructions for AI Analysis
Provide clear instructions that tell the AI when to choose this route:Variable Extraction
Variable Types
You can extract four types of variables from conversations:Text
Text
Any string of textExample: Customer name, product description, feedback comments
Date
Date
Date values that the AI will parse and formatExample: Order date, delivery date, appointment time
Number
Number
Numeric values including integers and decimalsExample: Order number, quantity, amount paid
Boolean (Yes/No)
Boolean (Yes/No)
True/false values based on customer confirmationExample: “Has the product arrived?” “Do you want a refund?”
Adding Variables to a Route
- In your route configuration, click + Add Variable
- Enter a variable name (use underscore format:
order_number) - Select the variable type
- Add additional context if needed
Variable Naming
Use clear, consistent naming: ✅ Good:tracking_numberorder_datecustomer_namerefund_amount
var1datainfo- Mixed casing like
orderNumber
Important: Voice vs Email/SMS Routing
Voice Routing
For voice calls, your prompt must explicitly ask for the information you want to extract:Example Prompt
Email/SMS Routing
For email and SMS, the AI will automatically ask follow-up questions until it collects all required variables. You don’t need to include questions in your prompt.Using Extracted Variables
Once extracted, variables can be used in subsequent nodes using double curly braces:Best Practices
Be Specific
Write clear, unambiguous routing instructions
Avoid Overlap
Make sure routes are mutually exclusive
Test Thoroughly
Call your bot and test each route
Use Fallbacks
Include a general route for unclear requests
Example Route Configuration
Here’s a complete example for a product inquiry route: Route Name:Product Status Inquiry
Custom Instructions:
order_number(Number) - The customer’s order numberorder_date(Date) - When they placed the order
Activating Your Workflow
Once you’ve configured your routes:- Click the Test button (if available) to verify routing logic
- Toggle the workflow to Active in the top left corner
- Make test calls to verify behavior
Your voice routing is now set up and ready to intelligently handle customer conversations!