https://retellai.com/?utm_source=discord&utm_medium=seo logo
my agent cannot convert the current time node
# ❓・ai-evy-support
h
@AI Evy my agent cannot convert the current time node. how can i set my specific time for my agent?
a
Thanks for tagging me @HelloPapi. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there are a few ways to handle time in your Retell AI agent: ## Using Dynamic Variables for Current Time You can use the
{{current_time}}
dynamic variable in your prompt [(1) ]() . For timezone-specific current time, you can use format like
{{current_time_America/Los_Angeles}}
[(2) ]() or
{{current_time_America/New_York}}
, changing the timezone as applicable to your needs . ## Time-Based Call Routing If you need to control when your agent accepts calls based on specific hours, you can implement time-based logic using function nodes [(3) ]() . After the start node, you can put a function node that has logic to check if the current time is within your desired timeframe (like 9am EST to 6pm EST) . Add two transitions - one if the call is within the time frame, and another if the call is outside the time frame . If the call is outside the time frame, you can have a conversation node that says "We're unable to pick your call right now", then end the call . ## Important Considerations There are some timezone-related challenges that users have reported [(1) ]() [(2) ]() . The
{{current_time}}
variable defaults to PST timezone [(1) ]() , and there can be conversion issues when trying to handle different timezones . A timezone-aware
{{current_time}}
feature is planned for the future . If you need precise timezone handling, consider getting the current t
ime externally rather than relying on the agent to convert timezones .
​ To learn more, see the sources I considered: [[1] Discord message from @sanava.ai on 2025-02-17](https://discord.com/channels/1186424376300679209/1186462578310910112/1341195741573550090) [[2] How can I set the current time in the agent](https://discord.com/channels/1186424376300679209/1370089305606848653) [[3] RTB](https://discord.com/channels/1186424376300679209/1420050512434429960) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.