Issue with Slack Send and Wait node when used as a sub workflow to a Tools agent

Describe the problem/error/question

I have a main workflow that has a Slack webhook as a trigger that then flows into a Tools Agent node. This Tools Agent has a “Call n8n Workflow Tool node” that points to a subworkflow which has a Slack “Send and Wait” node. The purpose of this Slack node is to send a question to a team member, wait for them to answer, and once they answer the “Send and Wait” node" resolves. I can even see the output data for this node. However, this response doesn’t get sent back to the AI agent. When you check the output log for the AI Agent, you can see that it was able to invoke the subworkflow properly, but the output only shows the parameters passed on from the AI agent tool and not the response from the last node (send and wait). The note from the “Call n8n Workflow Tool node” states: “This tool will call the workflow you define below, and look in the last node for the response. The workflow needs to start with an Execute Workflow trigger”. It does execute properly, the issue is that the response doesn’t get sent back to the AI Agent.

What is the error message (if any)?

N/A

Please share your workflow

Information on your n8n setup

  • n8n version: 1.95.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): not sure how to get this, but probably default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Win 11
1 Like

Hey @agent5hf

I noticed similar issues, so I implemented a route which checks that thread, I think it was by time stamp, and would monitor reply count, if it increases, I would pull reply, and then process, not straight forward, so hoping this is fixed soon.

I tested with not tool node, that works and sends message and approve works, but seem the ai agent just hangs on wait.


even thought the tools completed and apporved it seems.

I would say a bug for sure, but need to test on latest version.

1 Like

Hello,
I have a similar issue with a simple “Execute Sub-workflow” node. The node’s output corresponds to its input instead of the values returned by the sub-workflow.
Here is a test workflow node JSON:

Do you have a solution? I need to call this sub-workflow from multiple workflows.

I don’t have any solution yet, unfortunately. I’ll be testing this out in the new version tomorrow (1.99.1).

Tested with version 1.99.1, and the issue still isn’t resolved.

Alternatively, I attached a Slack “Send and Wait” node directly as a subnode to an AI Agent. When the subnode is called, the message gets sent to the user, but when they click on the Respond button to fill out the form, the page says “No action required” and there are no fields to fill out.