Skip to main content

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:

Creating Custom Variables

1

Open Agent Configuration

Navigate to your agent’s configuration page
2

Find Custom Variables Section

Scroll to the Custom Variables section
3

Add New Variable

Click “Add Variable” and provide: - Variable Name: Use descriptive names (e.g., appointment_date, order_number) - Default Value: Optional fallback value
4

Save Changes

Save your agent configuration

Using Variables in Conversations

Reference variables in your prompts using curly braces:
During the call, variables are automatically replaced:

Variable Naming Guidelines

Use Descriptive Names

appointment_date not var1

Use Underscores

order_number not order-number or orderNumber

Lowercase Only

customer_id not Customer_ID

No 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:
CSV column names must exactly match your variable names (case-sensitive)

Best Practices

Don’t create too many variables initially. Start with 3-5 essential ones and add more as needed.
Future you (and your team) will thank you for using self-explanatory variable names.
Set sensible defaults for variables in case CSV data is missing or invalid.
Before launching a campaign, test your agent with sample variable values to ensure proper formatting.
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
Test your CSV with a small batch before full campaign launch

Troubleshooting

  • Check variable name spelling in agent configuration
  • Verify CSV column name matches exactly
  • Ensure curly braces syntax: {variable_name}
  • Check CSV data for that contact - Verify column is not empty - Set default value in agent configuration as fallback
  • CSV column names must match variable names exactly
  • Case-sensitive: appointment_dateAppointment_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