# n8n Workflow Autopsy (`colt2822/n8n-workflow-autopsy`) Actor

Paste an n8n workflow export, get an evidence-tiered audit: confirmed defects, likely risks, unknowns and passed controls. Deterministic, secrets withheld, no AI guessing.

- **URL**: https://apify.com/colt2822/n8n-workflow-autopsy.md
- **Developed by:** [Colton Mcclain](https://apify.com/colt2822) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $500.00 / 1,000 workflow auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## n8n Workflow Autopsy

**A structured audit of your n8n workflow export: what is broken, what is risky, what we cannot know.**

### What problem does it solve?

Automations fail silently: unauthenticated webhooks, missing error handling, unbounded loops, embedded secrets, writes without idempotency. Reviewing exports by hand misses things.

### What it does

- Deterministic rule engine over your export: triggers, credentials, error handling, retries, loops, external writes, LLM nodes, connections.
- Findings carry an evidence tier: CONFIRMED_DEFECT, LIKELY_RISK, UNKNOWN or PASS, with the basis stated.
- Secret values are never echoed: they are withheld and a final guard blocks any secret-shaped output.
- Delivers a JSON report in the dataset and a readable Markdown report (REPORT.md).

### Pricing (pay per event)

| Event | Price |
|---|---|
| Actor start (once per run, per GB of memory, minimum one) | $0.0050 |
| Workflow audited (per completed workflow report) | $0.5000 |

You pay only for the events above plus nothing else from ELYRAON; Apify platform usage is covered by the event prices. The start event is charged on every run, including a run rejected for invalid input (nothing else is charged in that case). If you set a maximum charge per run, the Actor stops when it is reached and reports `PARTIAL_MAX_CHARGE` in the OUTPUT record, so you are never silently billed beyond your cap and never told a partial result is complete.

### Input

| Field | Title | Required | Description |
|---|---|---|---|
| `workflow_json` | n8n workflow JSON | no | The exported workflow JSON object (must have nodes and connections). Use this OR Workflow URL. |
| `workflow_url` | Workflow URL | no | Public http(s) URL of a workflow JSON file. Use instead of Workflow JSON. |

Example input:

```json
{
  "workflow_json": {
    "name": "My workflow",
    "nodes": [
      "..."
    ],
    "connections": {}
  }
}
```

### Output

Results go to the run's default dataset (download as JSON, CSV or Excel). Each item:

| Field | Type | Description |
|---|---|---|
| `report_schema` | string | WORKFLOW_AUTOPSY_REPORT/2. |
| `workflow` | object | Workflow name and node count. |
| `summary` | object | Counts per evidence tier. |
| `findings` | array | Findings with rule, tier, priority, nodes, evidence, fix. |
| `passes` | array | Controls tested and passed. |
| `unknowns` | array | Questions that need runtime evidence. |
| `limitations` | array | What this audit cannot tell you. |

Example item:

```json
{
  "summary": {
    "CONFIRMED_DEFECT": 1,
    "LIKELY_RISK": 5,
    "UNKNOWN": 0,
    "PASS": 3
  },
  "findings": [
    "..."
  ]
}
```

The key-value store holds `OUTPUT` (run summary: status, counts, warnings, limitations, version, source commit) and `REPORT.md` (readable summary). `OUTPUT.status` is `SUCCEEDED`, `PARTIAL_MAX_CHARGE`, `PARTIAL_RESULT_LIMIT` or `FAILED` (with a structured `error` code/message/field). Invalid or empty input fails the run immediately with an explanation and returns no results.

### Use from code

```bash
curl -X POST "https://api.apify.com/v2/acts/colt2822~n8n-workflow-autopsy/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{"workflow_json": {"name": "My workflow", "nodes": ["..."], "connections": {}}}'
```

```python
from apify_client import ApifyClient
run = ApifyClient("$APIFY_TOKEN").actor("colt2822/n8n-workflow-autopsy").call(run_input={"workflow_json": {"name": "My workflow", "nodes": ["..."], "connections": {}}})
```

This Actor can also be called by AI agents through the Apify MCP server (https://mcp.apify.com), which exposes Actors as tools.

### Limitations

- Static analysis of the export only; nothing is executed or contacted.
- LIKELY_RISK means configuration suggests a weakness we did not reproduce.
- Priorities are a fixed rubric, not measured impact; no savings figures are produced.

### Support

Questions or problems: https://elyraon.com.co/contact/ (ELYRAON). Source revision: `f8f02c1`. Actor version 1.0.

# Actor input Schema

## `workflow_json` (type: `object`):

The exported workflow JSON object (must have nodes and connections). Use this OR Workflow URL.

## `workflow_url` (type: `string`):

Public http(s) URL of a workflow JSON file. Use instead of Workflow JSON.

## Actor input object example

```json
{
  "workflow_json": {
    "name": "Demo order sync",
    "nodes": [
      {
        "id": "1",
        "name": "Webhook",
        "type": "n8n-nodes-base.webhook",
        "typeVersion": 1,
        "position": [
          0,
          0
        ],
        "parameters": {
          "path": "orders",
          "httpMethod": "POST"
        }
      },
      {
        "id": "2",
        "name": "Send to CRM",
        "type": "n8n-nodes-base.httpRequest",
        "typeVersion": 4,
        "position": [
          250,
          0
        ],
        "parameters": {
          "method": "POST",
          "url": "https://crm.example.com/api/orders"
        }
      }
    ],
    "connections": {
      "Webhook": {
        "main": [
          [
            {
              "node": "Send to CRM",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "active": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `report` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "workflow_json": {
        "name": "Demo order sync",
        "nodes": [
            {
                "id": "1",
                "name": "Webhook",
                "type": "n8n-nodes-base.webhook",
                "typeVersion": 1,
                "position": [
                    0,
                    0
                ],
                "parameters": {
                    "path": "orders",
                    "httpMethod": "POST"
                }
            },
            {
                "id": "2",
                "name": "Send to CRM",
                "type": "n8n-nodes-base.httpRequest",
                "typeVersion": 4,
                "position": [
                    250,
                    0
                ],
                "parameters": {
                    "method": "POST",
                    "url": "https://crm.example.com/api/orders"
                }
            }
        ],
        "connections": {
            "Webhook": {
                "main": [
                    [
                        {
                            "node": "Send to CRM",
                            "type": "main",
                            "index": 0
                        }
                    ]
                ]
            }
        },
        "active": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("colt2822/n8n-workflow-autopsy").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "workflow_json": {
        "name": "Demo order sync",
        "nodes": [
            {
                "id": "1",
                "name": "Webhook",
                "type": "n8n-nodes-base.webhook",
                "typeVersion": 1,
                "position": [
                    0,
                    0,
                ],
                "parameters": {
                    "path": "orders",
                    "httpMethod": "POST",
                },
            },
            {
                "id": "2",
                "name": "Send to CRM",
                "type": "n8n-nodes-base.httpRequest",
                "typeVersion": 4,
                "position": [
                    250,
                    0,
                ],
                "parameters": {
                    "method": "POST",
                    "url": "https://crm.example.com/api/orders",
                },
            },
        ],
        "connections": { "Webhook": { "main": [[{
                            "node": "Send to CRM",
                            "type": "main",
                            "index": 0,
                        }]] } },
        "active": True,
    } }

# Run the Actor and wait for it to finish
run = client.actor("colt2822/n8n-workflow-autopsy").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "workflow_json": {
    "name": "Demo order sync",
    "nodes": [
      {
        "id": "1",
        "name": "Webhook",
        "type": "n8n-nodes-base.webhook",
        "typeVersion": 1,
        "position": [
          0,
          0
        ],
        "parameters": {
          "path": "orders",
          "httpMethod": "POST"
        }
      },
      {
        "id": "2",
        "name": "Send to CRM",
        "type": "n8n-nodes-base.httpRequest",
        "typeVersion": 4,
        "position": [
          250,
          0
        ],
        "parameters": {
          "method": "POST",
          "url": "https://crm.example.com/api/orders"
        }
      }
    ],
    "connections": {
      "Webhook": {
        "main": [
          [
            {
              "node": "Send to CRM",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "active": true
  }
}' |
apify call colt2822/n8n-workflow-autopsy --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,colt2822/n8n-workflow-autopsy"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/eZ1ZjoGSM5yfrbEg1/builds/doDyDcjB2YPbgQNTk/openapi.json
