I’ve come across systems that have an agent with a “Call n8n Workflow Tool” but then there’s a “When Executed by Another Workflow” node on the same page. Here’s an example
I know how to create a completely new workflow, and link it that way, but I can’t find any tutorials, or descriptions of the process of setting up and calling a subworkflow from within a parent workflow.
The image that you show isnt actually using the workflow below. The builder selected the sub workflow nodes, and pasted them into the call workflow node. The builder just keeps the original nodes there for reference.
All you need to do is add an execute workflow node and connect it to the nodes that you want to run. Select all of the nodes, copy them, and paste them into the tool as json.
If this response helped you, please click the heart to show that it is useful If this response solved your issue, mark it as the solution to help the community
Let me make sure I understand this. Selecting nodes and copying them puts the JSON version of them on your clipboard. Then inside the Call n8n Workflow Tool you set “Source” to “Define Below” and then paste the JSON into the “Workflow JSON” field?
I found an alternate option. If your workflow starts with a trigger other than “When executed by another workflow”, then you can create one, and for the “subworkflow” choose “By ID” and use the ID of your current workflow.