Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Subworkflow Dependency Graph and Auto-Tagging for n8n
On a schedule or n8n event, it maps which n8n workflows call which subworkflows, tags them accordingly and draws the dependency graph with QuickChart.
What it does
The script builds a dependency graph of workflows by identifying which workflows call others (via execution nodes) while preserving workflow names, caller relationships, and tags.
The steps
- Update workflow tags
- GET all workflows
- List callers of subworkflows
- Exclude uncalled workflows
- Exclude missing workflows
- And every Sunday
- When this workflow is activated
- GET workflow(s)
- Count callers and identify new callers
- Loop through workflows
- GET all tags
- Remove existing tags from new_callers list
- If any new callers
- Split out new callers as new tags
82 steps in total.
Similar automations
Code, Git & Developer ToolsMap n8n Subworkflow Dependencies and Auto-Tag Workflows27 stepsReports, Analytics & DashboardsBuild a QuickChart Line Chart and Save to Drive6 stepsEmail AutomationTriage dependency CVEs with OSV.dev, CISA KEV, Claude and Gmail17 stepsReports, Analytics & DashboardsChart SQL Agent Query Results with OpenAI and QuickChart14 steps