tech_83462
11/24/2025, 8:39 PMAI Evy
11/24/2025, 8:39 PMAI Evy
11/24/2025, 8:39 PMAI Evy
11/24/2025, 8:39 PMretell_llm_dynamic_variables . Here's the format:
json
{
"call_inbound": {
"override_agent_id": "your_agent_id",
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
}
For outbound calls, you set dynamic variables when creating the call using the retell_llm_dynamic_variables field in the Create Phone Call API [(1) ]() :
json
{
"user_name": "John Smith",
"product_name": "Premium Plan",
"account_status": "active"
}AI Evy
11/24/2025, 8:39 PMAI Evy
11/24/2025, 8:39 PMtech_83462
11/24/2025, 8:42 PMAI Evy
11/24/2025, 8:42 PMAI Evy
11/24/2025, 8:43 PM{{variable_name}} [(2) ]() .
What you can do:
1. Return the data from your function in a clear, structured format
2. In your agent's prompt, instruct it how to use the information returned from that specific function
3. The agent can reference and use that returned data in its responses naturally through the conversation context
If you need the data to persist across the entire call in a variable-like way, you'd need to set those as dynamic variables at call initiation (for inbound calls via the inbound webhook response [(3) ](AI Evy
11/24/2025, 8:43 PMAI Evy
11/24/2025, 8:43 PMAI Evy
11/24/2025, 8:43 PM