https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is there a built in variable for {{current_time_Am...
# ❓・ai-evy-support
m
@AI Evy Is there a built in variable for {{current_time_America/New_York}}?
a
Thanks for tagging me @mcnft_. I'll look through relevant sources and get back to you shortly.
### Answer Yes,
{{current_time_America/New_York}}
is a built-in system variable that Retell automatically provides [(1) ]() . According to the documentation, you can use
{{current_time_[timezone]}}
for any specific timezone, where
[timezone]
is the timezone identifier . The example given shows
{{current_time_Australia/Sydney}}
, and the same pattern applies to New York time with
{{current_time_America/New_York}}
[(2) ]() . These timezone-specific time variables are part of Retell's default system variables that require no configuration [(1) ]() . The format returns the current time in the specified timezone, similar to how
{{current_time}}
returns the current time in America/Los_Angeles by default .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
m
What would I use for Pacific? @AI Evy
a
Thanks for the follow-up, @mcnft_. I'll get back to you soon.
### Answer For Pacific time, you have two options: The default
{{current_time}}
variable already returns time in Pacific timezone (America/Los_Angeles) [(1) ]() . If you want to be explicit, you can use
{{current_time_America/Los_Angeles}}
. Both will give you the same Pacific time result, as the documentation shows that
{{current_time}}
defaults to America/Los_Angeles timezone .
​ 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.
m
@AI Evy for multi-state agents, can they access the current time variable? If so, how? I'm using a logic split node in the conversational agent.
a
Thanks for the follow-up, @mcnft_. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Logic Split Node Equation Not Working As Expected](https://discord.com/channels/1186424376300679209/1406310248691667125) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Yes, multi-state agents can access the current time variables in conversation flow agents [(1) ]() . The current time variables are system default dynamic variables that work across all agent types [(2) ]() . You can use any of these built-in time variables in your logic split node equations [(1) ]() [(2) ]() : -
{{current_time}}
- current time in America/Los_Angeles -
{{current_time_[timezone]}}
- current time in any specified timezone (e.g.,
{{current_time_America/New_York}}
) However, there's an important consideration when using dynamic variables in logic split nodes. Based on community discussions, there can be timing issues where variables may not be fully "hydrated" (loaded) when the logic split node tries to read them early in the call flow [(3) ]() . If you encounter issues with your logic split node not properly evaluating the current time variable, you may need to implement a "hydration guard" by checking if the variable exists or is not empty before using it in your logic conditions . The current time variables are automatically available without any configuration needed [(1) ]() [(2) ]() .
m
@AI Evy how would I call this variable in the multi-state agent. Just simply in the prompt?
a
Thanks for the follow-up, @mcnft_. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Yes, for multi-state agents you can use the current time variable directly in your prompts [(1) ]() . Dynamic variables work in multiple locations within multi-state agents : **In Prompts**: You can reference the variable using the
{{variable_name}}
syntax directly in your state prompts . For example:
Copy code
"Hello {{user_name}}, the current time is {{current_time}}. How can I help you today?"
**Where Dynamic Variables Work**: According to the documentation, dynamic variables can be used in : - **Prompts**: Agent instructions and personality - **Begin message**: Opening greeting - **Tool configurations**: Custom function URLs, tool descriptions, property descriptions **Multi-State Structure**: In multi-state agents, the system prompt combines your general prompt with the state-specific prompt [(2) ]() [(3) ]() . The format is: - System prompt (with state) = general prompt + state prompt [(4) ]() [(3) ]() So you can include
{{current_time}}
or
{{current_time_America/New_York}}
in either your general_prompt (available across all states) or in individual state_prompt fields within your states array . The current time variables are default system variables that require no additional configuration [(1) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[4] Get Retell LLM](https://docs.retellai.com/api-references/get-retell-llm) ​