Skip to content
FlowHubFluxonLab
C
Quick Chartfree

n8n Subworkflow Dependency Graph & Auto-Tagging

by Ludwigadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeHTTP RequestHTTP RequestQuickChartQuickChart
Share Post Share
HRUpdate workflow tagsUpdate workflow…N8GET all workflowsGET all workflo…CoList callers of subworkflowsList callers of…FiExclude uncalled workflowsExclude uncalle…FiExclude missing workflowsExclude missing…ScAnd every SundayN8When this workflow is activatedWhen this workf…N8GET workflow(s)SeCount callers and identify new callersCount callers a…SILoop through workflowsLoop through wo…HRGET all tagsSeRemove existing tags from new_callers listRemove existing…IfIf any new callersIf any new call…SOSplit out new callers as new tagsSplit out new c…HRCreate new tagsCoReturn original pass through valuesReturn original…MeMergeHRGET all tags againGET all tags ag…SeCreate tag id:name dictionaryCreate tag id:n…SeRetrieve tag ids and names from dictionaryRetrieve tag id…SeReturn dependency graph dataReturn dependen…AgCombine dependency graph values into labelsCombine depende…QCVisualize subworkflow dependency graphVisualize subwo…SeSET instance_urlWeWhen viewed in a browserWhen viewed in …CoFormat workflow relationship data for renderingFormat workflow…RTVisualize dependency graph with MermaidJSVisualize depen…12345678910111213141516171819202122232425262728
1/5
STEPS · 28
Runs on a schedule

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: Fetching all workflows and identifying which ones execute others. Verifying that referenced subworkflows exist. Building a caller-subworkflow dependency graph for visibility. Automatically tagging sub-workflows based on their parent workflows. Providing a chart visualization to highlight the most-used sub-workflows. Set Up Steps Estimated time: ~10–15 minutes Set up n8n API credentials to allow access to workflows and tags. Replace instance_url with your n8n instance URL. Run the workflow to analyze dependencies and generate the graph. Review and validate assigned tags for sub-workflows. (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.

Tags

n8nreference-onlyquick-chart
Connects
CCodeWHTTP RequestquickchartQuickChart
CategoryQuick Chart
Triggermanual
Complexityadvanced
Nodes27
AddedFeb 18, 2025

Related workflows

See all Quick Chart
Browse more Quick Chart workflows in the marketplace.