https://retellai.com/?utm_source=discord&utm_medium=seo logo
hey , how can I give the LLM context on what the ...
# ❓・ai-evy-support
a
Thanks for tagging me @hans_70884. I'll look through relevant sources and get back to you shortly.
### Answer --- Yes, Retell AI provides a system default dynamic variable that can automatically show the current time in any timezone once you know the user's timezone. [(1) ]() You can use
{{current_time_[timezone]}}
where
[timezone]
is replaced with the specific timezone identifier. For example, if the user tells you they're in Sydney, Australia, you would use
{{current_time_Australia/Sydney}}
. The format returned is: "Thursday, March 28, 2024 at 11:46:04 PM AEDT". How to implement this: 1. First, have your agent determine the user's timezone through conversation 2. Store that timezone value in a custom dynamic variable (e.g.,
{{user_timezone}}
) 3. Use nested variables to dynamically reference the correct time:
{{current_time_{{user_timezone}}}}
For example, if you set
user_timezone
to
America/New_York
, the nested variable
{{current_time_{{user_timezone}}}}
would first evaluate to
{{current_time_America/New_York}}
, and then resolve to the actual current time in that timezone. Note: There have been some reported inconsistencies with timezone variables not always being evaluated reliably. [(2) ]() If you encounter issues, you may want to test thoroughly with your specific timezone and model combination. [(2) ]() [(3) ]() **
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] {{current_time_[timezone]}} not working as it should](https://discord.com/channels/1186424376300679209/1440290767170965685) [[3] current_time_America/Mexico_City](https://discord.com/channels/1186424376300679209/1433176714409939015) ​