So, I’m building an AI agent that automates the process when a client wants to book a meeting with me. I added a sub-node using ‘Execute Another Workflow’, and inside that workflow, there’s a Human-in-the-Loop (HITL) mechanism. The HITL is used to either approve or disapprove the meeting request submitted by the client.
The problem is that the main workflow doesn’t wait for the HITL process in the sub-workflow to finish completely. When it reaches the Telegram node, the main workflow assumes the sub-node has already been processed, even though it hasn’t.
What I want is for the AI agent node to wait until the entire sub-workflow finishes, including the HITL step, before continuing to the next node in the main workflow. Is there an alternative solution to the problem I’m experiencing?
This is the main workflow:
These are the realted sub-workflows: