Setting default date to TODAY from the output provided by chat model

I have created expense tracker tool. I have applied the date in the field to be by default TODAY. I even added the expression from the chat message for this. But the output date from the open ai not not give me today’s date by default. How should i fix th

Hey @Imtiaz hope all is good. Welcome to the community.

You didn’t show what you did, but the best way to make the agent date-aware is to provide the date in the prompt with something similar to

Todays date is: {{ $today }}.
(make sure the field is an expression)

Thank you for your reply.

I have in fact provided the agent today’s date via expression as you can see from the below screenshot.

image

However, it keeps on giving me the date of 2024-06-06 instead of today i.e. 31-8-2025. See screenshot below:

I have even troubleshooted with chatgpt, with no success.

Kindly, assist pls.

There is not other way to make sure the agent knows the date other than instructing it with the prompt. If it isn’t using it in its work the prompt is either ambiguous or has a conflicting instructions… or it’s Mercury retrograde, or solar flares :slight_smile: As always with these intelligences…

I personally had never experienced issues with making the agent date aware with just providing it in the prompt (sometimes a few times).

ok thanks.