AI Agent called 2 times

Hi,

I have a piece of workflow where there is an AI AGENT (with a prompt dedicated to the output of the events before) that in one of the tools calls a second workflow (“Call n8n workflow tool”) but when the second workflow returns the output of its execution, this new element is passed back to the AI ​​AGENT that re-execute the call to the AI, which is obviously wrong as a thing. There is no way to tell it that the AI ​​AGENT that must be executed only once

How can I stop it from doing the second execution?

Thanks

Information on your n8n setup

  • n8n version: 1.88
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app):. npm via nginx proxy
  • Operating system:: Debian 12

Can you execute your workflow, pin the data im the nodes then post it here? Plus a screenshot of the executed workflow?

Hi and thanks for the reply. I deleted the “AI Agent” and recreate it (identically) and now I have no problem. Mah… However thanks.

M.

1 Like

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