Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Map n8n Subworkflow Dependencies and Auto-Tag Workflows
Every Sunday or when activated, it reads all workflows through the n8n API, builds a subworkflow dependency graph with QuickChart and updates workflow tags.
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
27 steps in total.
Similar automations
Code, Git & Developer ToolsSubworkflow Dependency Graph and Auto-Tagging for n8n82 stepsTasks & Project ManagementBlock Awork Tasks from Closing with Open Dependencies25 stepsReports, Analytics & DashboardsBuild a QuickChart Line Chart and Save to Drive6 stepsEmail AutomationAdd a ConvertKit Subscriber to a Form and Tag4 steps