Add system variables for the current date and time
One use case is to pass it to the AI as an instruction to make it aware of the current date or time.
One use case is to pass it to the AI as an instruction to make it aware of the current date or time.
Log in to comment and vote
Comments2
Damien Elie
Mar 19, 2024
At the moment it is possible to do it with the Builder using a request to date time api before each ai request to store the most recent date in variables (specifying a timezone in parameters of request). In instruction we specify that it corresponds to date or time: "{date} is current date", "{time} is current time". After that, the bot is able to answer to "What is date today?" and "What time is it?"
Polkabot
Sep 23, 2025
Yes, but lost the weekday. I Added {current_date} variable, then asked "what date is today?”
Answer is “monday 23 september 2023”.
Wrong because 23 september 2023 is tuesday, not monday; and we need correct weekday for customers.