What are Custom Variables?
Custom variables allow you to personalize each conversation by dynamically inserting customer-specific information into your agent’s dialogue.Default Variables
Every agent comes with two pre-configured variables:| Variable | Description | Example |
|---|---|---|
callee_name | Customer’s name | John Doe |
mobile_number | Phone number | +919876543210 |
Creating Custom Variables
Add New Variable
Click “Add Variable” and provide: - Variable Name: Use descriptive names
(e.g.,
appointment_date, order_number) - Default Value: Optional
fallback valueUsing Variables in Conversations
Reference variables in your prompts using curly braces:Variable Naming Guidelines
Use Descriptive Names
appointment_date not var1Use Underscores
order_number not order-number or orderNumberLowercase Only
customer_id not Customer_IDNo Special Characters
Avoid spaces, @, #, etc.
Common Use Cases
Appointment Reminders
Order Confirmations
Payment Reminders
Survey Responses
CSV Integration
Custom variables must be included as columns in your campaign CSV:Best Practices
Start with Essential Variables
Start with Essential Variables
Don’t create too many variables initially. Start with 3-5 essential ones and add more as needed.
Use Clear Names
Use Clear Names
Future you (and your team) will thank you for using self-explanatory variable
names.
Provide Default Values
Provide Default Values
Set sensible defaults for variables in case CSV data is missing or invalid.
Test with Sample Data
Test with Sample Data
Before launching a campaign, test your agent with sample variable values to
ensure proper formatting.
Document Your Variables
Document Your Variables
Keep a list of all variables and their purposes for team reference.
Variable Validation
The platform validates:- Variable names match between agent and CSV
- Required variables have values
- Data types are appropriate
Troubleshooting
Variable Not Replacing
Variable Not Replacing
- Check variable name spelling in agent configuration
- Verify CSV column name matches exactly
- Ensure curly braces syntax:
{variable_name}
Empty Variable Values
Empty Variable Values
- Check CSV data for that contact - Verify column is not empty - Set default value in agent configuration as fallback
CSV Column Mismatch
CSV Column Mismatch
- CSV column names must match variable names exactly
- Case-sensitive:
appointment_date≠Appointment_Date - No extra spaces in column names
Next Steps
CSV Format Guide
Learn CSV formatting with variables
Create Campaign
Launch a campaign with custom variables