Wrong agent date

Describe the problem/error/question

Hi. I’m developing the typical project: the user can access to Google calendar from Whatsapp. The problem is that, when I create a new event, the agents says that the date is 2024. Here is my description : To create events, you must specify a valid date and time in ISO 8601 format. You cannot create an event before the current date, and the upper limit is 12 months from the current date.
. Time zone: Europe/Madrid (UTC+1). Tell the user what the date is in day/month/year format.
The current time and day are available at: L'hora a Espanya ara - Time.is
Today is $now . Time zone: Europe/Madrid (UTC+1)
. Please set the start and end times accordingly.

What is the error message (if any)?

The model returns dates in 2024, but not the current time

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:1.99.1
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • Operating system: Ubuntu Linux 24.04

Hey @Automa_Tiza hope all is well, welcome to the community.
In the system prompt embed information about the time directly, something like

You are .... bla-bla-bla
<your instructions>

Current datetime is {{ $now }}.

This way the model has a reference to what to consider current datetime, instead of relying on the time it was built/compiled.

Hi.
I have put all information about the datetime in the AI Agent, I have explained this in this forum question.
Sorry, I’m very noob in n8n, but when you say “In the system prompt embed information”, where is the system prompt? Or it’s just the AI Agent?

Yes, I meant in the AI Agent. I don’t see the agent on your flow, maybe you could share more of your workflow?

Hi.
I have updated the workflow in the fists part of this question.
Sorry, it’s all in Spanish. You can translate it.