https://retellai.com/?utm_source=discord&utm_medium=seo logo
What is the best way to have the agent know what t...
# ❓・ai-evy-support
g
@AI Evy What is the best way to have the agent know what the current time is?
a
Thanks for tagging me @Goopa Snoops. I'll look through relevant sources and get back to you shortly.
### Answer Retell AI provides a built-in dynamic variable
{{current_time}}
that you can use in your prompt to give the agent awareness of the current date and time. [(1) ](

▾

) , [(2) ]() , [(3) ]() How to use it: Add the current time to your agent's context/prompt like this:
Copy code
The current date and time is {{current_time}}
[(1) ](

▾

) Important notes: -
{{current_time}}
defaults to Los Angeles (PST) timezone. , [(2) ]() , [(3) ]() - For other timezones, you can use the format
{{current_time_[timezone]}}
, for example:
{{current_time_America/New_York}}
or
{{current_time_Australia/Sydney}}
. [(4) ]() - There's a feature request for more flexible timezone-aware current_time syntax. [(2) ]() , [(3) ]() Workaround for timezone flexibility: If you need precise timezone control, many users send a custom variable via the inbound webhook (or in the API call for outbound) with the local time/date. [(2) ]() , [(3) ]() Pro tip: When using calendar functions (like booking appointments) , include
{{current_time}}
in your prompt before triggering availability checks or booking functions to help the LLM correctly interpret dates. [(5) ]()
​ To learn more, see the sources I considered: [[1] Part 1: BuildYour First Retell Voice Al Agent That Sells Cars](

https://www.youtube.com/watch?v=p0DusrDjfjA▾

) [[2] Discord message from @zz4chy on 2025-03-08](https://discord.com/channels/1186424376300679209/1294891368505937952/1347968047993848002) [[3] Discord message from @truthseeker28 on 2025-03-08](https://discord.com/channels/1186424376300679209/1294891368505937952/1347964389671698444) [[4] Issue with current date](https://discord.com/channels/1186424376300679209/1432663702485864448) [[5] Urgent: Cal.com Booked on different day - Potential Service Disruption with multiple issue.](https://discord.com/channels/1186424376300679209/1423174290458808381) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.