https://retellai.com/?utm_source=discord&utm_medium=seo logo
My agent doesnt know the current time
# ❓・ai-evy-support
b
@AI Evy My agent doesnt know the current time. and when user asked "what day is that" after AI offer an appointment slot on November 18th the AI said that it was a monday, eventhough it is a tuesday
a
Thanks for tagging me @byredyre. I'll look through relevant sources and get back to you shortly.
### Answer For Retell AI agents to correctly know and reference the current time and day, you should use the dynamic variable syntax for time in your prompts, such as {{current_time}} or {{current_time_[timezone]}} (for example, {{current_time_America/New_York}}) . Make sure your agent’s prompt includes a line like:
Copy code
The current time is: {{current_time_America/Los_Angeles}}
or for your timezone:
Copy code
The current time is: {{current_time_Your/Timezone}}
This ensures the LLM has access to the right date and time context. If the agent is still giving the wrong weekday for a date (e.g., saying November 18 is a Monday when it is a Tuesday) , verify that the timezone is set correctly in both your agent settings and your prompts, and always use the exact variable format (case-sensitive) as shown above. If the variable is missing or misnamed, the agent will not have the correct temporal information [(1) ]() [(2) ]() [(3) ]() . Check out these potentially useful sources: [Dynamic Variables]() , [Having issue with the date]() , [Agent Refering to Date in October 2023 When Making Appointments. Using Retell AI > GHL >N8N]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Having issue with the date](https://discord.com/channels/1186424376300679209/1347008981398196254) [[3] Agent Refering to Date in October 2023 When Making Appointments. Using Retell AI > GHL >N8N](https://discord.com/channels/1186424376300679209/1355296175007469780) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy should I put this "The current time is: {{current_time_America/Los_Angeles}}" in the conversation nodes, or is it enough to put it in the global prompt?
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer You should use the global prompt for your agent’s overall personality, tone, and universal rules—such as general context like the current time—while conversation flow nodes are best for step-by-step logic, specific questions, and transitions [(1) ]() . If you want the current time to be referenced throughout the conversation, placing {{current_time_America/Los_Angeles}} in the global prompt is usually sufficient. If you need the agent to mention or use the current time at specific points in the conversation, add it directly to the relevant conversation node as well , [(2) ]() .
​ To learn more, see the sources I considered: [[1] CONVERSATION FLOW AGENT - GLOBAL PROMPT](https://discord.com/channels/1186424376300679209/1371534043157500025) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy so what exactly should I put in my global prompt?
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer For Retell AI conversation flow agents, you should put your agent’s overall personality, tone, and universal rules—such as general context, instructions the agent should always follow, and persistent information like the current time variable—in the global prompt. The global prompt sets the default behavior and context available to every node. Use conversation flow nodes for step-by-step logic, specific questions, and transitions. If you want certain information (like the current time) referenced everywhere, include it in the global prompt. If it should only appear at specific points, add it to those nodes instead [(1) ]() .
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] CONVERSATION FLOW AGENT - GLOBAL PROMPT](https://discord.com/channels/1186424376300679209/1371534043157500025) ​