https://retellai.com/?utm_source=discord&utm_medium=seo logo
what are the dynamic variables that are already re...
# ❓・ai-evy-support
u
@AI Evy what are the dynamic variables that are already reserved and used by Retell?
a
Thanks for tagging me @_scaggs. I'll look through relevant sources and get back to you shortly.
### Answer Retell automatically provides these system variables that are reserved and available for all agents [(1) ]() : Universal System Variables: -
{{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 .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
is it possible to user the call_id variable as part of the prompt ? i dont want to send to the endpoint the full call json , i want to specify only call_id and the variables i want when i use functions @AI Evy
a
Thanks for the follow-up, @danielh_32629. I'll get back to you soon.
### Answer Based on the available sources, I don't see
call_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:
Copy code
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.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.