Why my calendar Ai agent runs 4 times instead of once?

Im trying to create a simple agent that books an event to my calendar. When i chat and give the command to book an even tomorrow between 11am-12pm, Im trying to figure out why the agent runs 4 times and book 4 same events.

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

maybe having the log will give you and us some hint.

also; you can copy your PROMPT or even better the whole workflow
simply by cut and paste from your n8n.

I’m definitely not an expert
but from what I see
in your system prompt you have 4 queries

Your role is to manage my calendar which includes:

  1. keeping track of my calendar,
  2. create new appointments,
  3. pull my calendar
  4. and letting me know what is my schedule look like for the day.

Maybe it comes from that
I would try to only pass one just to test that theory; something like:

  • Your role is to create new appointments

Also depending on the model you choose
Some model are more reflective than others,
If you feel your task is pretty simple you might want to try with GPT 3.5 to test that possibly

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.