Skip to content

Using dynamic variables (cart, order, customer)

4 min readAI voice agents

Variables make calls personal. Reference the customer's first name, the exact items in their cart, and the discount code in one breath.

Available variables

Wrap variables in double curly braces.

  • {{customer.first_name}}
  • {{cart.items}}
  • {{cart.total}}
  • {{order.last}}
  • {{discount.code}}

Fallbacks

Always provide a fallback for missing data — for example, 'there' if first name is unknown.

Was this helpful?

Related articles