https://retellai.com/?utm_source=discord&utm_medium=seo logo
What are the system variables available
# ❓・ai-evy-support
m
@AI Evy What are the system variables available ?
a
Thanks for tagging me @micheldenizob. I'll look through relevant sources and get back to you shortly.
### Answer Retell AI provides several default system variables that are automatically available without any configuration needed [(1) ]() . Here are the available system variables: General 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 [(1) ]() [(2) ]() -
{{current_time_[timezone]}}
- Current time in specified timezone (e.g.,
{{current_time_Australia/Sydney}}
) -
{{current_calendar}}
- 14-day calendar in America/Los_Angeles [(1) ]() -
{{current_calendar_[timezone]}}
- 14-day calendar in specified timezone -
{{call_type}}
- Call type, either "web_call" or "phone_call" [(1) ]() [(2) ]() Phone Call Only Variables: -
{{direction}}
- Call direction, either "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 can be used in prompts, begin messages, tool call URLs, tool call descriptions, voicemail settings, transfer call function numbers, and warm transfer settings [(1) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Simulation Testing Now Live for All Agents](https://www.retellai.com/changelog/simulation-testing-now-live-for-all-agents-c27zh) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.