Hi guys, I’m running this workflow that, independently of the origin of the message, I want it to answer to the users’ questions depending on a RAG where documents are saved.
The problem is that the AI agent is returning 2 responses. So I have in my Slack channel, for one question, 2 responses. Sometimes it’s the same and other it’s different. Why is this behaviour happening?
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via: Docker
- Operating system: Windows
As you can see in your screenshot, 2 items are reaching the AI agent & slack nodes.
You can see that the slack trigger provides one item directly and one item thru conditional + mapping, then it gets to the merge and outputs 2 items. Your merge most likely isn’t correctly merging whatever the inputs are and are outputting 2 items which will cause the agent and slack to return twice. 
Thank you! This worked! In case this helps others, what I did was to combine based on position and I was getting the information I needed in the same object.
Awesome I am glad. Would appreciate if you could mark my response as answer. 