Overview
Variable Source & Formatting allows you to:- Format Variables - Control how numbers, dates, and times are spoken
- Source from CRMs - Pull variable values from integrated systems like LeadSquared or HubSpot
How It Works
For each variable in your system prompt (like{{customer_name}} or {{order_amount}}), you can:
1. Set Format: How the value should be spoken
Variable Formatting
Number Formats
Full Words
Full Words
Format:
[Number] Full WordsUse For: Exact amounts, prices, quantitiesExamples:Nearest Hundreds
Nearest Hundreds
Format:
[Number] Nearest HundredsUse For: Approximate amounts, quick estimatesHow It Works: Rounds to nearest 100Examples:Nearest Thousands
Nearest Thousands
Format:
[Number] Nearest ThousandsUse For: Large amounts, simplified pricingHow It Works: Rounds to nearest 1,000Examples:Nearest Lakhs
Nearest Lakhs
Format:
[Number] Nearest LakhsUse For: Indian numbering system, real estate, salariesHow It Works: Rounds to nearest 1,00,000 (1 lakh)Examples:Date Formats
Day Only
Day Only
Format:
[Date] DayInput: ISO date format (YYYY-MM-DD)Examples:Day Month
Day Month
Format:
[Date] Day MonthInput: ISO date format (YYYY-MM-DD)Examples:Day Month Year
Day Month Year
Format:
[Date] Day Month YearInput: ISO date format (YYYY-MM-DD)Examples:Time Formats
Hour Minute AM/PM
Hour Minute AM/PM
Format:
[Time] Hour Minute AM/PMInput: ISO datetime format (YYYY-MM-DDTHH:MM:SS) or just timeExamples:DateTime Formats
Full Sentence
Full Sentence
Format:
[DateTime] Full SentenceInput: ISO datetime format (YYYY-MM-DDTHH:MM:SS)Output: Time, on Day, Date Month, YearExamples:Sentence Without Year
Sentence Without Year
Format:
[DateTime] Sentence Without YearInput: ISO datetime format (YYYY-MM-DDTHH:MM:SS)Output: Time, on Day, Date MonthExamples:Hour Minute AM/PM
Hour Minute AM/PM
Format:
[DateTime] Hour Minute AM/PMInput: ISO datetime format (YYYY-MM-DDTHH:MM:SS)Examples:Day
Day
Format:
[DateTime] DayInput: ISO datetime format (YYYY-MM-DDTHH:MM:SS)Examples:Day Month
Day Month
Format:
[DateTime] Day MonthInput: ISO datetime format (YYYY-MM-DDTHH:MM:SS)Examples:Day Month Year
Day Month Year
Format:
[DateTime] Day Month YearInput: ISO datetime format (YYYY-MM-DDTHH:MM:SS)Examples:CRM Integration Sourcing
Pull variable values from your integrated CRM systems.Supported Integrations
- LeadSquared
- HubSpot
Purpose: Source customer data from LeadSquared CRMSetup:
- Connect LeadSquared integration
- Select variable
- Choose “LeadSquared” as source
- Select field from dropdown (auto-loaded from your LeadSquared)
Configuration
Navigate to Variable Source
In your agent configuration, find the Variable Source and Pre Format section
Variables from your system prompt (like
{{customer_name}}) automatically appear in the listSet Format
Format: Choose how the variable should be spoken
- Select “No” for no formatting (default)
- Select appropriate format based on data type
order_amount→[Number] Full Wordsappointment_date→[Date] Day Month Yeardelivery_time→[Time] Hour Minute AM/PM
Set Source (Optional)
If you have CRM integrations:Source: Select integration (LeadSquared, HubSpot, etc.)Key Value: Select the field from your CRM
Use Cases
E-commerce Order Confirmation
Variables:Appointment Booking
Variables:Loan Application
Variables:Best Practices
Match Format to Context
Match Format to Context
Choose formats that sound natural for your use caseGood:
- Price →
[Number] Full Words(“two thousand five hundred”) - Large numbers →
[Number] Nearest Lakhs(“five lakhs”) - Dates →
[Date] Day Month(“twenty-fifth December”)
- Price →
[Number] Nearest Hundreds(sounds imprecise) - Appointment →
[Date] Dayonly (missing month context)
Test Formatting
Test Formatting
Use Test Call to hear how formatted variables soundProcess:
- Configure format
- Run test call with sample data
- Listen to how agent speaks the value
- Adjust format if needed
Keep CRM Mappings Updated
Keep CRM Mappings Updated
When CRM fields change:
- Review variable mappings
- Update field selections
- Test with live data
Use Consistent Formatting
Use Consistent Formatting
Apply the same format to similar variablesExample:
Troubleshooting
Variable not formatted
Variable not formatted
Possible Causes:
- Format set to “No”
- Variable value is not in expected format
- Data type mismatch
- Verify format is selected (not “No”)
- Check variable value is correct type (number for number formats, date for date formats)
- Test with sample values
CRM field not loading
CRM field not loading
Issue: Can’t see CRM fields in dropdownCauses:
- Integration not connected
- Integration permissions issue
- API connection problem
- Verify CRM integration is connected in Integrations page
- Check integration has read permissions for contacts/leads
- Try reconnecting integration
- Contact support if persistent
Wrong value from CRM
Wrong value from CRM
Issue: Agent speaks wrong customer dataCauses:
- Wrong field mapped
- Customer not found in CRM
- Field empty in CRM
- Verify correct CRM field is selected
- Check customer exists in CRM with matching phone/email
- Ensure CRM field has data
- Review call logs for CRM lookup results
Date sounds unnatural
Date sounds unnatural
Issue: Date pronunciation is awkwardExamples:Solution:
Use appropriate date format:
[Date] Day Month Yearfor full dates[Date] Day Monthfor dates in current year
Advanced Configuration
Custom Variable Addition
You can add custom variables not in your system prompt:Getting Help
Test Formatting
Use Test Call to verify variables are formatted and sourced correctly
Contact Support
Our team can help configure CRM integrations and variable formatting