# Find unreachable nodes and broken connections in n8n

**Use case:** 

Find the parts of a workflow that never run. Reports nodes no trigger can reach, connections pointing at nodes that no longer exist, disabled nodes mid-flow that quietly pass data straight through, and workflows with no trigger at all. Sticky notes are excluded, and ai_languageModel, ai_memory and ai_tool connections are walked the way n8n runs them, so sub-nodes are never called orphans.

## Input

```json
{
  "workflowJson": {
    "workflows": [
      {
        "id": "wf-dead-branches",
        "name": "Lead router",
        "nodes": [
          {
            "id": "1",
            "name": "New lead webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 2,
            "position": [
              0,
              0
            ],
            "parameters": {
              "path": "leads",
              "httpMethod": "POST",
              "authentication": "headerAuth"
            },
            "credentials": {
              "httpHeaderAuth": {
                "id": "2",
                "name": "Webhook header auth"
              }
            }
          },
          {
            "id": "2",
            "name": "Is enterprise?",
            "type": "n8n-nodes-base.if",
            "typeVersion": 2,
            "position": [
              220,
              0
            ],
            "parameters": {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.seats }}",
                    "operator": {
                      "type": "number",
                      "operation": "gte"
                    },
                    "rightValue": 100
                  }
                ]
              }
            }
          },
          {
            "id": "3",
            "name": "Enrich company",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 4.2,
            "position": [
              460,
              -80
            ],
            "parameters": {
              "url": "https://api.clearbit.com/v2/companies/find",
              "options": {
                "timeout": 10000
              }
            },
            "disabled": true
          },
          {
            "id": "4",
            "name": "Create deal",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 4.2,
            "position": [
              700,
              -80
            ],
            "parameters": {
              "url": "https://api.hubapi.com/crm/v3/objects/deals",
              "method": "POST",
              "options": {
                "timeout": 10000
              }
            }
          },
          {
            "id": "5",
            "name": "Send welcome email",
            "type": "n8n-nodes-base.emailSend",
            "typeVersion": 2.1,
            "position": [
              460,
              160
            ],
            "parameters": {
              "subject": "Welcome",
              "toEmail": "={{ $json.email }}"
            },
            "credentials": {
              "smtp": {
                "id": "9",
                "name": "SMTP account"
              }
            }
          },
          {
            "id": "6",
            "name": "Old Salesforce sync",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 4.2,
            "position": [
              460,
              400
            ],
            "parameters": {
              "url": "https://login.salesforce.com/services/data/v58.0/sobjects/Lead",
              "method": "POST",
              "options": {
                "timeout": 10000
              }
            }
          },
          {
            "id": "7",
            "name": "Notify sales",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 4.2,
            "position": [
              700,
              400
            ],
            "parameters": {
              "url": "https://hooks.slack.com/services/T000/B000/XXXX",
              "method": "POST",
              "options": {
                "timeout": 10000
              }
            }
          }
        ],
        "connections": {
          "New lead webhook": {
            "main": [
              [
                {
                  "node": "Is enterprise?",
                  "type": "main",
                  "index": 0
                }
              ]
            ]
          },
          "Is enterprise?": {
            "main": [
              [
                {
                  "node": "Enrich company",
                  "type": "main",
                  "index": 0
                }
              ],
              [
                {
                  "node": "Send welcome email",
                  "type": "main",
                  "index": 0
                }
              ]
            ]
          },
          "Enrich company": {
            "main": [
              [
                {
                  "node": "Create deal",
                  "type": "main",
                  "index": 0
                }
              ]
            ]
          },
          "Create deal": {
            "main": [
              [
                {
                  "node": "Score lead",
                  "type": "main",
                  "index": 0
                }
              ]
            ]
          },
          "Old Salesforce sync": {
            "main": [
              [
                {
                  "node": "Notify sales",
                  "type": "main",
                  "index": 0
                }
              ]
            ]
          }
        },
        "settings": {
          "errorWorkflow": "err-1"
        }
      },
      {
        "id": "wf-no-trigger",
        "name": "Invoice PDF helper",
        "nodes": [
          {
            "id": "1",
            "name": "Build invoice payload",
            "type": "n8n-nodes-base.set",
            "typeVersion": 3.4,
            "position": [
              0,
              0
            ],
            "parameters": {
              "assignments": {
                "assignments": [
                  {
                    "id": "a",
                    "name": "total",
                    "type": "number",
                    "value": "={{ $json.amount }}"
                  }
                ]
              }
            }
          },
          {
            "id": "2",
            "name": "Render PDF",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 4.2,
            "position": [
              220,
              0
            ],
            "parameters": {
              "url": "https://pdf.internal/render",
              "method": "POST",
              "options": {
                "timeout": 10000
              }
            }
          }
        ],
        "connections": {
          "Build invoice payload": {
            "main": [
              [
                {
                  "node": "Render PDF",
                  "type": "main",
                  "index": 0
                }
              ]
            ]
          }
        },
        "settings": {
          "errorWorkflow": "err-1"
        }
      }
    ]
  },
  "workflowUrls": [],
  "workflowIds": [],
  "activeOnly": false,
  "ruleSet": "reliability",
  "minSeverity": "low",
  "ignoreRules": [],
  "includeReport": false
}
```

## Output

```json
{
  "severity": {
    "label": "Severity",
    "format": "string"
  },
  "rule": {
    "label": "Rule ID",
    "format": "string"
  },
  "ruleTitle": {
    "label": "Rule",
    "format": "string"
  },
  "category": {
    "label": "Category",
    "format": "string"
  },
  "workflowName": {
    "label": "Workflow",
    "format": "string"
  },
  "nodeName": {
    "label": "Node",
    "format": "string"
  },
  "nodeType": {
    "label": "Node type",
    "format": "string"
  },
  "message": {
    "label": "Finding",
    "format": "string"
  },
  "parameterPath": {
    "label": "Parameter",
    "format": "string"
  },
  "evidence": {
    "label": "Evidence (masked)",
    "format": "string"
  },
  "remediation": {
    "label": "How to fix",
    "format": "string"
  },
  "docsUrl": {
    "label": "Docs",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [n8n Workflow Auditor - Linter & Security Review](https://apify.com/mediocre_interest/n8n-workflow-auditor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mediocre_interest/n8n-workflow-auditor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/mediocre_interest/n8n-workflow-auditor.md

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
