https://retellai.com/?utm_source=discord&utm_medium=seo logo
hello, i have built a chatbot system that is suppo...
# ❓・ai-evy-support
t
@AI Evy hello, i have built a chatbot system that is supposed to book customers for appointments. everything works fine except when i extract the date variables it for some reason thinks that it is in the year 2023. when i for example want to book a meeting through the chatbot on "september 12" it registeres it as september 12 2023 instead of 2025? how can i resolve this issues?
a
Thanks for tagging me @tom06.. I'll look through relevant sources and get back to you shortly.
explicit current date context, the LLM defaults to older training data patterns [(1) ]() [(4) ]() . Providing current time information through dynamic variables or prompts should resolve the 2023 date issue.
### Answer This is a known issue with date handling in Retell AI agents [(1) ]() . Here are several solutions to resolve this: ## Use Default System Variables The most straightforward solution is to use Retell AI's built-in current time system variable [(2) ]() . You can include
{{current_time_[timezone]}}
in your agent's prompt to provide current date context [(3) ]() [(2) ]() . ## Include Current Time in Your Prompt Add the current time directly in your prompt to help the agent understand the current date context [(1) ]() . This helps the LLM pick up the correct year when processing relative dates like "September 12" . ## Prompt Engineering for Date Clarity Some users have found success by instructing the agent to always confirm dates in full format [(4) ]() . For example, instead of accepting "tomorrow at 3pm," have the agent confirm "January 9th at 3:00 PM" . ## External Date Processing You can also handle date processing externally by getting the current date from an API like worldtimeapi.org before initiating the call, then pass it as a dynamic variable . ## Extract Dynamic Variables Configuration When using the Extract Dynamic Variables tool [(5) ]() , ensure your variable descriptions are clear about expecting current year dates, and consider using the Text type for dates to capture the full context . The core issue appears to be that without
​ To learn more, see the sources I considered: [[1] Stating dates on test call(web_call) without saying the year gives 2023](https://discord.com/channels/1186424376300679209/1365198662153797672) [[2] Discord message from @toni3601648 on 2025-07-22](https://discord.com/channels/1186424376300679209/1186462578310910112/1397253397073236088) [[3] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[4] Discord message from @trill_og.sol on 2025-01-09](https://discord.com/channels/1186424376300679209/1186462578310910112/1326721543945977906) [[5] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@User okay so we set our timezone with the variable in the global prompt but it didnt fix it. still chooses the year 2023 instead of our current year