How do we wait for response from subworkflow called by the AI Agent

I’ve created an “ask to user” tool that uses another n8n workflow as a tool. This tool performs a human-in-the-loop function that sends messages to Discord and waits for a response, but it doesn’t wait for it to complete - it just moves on without waiting. I’m wondering how to solve this problem.
I referenced How do we wait for response from workflow called by the AI Agent, but I couldn’t find the timeout extension option mentioned there. Is the default behavior for handling sub-workflows inherently asynchronous? If so, how can I make it process synchronously?

Information on your n8n setup

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

Please can you also share your “ask to user” workflow.

Have a look at this example. You might need to add a system message to your agent to instruct it to wait for an answer from the tool

(post deleted by author)

Thanks!

I added the “ask to user” workflow. It’s pretty straightforward.

You’re right - I’m trying to use it for basically the same thing as what you shared. But my “ask to user” workflow looks pretty much the same as the one in your link, so I’m confused why my AI Agent keeps moving forward instead of waiting for the Tool Calling to complete.

Maybe it’s something with the Discord response node?

Why are you using it as a tool? I know the link I sent uses the same concept, but I have tested this with telegram once and the “Send and wait” node was added to the end of the AI Agent and not as a tool, which worked