n8n Subworkflow Dependency Graph & Auto-Tagging
n8n Subworkflow Dependency Graph & Auto-Tagging
Complex
High
40
Nodes
Complex
Trigger
High
Complexity
7/22/2025
Added
Workflow Overview
Total Nodes
40
Node Types
16
Node Types
http Request
Update workflow tags, GET all tags, Create new tags, GET all tags again
4 nodes
n8n
GET all workflows, GET workflow(s)
2 nodes
code
List callers of subworkflows, Return original pass through values, Format workflow relationship data for rendering
3 nodes
filter
Exclude uncalled workflows, Exclude missing workflows
2 nodes
schedule Trigger
And every Sunday
1 node
n8n Trigger
When this workflow is activated
1 node
set
Count callers and identify new callers, Remove existing tags from new_callers list, Create tag id:name dictionary, Retrieve tag ids and names from dictionary, Return dependency graph data, SET instance_url
6 nodes
split In Batches
Loop through workflows
1 node
if
If any new callers
1 node
split Out
Split out new callers as new tags
1 node
merge
Merge
1 node
aggregate
Combine dependency graph values into labels
1 node
quick Chart
Visualize subworkflow dependency graph
1 node
sticky Note
Sticky Note, Sticky Note1, Sticky Note2, Sticky Note3, Sticky Note4, Sticky Note7, Sticky Note5, Sticky Note6, Sticky Note8, Sticky Note9, Sticky Note10, Sticky Note11, Sticky Note12
13 nodes
webhook
When viewed in a browser
1 node
respond To Webhook
Visualize dependency graph with MermaidJS
1 node
Workflow JSON
35.91 KB
{
"id": "P9Jr9s9yfcDXTe9R",
"meta": {
"instanceId": "a9f3b18652ddc96459b459de4fa8fa33252fb820a9e5a1593074f3580352864a",
"templateCredsSetupCompleted": true
},
"name": "n8n Subworkflow Dependency Graph & Auto-Tagging",
"tags": [],
"nodes": [
{
"id": "c3e6b9cb-4681-4778-b2f4-01c4a7d8c844",
"name": "Update workflow tags",
"type": "n8n-nodes-base.httpRequest",
"position": [
3200,
740
],
"parameters": {
"url": "={{ $('SET instance_url').item.json.instance_url }}/api/v1/workflows/{{ $json.id }}/tags",
"method": "PUT",
"options": {},
"jsonBody": "={{ $json.tags }}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "n8nApi"
},
"credentials": {
"n8nApi": {
"id": "XXXXXX",
"name": "n8n account"
}
},
"typeVersion": 4.2
},
{
"id...Showing first 1000 characters. Click "Expand" to view the full JSON.