simonlaplante
11/29/2025, 9:02 PMAI Evy
11/29/2025, 9:02 PMAI Evy
11/29/2025, 9:02 PMretell_llm_dynamic_variables field when creating a call [(1) ]() [(2) ]() [(3) ]() .
For Outbound Calls:
When using the Create Phone Call API, include your variables in the retell_llm_dynamic_variables field [(1) ]() . All values must be strings :
json
{
"from_number": "+16504144521",
"to_number": "your_target_number",
"override_agent_id": "agent_71724df7636716ceb3a7e244c8",
"retell_llm_dynamic_variables": {
"customer_name": "John Doe",
"order_id": "12345"
}
}
, [(2) ]() , [(3) ]()
For Inbound Calls:
You can supply dynamic variables in the Inbound Call Webhook [(1) ]() .
Using Variables in Your Prompts:
In your prompts, reference variables using the {{variable_name}} syntax :
Hello {{customer_name}}, I understand you're interested in {{product_name}}. How can I help you today?
Important Notes:
- All values in retell_llm_dynamic_variables must be strings
- Spaces around the variable name will be trimmed when evaluating the variable
- You can also set default values for dynamic variables at the agent level as a fallback
If your agent isn't retrieving the dynamic variable, verify that you're passing the variables in the correct field (retell_llm_dynamic_variables) and that all values are strings .AI Evy
11/29/2025, 9:02 PMAI Evy
11/29/2025, 9:02 PMsimonlaplante
11/29/2025, 10:02 PM