Bug report – Incorrect date handling in AI Actions and chatbot flows
m
meraik
Hi team,
We're facing an issue with how dates are handled in Chatdata, affecting two scenarios:
AI Action – Message history export:
When exporting the conversation via an AI Action, the bot sends an incorrect timestamp (not the current date/time), which breaks the expected [Sender] (DD/MM/YYYY HH:MM) format.
Chatbot flow – Vacation request validation:
In a chatbot that validates vacation requests based on required advance notice, the bot compares the requested date with a wrong current date (e.g., October 2023). This leads to incorrect validations, even outside AI Actions.
It looks like the system's date reference (now() or equivalent) is not resolving correctly in both AI Actions and chatbot logic.
Thanks for checking this out.
Log In
S
Samuel Su
We updated the default setting to be
turn on the chatbot time and use the fixed time zone of UTC.
Please update your chatbot configuration based on the attached screen according to your time zone.
S
Samuel Su
Hi Meraik,
I believe this is either a setup issue or a misunderstanding with your chatbot, as many other users have been able to use the time function correctly.
Could you please email me the chatbot ID so I can take a look?
Here are a few things to know about how the time function works:
If you're using WhatsApp, Instagram, or Messenger integration, you need to set a fixed time zone, as there's no browser-based time zone available in these channels. The browser time zone setting only applies to the website widget. The fixed time zone works for both the browser and the WhatsApp/Messenger/Instagram integrations, but it will be the same for all users.
Regarding exporting the conversation via an AI Action:
There is no built-in feature for exporting a conversation through an AI Action. I'm not sure what method you're using—it seems like you may have created a custom implementation that hasn’t been configured properly. I’ll need to inspect the chatbot to be sure, so please send us the chatbot ID.
In a chatbot that validates vacation requests based on required advance notice, the bot compares the requested date with an incorrect current date (e.g., October 2023), leading to incorrect validations—even outside AI Actions.
This suggests that the time function is either not enabled or not functioning correctly, and your chatbot is falling back to the model’s default (trained) time. For example, you turned on the browser time and are using the Whatsapp to test the validation action, it will fail because there is no browser with Whatsapp messages.
m
meraik
Samuel Su the chatbot id is 67c843386032add9ef7f6e43
m
meraik
also 6756e92dbb48685d82dab375
S
Samuel Su
meraik so you didn't turn on the chatbot time here. That is the issue
S
Samuel Su
meraik I turned on the chatbot time for you. But please choose the correct time zone for this chatbot as I do not know about your local time zone.
S
Samuel Su
meraik same issue for this one. The time awareness of the chatbot is not turned. I turned on for you and please make sure that the time zone is correct
m
meraik
Samuel Su thanks