Templates / n8n subworkflow dependency graph & auto-tagging

n8n subworkflow dependency graph & auto-tagging

Ready for 3.0

by Ludwig ✓ · 2,635 views · created 2025-02-18 · Engineering

Ready 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)

QuickChart

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.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.