Skip to main content

Overview

Variables allow you to personalize conversations by dynamically inserting customer data, context, and real-time information into your agent’s responses.

Add Variables to Conversations

What are Variables?

Variables are placeholders that get replaced with actual values during conversations. They enable personalization and dynamic content insertion.

Variable Syntax

Variables use double curly braces: {{variable_name}} Example:

Types of Variables

Customer Data Variables
  • {{customer_name}} - Customer’s name
  • {{customer_email}} - Email address
  • {{customer_phone}} - Phone number
  • {{customer_company}} - Company name
Context Variables
  • {{current_time}} - Current time
  • {{current_date}} - Current date
  • {{day_of_week}} - Day of the week
  • {{timezone}} - Time zone
Call Variables
  • {{call_duration}} - Length of current call
  • {{call_id}} - Unique call identifier
  • {{agent_name}} - Name of the agent
Custom Variables
  • Define your own variables
  • Pull from CRM or database
  • Use in any conversation flow

Dynamic Variable Insertion

Where to Use Variables

Greetings
Questions
Responses
Confirmations

Variable Processing

Real-Time Resolution
  • Variables are resolved in real-time during the call
  • Values are pulled from connected data sources
  • Fallback values used if data unavailable
Data Sources
  • CRM integrations (Salesforce, HubSpot, etc.)
  • Customer database
  • Call context and history
  • External APIs

Using Customer Data in Conversations

CRM Integration

Automatic Data Pull
  • Customer data automatically pulled from CRM
  • Available immediately when call starts
  • Updates in real-time during conversation
Example Flow:
  1. Caller’s phone number identified
  2. System looks up customer in CRM
  3. Customer data loaded into variables
  4. Agent uses data in conversation

Data Mapping

Field Mapping
  • Map CRM fields to Tabbly variables
  • Custom field names supported
  • Transform data format if needed
Example Mapping:

Dynamic Personalization

Personalized Greetings
Context-Aware Responses
Historical Context

Advanced Variable Usage

Conditional Variables

If-Then Logic

Calculated Variables

Date Calculations
Mathematical Operations

Nested Variables

Complex Structures

Variable Best Practices

Provide fallback values for variables that might be missing. Example: {{customer_name|"there"}}
Test all variables with sample data to ensure they work correctly. Verify formatting and accuracy.
Use variables naturally in conversation. Don’t over-personalize or make it feel forced.
Be mindful of privacy. Only use customer data that’s appropriate and consented to.
Ensure variable resolution is fast. Slow data lookups can cause delays in conversation.

Common Variable Examples

Appointment Scheduling

Order Status

Support Tickets

Billing

Troubleshooting

Variables Not Resolving
  • Check variable name spelling
  • Verify data source connection
  • Test with sample data
  • Review error logs
Missing Data
  • Ensure CRM integration is active
  • Check data mapping configuration
  • Verify customer record exists
  • Set up fallback values
Formatting Issues
  • Check date/time format settings
  • Verify number formatting
  • Test with different data types
  • Review variable syntax

Next Steps