✨ $500 AI Visibility Audit — live at Spurlock Studios. Book the audit

Operations & Systems

n8n Subworkflow Dependency Graph & Auto-Tagging

Analyzes n8n workflows for subworkflow dependencies, auto-tags with callers, generates Mermaid graphs & pie charts for visualization. Uses n8n API for fetching/updating workflows & tags. Scheduled weekly or webhook-triggered.

Built · ~9.5 hours saved per week

n8n users with complex workflows using subworkflows for modular automation. Fetches all workflows, builds a dependency graph by finding which workflows call others via Execute Workflow nodes, auto-creates and applies tags to subworkflows showing their callers, and generates visualizations like a pie chart and Mermaid graph to display relationships. Create n8n API credentials, update the instance_url in the SET instance_url node to your n8n instance, activate the workflow or set the schedule trigger. n8n instance version supporting API v1, API credentials with workflow and tag access, JavaScript-enabled Code nodes. Modify the Code node to adjust dependency detection logic, add more filters for specific workflow types, extend visualizations with additional charts or export to tools like Graphviz. Key Technologies: n8n API,JavaScript (Code Node),MermaidJS,QuickChart for Pie Charts,HTTP Request Nodes,n8n Built-in Nodes (Filter, Set, Merge, etc.) Automation Value: Automates dependency tracking, reducing manual audits and errors in large n8n setups. Enables proactive maintenance by tagging subworkflows, making it easy to identify impacts of changes. Provides visual insights into workflow relationships, aiding in optimization and documentation. Runs on schedule or on-demand, ensuring up-to-date graphs without constant intervention. Best Practices: Use API credentials with minimal permissions to limit exposure. Schedule runs during low-traffic times to avoid impacting production workflows. Test tag creation on a staging instance before production. Document customizations in sticky notes for team collaboration. Monitor API rate limits when scaling to large n8n instances with many workflows.

Tags: PMS Automations, Webhook Trigger, Admin, n8n, Data Transformation

Integrations: HTTP, Code, Schedule, Webhook

Related automations

Back to the Automation Library