After consulting this documentation, my initial understanding is that to use the “Execute Trigger Workflow” functionality, I need to create two workflows on separate web pages: a parent workflow and a child workflow containing the “Execute Trigger Workflow” node.
Because the documentation suggests obtaining the sub-workflow’s ID from the alphanumeric string found at the end of its URL.
So, if putting both parent workflow and sub-workflow together in the same page? How we could achieve this? Is there any better documentation for this. Thanks a lot.
Here is the sample I saw from the community templates:
In the example you shared, you’ll notice that the tools connected to the AI Agent node are referring to {{$workflow.id}}.
That evaluates to be the same ID as the alphanumeric string found at the URL of the workflow. You can use that to target your child workflow within the same workflow.
Important note, only one “Execute Workflow Trigger” node is allowed in a workflow to avoid collisions, so if you want to execute multiple sub-workflows you will need to separate them.