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.