#how do i make my agent aware of teh date and time. it will say a past date as if it is in teh futur
1 messages · Page 1 of 1 (latest)
Short answer: ElevenAgents aren’t time-aware by default. Make them time-aware using one of these supported methods:
-
Use system dynamic variables in your prompt/messages
- Reference {{system__time_utc}} (current UTC time) or {{system__time}} (current time in the specified timezone) in your agent’s system prompt or first message, e.g., “Current time: {{system__time}} (TZ: {{system__timezone}}).” These variables are provided by the platform automatically. (elevenlabs.io)
- Note: system dynamic variables (those prefixed with system__) cannot be set or overridden via the client initiation payload; only custom variables can be passed there. If you need a specific timezone, capture it from the user or your app and use it in your logic/prompts. (elevenlabs.io)
-
Inject the current date/time at session start via Overrides
- Enable Overrides (Security tab), then programmatically override the system prompt/first message to include the current timestamp each time you start a conversation (e.g., “Today is 2026‑04‑20 14:05 UTC”). This ensures the LLM reasons with the correct “now.” (elevenlabs.io)
-
Add a simple “time retrieval” server tool
- Create a webhook tool (e.g., GET /now) that returns the current time and, optionally, your user’s timezone; instruct the agent to call it at the start of a conversation or whenever dates are discussed. This is the recommended fix when the agent must frequently compare dates or handle timezones. (elevenlabs.io)
Why you’re seeing “past as future”
- Without one of the above, the model may reason from training cutoffs or inferred context and get relative dates wrong; the docs explicitly note the assistant does not know the current date/time by default. (elevenlabs.io)
If you want, I can outline a minimal prompt snippet and a one-endpoint tool spec you can paste into your agent.
Sources:
Dynamic variables | ElevenLabs Documentation
Personalization | ElevenLabs Documentation
Overrides | ElevenLabs Documentation
Cal.com | ElevenLabs Documentation
Cal.com | ElevenLabs Documentation
so now i added this to my agent prompt: # Date Awareness
Today’s date is {{system__time}}
Always interpret dates relative to today.
Do not describe past dates as future or upcoming.
If a date has already passed, clearly describe it as past.