n8n subworkflow dependency graph & auto-tagging
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (15)
- HTTP Request
n8n-nodes-base.httpRequest - n8n
n8n-nodes-base.n8n - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Schedule Trigger
n8n-nodes-base.scheduleTrigger - n8n Trigger
n8n-nodes-base.n8nTrigger - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - QuickChart
n8n-nodes-base.quickChart - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook
What it does
How it Works As n8n instances scale, teams often lose track of sub-workflows—who uses them, where they are referenced, and whether they can be safely updated. This leads to inefficiencies like unnecessary copies of workflows or reluctance to modify existing ones. This workflow solves that problem by: 1. Fetching all workflows and identifying which ones execute others. 2. Verifying that referenced subworkflows exist. 3. Building a caller-subworkflow dependency graph for visibility. 4. Automatically tagging sub-workflows based on their parent workflows. 5. Providing a chart visualization to highlight the most-used sub-workflows. !n8nsubworkflowdependencygraph.png(fileId:956) Set Up Steps Estimated time: ~10–15 minutes 1. Set up n8n API credentials to allow access to workflows and tags. 2. Replace instanceurl with your n8n instance URL. 3. Run the workflow to analyze dependencies and generate the graph. 4. Review and validate assigned tags for sub-workflows. 5. (Optional) Enable pie chart visualization to see the most-used sub-workflows. This workflow is essential for enterprise teams managing large n8n instances, preventing workflow duplication, reducing uncertainty around dependencies, and allowing safe, informed updates to sub-workflows.