Quick Start
1
Reference a variable in your prompt
Use double curly braces:
{{variableName}}2
System defaults work automatically
Variables like
{{firstName}}, {{currentDate}}, and {{phoneNumber}} are always available3
Create custom variables for your data
Add custom properties to contacts (e.g.,
{{contractId}}, {{city}}) and reference them in your prompt- Use Cases
- Variable Types
- Custom Variables
- Personalize greetings: “Hi
{{firstName}}, this is Emma from Telli” - Reference customer data: “I see you’re calling about contract
{{contractId}}” - Context-aware routing: Use customer properties to guide the conversation flow
- Time-based behavior: Adjust responses based on
{{currentTime}}or{{currentWeekday}} - Pass order details: Include order numbers, product names, or any custom data from your system
- Best Practices
- Good to Know
Define Variables in a Centralized SectionDefine all variables in a centralized section so the agent has full clarity on what values are available.
Don’t Build Logic Around Raw ValuesIf a variable is unknown, empty, orThis way the agent understands the meaning behind each variable and knows exactly what to do in every scenario, including when data is missing.
Reference Variables Where They’re UsedFor longer prompts, define the variable clearly in a centralized section at the top, then reference it again right before it’s actually used. This helps reinforce context and reduces the risk of misapplication.
Use Them in Workflows TooThe contact properties you set up here also work in workflows. When a workflow runs after a call, you can use the same values to send a webhook, update a contact, or sync to your CRM. You only need to set them up once.See Workflows for the full list of places they can show up.
Don’t Build Logic Around Raw ValuesIf a variable is unknown, empty, or
0, the agent has no instruction on how to interpret it and may not know which path to follow.Instead, clearly define what each variable represents in natural language and explicitly instruct the agent what to do in each scenario.What to do
Reference Variables Where They’re UsedFor longer prompts, define the variable clearly in a centralized section at the top, then reference it again right before it’s actually used. This helps reinforce context and reduces the risk of misapplication.
Use Them in Workflows TooThe contact properties you set up here also work in workflows. When a workflow runs after a call, you can use the same values to send a webhook, update a contact, or sync to your CRM. You only need to set them up once.See Workflows for the full list of places they can show up.