{ "id": "Um37boya1U0mnCjS", "meta": { "instanceId": "fb924c73af8f703905bc09c9ee8076f48c17b596ed05b18c0ff86915ef8a7c4a", "templateCredsSetupCompleted": true }, "name": "Workflow dashboard with mermaid.js", "tags": [], "nodes": [ { "id": "c1f74b3a-2ae6-4491-ac02-e1e0fd188664", "name": "When clicking ‘Test workflow’", "type": "n8n-nodes-base.manualTrigger", "position": [ 1220, 560 ], "parameters": {}, "typeVersion": 1 }, { "id": "2aef0899-91bb-4141-9ec1-def1c31806ae", "name": "Respond with Mermaid", "type": "n8n-nodes-base.respondToWebhook", "position": [ 2640, 560 ], "parameters": { "options": { "responseHeaders": { "entries": [ { "name": "Content-Type", "value": "text/plain" } ] } }, "respondWith": "text", "responseBody": "={{ $json.mermaidChart }}" }, "typeVersion": 1.1 }, { "id": "2c60a2e2-9f35-45dc-94d1-daf75314e934", "name": "List workflows", "type": "n8n-nodes-base.n8n", "position": [ 1620, 360 ], "parameters": { "filters": {}, "requestOptions": {} }, "credentials": { "n8nApi": { "id": "eW7IdTFt4ARJbEwR", "name": "Ted n8n account" } }, "typeVersion": 1 }, { "id": "ce4e49b9-e1ab-44d1-9490-5c685c9023d9", "name": "Aggregate", "type": "n8n-nodes-base.aggregate", "position": [ 1980, 360 ], "parameters": { "options": {}, "fieldsToAggregate": { "fieldToAggregate": [ { "fieldToAggregate": "wf_data" } ] } }, "typeVersion": 1 }, { "id": "bc48416a-01ff-45f4-9bf2-9f4a39054b54", "name": "Single workflow", "type": "n8n-nodes-base.n8n", "position": [ 1620, 560 ], "parameters": { "operation": "get", "workflowId": { "__rl": true, "mode": "id", "value": "={{ $json.query.wfid }}" }, "requestOptions": {} }, "credentials": { "n8nApi": { "id": "eW7IdTFt4ARJbEwR", "name": "Ted n8n account" } }, "typeVersion": 1 }, { "id": "85f28981-544b-4510-b1ee-d4d538455074", "name": "Switch", "type": "n8n-nodes-base.switch", "position": [ 1420, 460 ], "parameters": { "rules": { "values": [ { "outputKey": "load page", "conditions": { "options": { "leftValue": "", "caseSensitive": true, "typeValidation": "loose" }, "combinator": "and", "conditions": [ { "operator": { "type": "array", "operation": "empty", "singleValue": true }, "leftValue": "={{ Object.keys($json?.query)}}", "rightValue": "wfid" } ] }, "renameOutput": true }, { "outputKey": "has wfid", "conditions": { "options": { "leftValue": "", "caseSensitive": true, "typeValidation": "loose" }, "combinator": "and", "conditions": [ { "id": "a4c4c624-2ff5-4fc0-9bdb-802412a5d92f", "operator": { "type": "string", "operation": "contains" }, "leftValue": "={{ Object.keys($json.query).join(',') }}", "rightValue": "wfid" } ] }, "renameOutput": true } ] }, "options": { "looseTypeValidation": true } }, "typeVersion": 3 }, { "id": "95e0b67b-5e5b-4433-9822-da86900c12ca", "name": "Send Page", "type": "n8n-nodes-base.respondToWebhook", "position": [ 2640, 360 ], "parameters": { "options": {}, "respondWith": "text", "responseBody": "=\n\n
\n \n \nGet an overview of your n8n instance. This dashboard displays all workflows, nodes, and tags on a single page.
\n Grab the template!\n