micheldenizob
08/27/2025, 11:44 AMAI Evy
08/27/2025, 11:44 AMAI Evy
08/27/2025, 11:45 AMcall_id is included in the response object [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() .
For example, when creating a web call, the response includes:
javascript
{
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
// ... other fields
}
[(5) ]()
The call_id is described as the "Unique id of the call. Used to identify in LLM websocket and used to authenticate in audio websocket" [(1) ]() [(2) ]() [(5) ]() .
You can access this call_id from any of the call API responses to use it for tracking, authentication, or further API calls.AI Evy
08/27/2025, 11:45 AMAI Evy
08/27/2025, 11:45 AMmicheldenizob
08/27/2025, 11:45 AMAI Evy
08/27/2025, 11:45 AMAI Evy
08/27/2025, 11:46 AMcall_id is returned in API responses as a unique identifier used for LLM websocket identification and audio websocket authentication [(1) ]() [(2) ]() [(3) ]() [(4) ]() .
The documentation does show examples of dynamic variables that can be used in prompts, such as retell_llm_dynamic_variables which allows you to inject key-value pairs into your Response Engine prompt and tool descriptions [(1) ]() [(2) ]() [(4) ]() [(5) ]() :
javascript
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}AI Evy
08/27/2025, 11:46 AMAI Evy
08/27/2025, 11:46 AMAI Evy
08/27/2025, 11:46 AMmicheldenizob
08/27/2025, 11:46 AMAI Evy
08/27/2025, 11:46 AMAI Evy
08/27/2025, 11:46 AM{{current_time_Australia/Sydney}}, {{current_time_America/New_York}}
- `{{current_calendar}}`: 14-day calendar in America/Los_Angeles [(1) ]()
- `{{current_calendar_[timezone]}}`: 14-day calendar in specified timezone, for example: {{current_calendar_Australia/Sydney}}
- `{{call_type}}`: Call type, web_call or phone_call [(1) ]() [(2) ]() [(3) ]() [(4) ]()
## Phone Call Only Variables
These variables are only available for phone calls:
- `{{direction}}`: Call direction, inbound or outbound
- `{{user_number}}`: User's phone number (from_number for inbound, to_number for outbound)
- `{{agent_number}}`: Agent's phone number (to_number for inbound, from_number for outbound)
These system variables are automatically populated by Retell AI and can be used in prompts, begin messages, tool call URLs, tool call descriptions, and other places where dynamic variables are supported [(1) ]() .AI Evy
08/27/2025, 11:46 AMAI Evy
08/27/2025, 11:46 AMmicheldenizob
08/27/2025, 11:47 AMAI Evy
08/27/2025, 11:47 AMAI Evy
08/27/2025, 11:48 AMretell_llm_dynamic_variables field :
{
"user_name": "John Smith",
"product_name": "Premium Plan",
"account_status": "active"
}
However, the documentation doesn't explicitly mention the ability to send or update dynamic variables to an ongoing call . The dynamic variables appear to be designed for initialization at call creation rather than real-time updates during the call .
The Discord discussion does mention some implementation details about setting dynamic variables, but it focuses on initial call setup rather than updates to ongoing calls [(2) ]() .
I don't have specific information about updating dynamic variables for ongoing calls based on the available sources. For this specific use case, you might want to contact Retell AI support for clarification on whether dynamic variables can be modified during an active call.AI Evy
08/27/2025, 11:48 AMAI Evy
08/27/2025, 11:48 AM