_scaggs
07/31/2025, 1:59 PMAI Evy
07/31/2025, 1:59 PMAI Evy
07/31/2025, 1:59 PM{{current_agent_state}} - Current state name (for multi-state agents)
- {{previous_agent_state}} - Previous state name
- {{current_time}} - Current time in America/Los_Angeles
- {{current_time_[timezone]}} - Current time in specified timezone, for example: {{current_time_Australia/Sydney}}
- {{current_calendar}} - 14-day calendar in America/Los_Angeles
- {{current_calendar_[timezone]}} - 14-day calendar in specified timezone, for example: {{current_calendar_Australia/Sydney}}
- {{call_type}} - Call type, web_call or phone_call
Phone Call Only Variables:
- {{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 variables are automatically provided by Retell and require no configuration . You can use them directly in your prompts, begin messages, tool descriptions, and other places where dynamic variables are supported .AI Evy
07/31/2025, 1:59 PMAI Evy
07/31/2025, 1:59 PMdanielh_32629
10/12/2025, 12:09 PMAI Evy
10/12/2025, 12:09 PMAI Evy
10/12/2025, 12:10 PMcall_id listed as one of the default system variables that Retell automatically provides [(1) ]() . The documented system variables include {{current_agent_state}}, {{current_time}}, {{call_type}}, {{direction}}, {{user_number}}, and {{agent_number}} , but call_id is not mentioned among them.
Regarding your second question about custom function requests - when Retell calls your custom function endpoint, the full call object is included in the request body by default [(2) ]() . The request includes:
json
{
"name": "function_name",
"call": "the call object for you to get more context about the call",
"args": "the arguments for the custom function, as a JSON object"
}
The sources don't indicate a way to customize which parts of the call object are sent to your endpoint - it appears the full call object is always included . If you only need the call_id and specific variables, you would need to extract just those fields from the received call object within your endpoint logic.
For the most current information about available system variables or custom function request customization options, you might want to check if there have been recent updates to the platform.AI Evy
10/12/2025, 12:10 PMAI Evy
10/12/2025, 12:10 PM