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?
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