hans_70884
11/28/2025, 12:35 AMAI Evy
11/28/2025, 12:35 AMAI Evy
11/28/2025, 12:36 AMAI Evy
11/28/2025, 12:36 AMAI Evy
11/28/2025, 12:36 AM{{current_time_[timezone]}}. For example, {{current_time_Australia/Sydney}} or {{current_time_America/New_York}}.
If you need to dynamically determine the user's timezone (for example, by extracting it through a custom tool or function) , you can use nested variables. [(1) ]()
Here's how it works: First, store the user's timezone in a custom variable like {{my_timezone}}. Then use the nested syntax {{current_time_{{my_timezone}}}}.
This evaluates in two steps:
1. {{current_time_{{my_timezone}}}} becomes {{current_time_America/Los_Angeles}} (if my_timezone was set to America/Los_Angeles)
2. Then it evaluates to the actual current time in that timezone
The {{current_time}} variable defaults to America/Los_Angeles timezone and returns a format like "Monday, March 24, 2025 at 02:53:01 PM PDT". [(1) ]() [(2) ]()
**hans_70884
11/28/2025, 12:41 AMAI Evy
11/28/2025, 12:41 AMAI Evy
11/28/2025, 12:41 AM{{current_time_{{user_timezone}}}} is the correct syntax for nested variables in Retell AI. [(1) ]()
Here's how it works:
1. Your tool (named user_timezone) would need to set a dynamic variable with the timezone value (e.g., America/New_York, Europe/London, etc.)
2. When you use {{current_time_{{user_timezone}}}}, Retell evaluates it in two steps:
- First: {{user_timezone}} resolves to the actual timezone string (e.g., America/New_York)
- Second: {{current_time_America/New_York}} evaluates to the actual current time in that timezone
The format returned will be something like "Monday, March 24, 2025 at 02:53:01 PM PDT". [(1) ]() [(2) ]()
Important: Make sure your tool is actually setting the user_timezone dynamic variable with a valid IANA timezone identifier (like America/Los_Angeles, Europe/London, etc.) . The nested variable syntax only works if user_timezone contains a valid timezone string. [(1) ]()
Note: There have been some reported issues with timezone variables not always evaluating reliably in certain contexts. [(3) ]() If you encounter inconsistent behavior, test thoroughly in both Logic Split Nodes and Conversation Nodes.AI Evy
11/28/2025, 12:42 AMAI Evy
11/28/2025, 12:42 AM