https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello i am encountering an error
# ❓・ai-evy-support
h
@AI Evy Hello i am encountering an error. pls give me how to fix the issue with the date and time in the ai. how can i give the ai the current date and time.
a
Thanks for tagging me @HelloPapi. I'll look through relevant sources and get back to you shortly.
### Answer To provide your AI agent with the current date and time, use the
{{current_time}}
dynamic variable in your agent's prompt [(1) ]() . This system variable automatically provides the current time in
America/Los_Angeles
timezone . Basic Usage: Add this to your agent's prompt:
Copy code
Current time is {{current_time}}
For Different Timezones: If you need a different timezone, use
{{current_time_[timezone]}}
. For example: -
{{current_time_Australia/Sydney}}
for Australian time -
{{current_time_America/New_York}}
for Eastern time For Calendar Information: You can also use
{{current_calendar}}
for a 14-day calendar view, or
{{current_calendar_[timezone]}}
for timezone-specific calendars . Common Issues: If the date appears incorrect, verify that you've included the dynamic variable in your prompt correctly . Some users have resolved issues by clearing browser cache or testing in a different browser [(2) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] when using {{current_time}}, it says todays date is Jan 29th](https://discord.com/channels/1186424376300679209/1341124870922174587) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
how can i put the date and the time in system propmt