The argument in one line.
By coupling n8n error workflows with Claude Code via ngrok tunnels and MCP servers, you can automatically diagnose and fix production workflow failures without manual intervention, or receive exact instructions on what you need to do if the fix requires human action.
Read if. Skip if.
- You run n8n workflows in production and spend significant time debugging broken nodes after they fail in the field.
- A solo automation builder or small agency owner who wants to reduce on-call firefighting by automating the diagnosis and repair of workflow errors.
- You're comfortable with n8n, Claude Code, and basic backend concepts like ngrok tunnels and bridge servers, and want to see a concrete implementation.
- You're still learning n8n fundamentals and haven't deployed workflows to production yet — this assumes you already troubleshoot workflows regularly.
- Your workflows fail for reasons outside the node logic itself, like API authentication issues or data source problems that code changes cannot resolve.
- You need a plug-and-play solution — this is a DIY system requiring you to set up ngrok, a bridge server, and Claude API integration yourself.
The full version, fast.
When an n8n workflow fails in production, Claude Code can diagnose and fix the broken node automatically — without you touching it. The architecture works by configuring an error workflow in n8n that fires on any execution failure, which sends an HTTP request through an ngrok tunnel to a local bridge server, which then boots Claude Code with the workflow data and error context. Claude reads the broken node, reasons through the fix, and applies the change directly using the n8n MCP server and a set of n8n-specific skills. If it cannot fix the issue — expired credentials, API outages, authentication failures — it sends a ClickUp notification with step-by-step instructions for what you need to do manually. The system runs unattended, even while you sleep.
Chat with this breakdown — free.
Sign in and you get 23 free chat messages on us — ask for the hook, quote a framework, find the exact transcript moment, generate a markdown action plan. Bring your own key when you want unlimited.
Create a free account →Where the time goes.

01 · Demo 1: order pipeline self-heals
Live demo of a failing Order Processing Pipeline. Claude Code finds the upstream code node returned an array instead of individual items, rewrites it, and sends a ClickUp confirmation.

02 · Architecture reveal
Error trigger to HTTP request to ngrok tunnel to local bridge server to Claude Code spawned in terminal. Raw terminal output shown so viewers see the full flow.

03 · The grocery store vs. apartment metaphor
n8n is a public grocery store; Claude Code lives in a locked apartment. The bridge + ngrok gives n8n the address and the key to knock on Claude's door.

04 · What Claude can and cannot fix
Fixable: logic errors, data-type mismatches, JSON typos, code node bugs. Not fixable: expired credentials, API outages, rate limits. A Google Doc slide enumerates the matrix.

05 · Demo 2: email agent JSON schema fix
Invalid JSON in a structured output parser node. Claude repairs the schema and confirms success.

06 · Demo 3: Tavily research form with injected quote
Deliberately broken JSON body (double-quote injected). Live terminal split-view. Claude patches the expression to sanitize input so future submissions cannot break it.

07 · Demo 4: the unfixable case
Wrong API key (VAPI key in Tavily slot). Claude returns user action required with a step-by-step remediation message. Zero code changes made.

08 · Run it 24/7 plus Claude Project context
Keep the bridge running all the time. Load it with Claude Project context about your business and workflows so fixes get smarter over time.

09 · 18-page PDF guide plus AIS+ community CTA
PDF guide covers prereqs, architecture, ngrok, MCP setup. Free Skool community link. AIS+ paid community pitch (3,000+ members, weekly live Q&A).
Lines worth screenshotting.
- An n8n error workflow can automatically trigger Claude Code via an ngrok tunnel and bridge server to diagnose and fix the failed node without any human intervention.
- Claude Code fixed a broken n8n workflow by changing the code in the upstream node rather than adding the split-out node n8n itself suggested — the AI found a cleaner solution than the error message recommended.
- n8n can reach Claude Code through an ngrok tunnel because the tunnel gives n8n the public address and key that Claude Code's local environment requires.
- The self-healing loop: n8n error → error workflow triggers → HTTP request to ngrok → bridge server starts Claude Code → Claude reads the workflow via MCP → applies fix → notifies via ClickUp.
- n8n MCP server gives Claude Code access to workflow documentation, templates, patterns, and the live n8n environment — all in one connection.
- Claude Code skills for n8n encode how to write expressions, validate nodes, configure connections, and handle edge cases — giving Claude n8n expertise it would not have from training alone.
- The practical gap is that n8n cannot call Claude Code directly because Claude lives locally behind a locked door — ngrok is the key that gives n8n the address and access.
- A self-healing automation system does not eliminate breakages — it eliminates the human time spent diagnosing and fixing those breakages.
- Notification on fix sends you a ClickUp message (or email, Slack, Google Sheet) so you know the fix was applied without having to monitor the terminal.
- When Claude Code cannot fix a workflow, it sends a notification explaining exactly what went wrong and what you need to do — partial autonomy plus clear fallback.
- The error workflow is the trigger layer — enabling it in n8n's workflow settings is the only configuration change needed to connect any existing workflow to the self-healing system.
- Running Claude Code locally for this system means the fix logic runs on your machine with your credentials — there is no third-party service between your n8n instance and your Claude session.
Build the bridge first.
Any time Claude Code needs to be invoked by an external system, the pattern is always: tunnel plus listener plus spawn. Everything else is context.
- The ngrok + bridge server pattern works for any local AI tool that needs to receive webhooks — not just Claude Code.
- The grocery store / apartment metaphor is the cleanest teaching device for one-way API access. Steal it verbatim.
- The fix/no-fix taxonomy is the responsible version of AI fixes everything — use it to scope agentic features honestly.
- Nate built this entirely in Claude Code using plan mode and natural language. Build your own reference doc for every system you set up.
- Load the bridge with Claude Project context: your workflow docs, business logic, node patterns. The fixes get smarter as the context grows.
Terms worth knowing.
- Claude Code
- Anthropic's command-line coding agent that runs locally and can read, write, and execute code on your machine through natural-language instructions.
- n8n
- A workflow automation platform that connects apps and APIs through visual node-based pipelines, often self-hosted or run in the cloud.
- Workflow node
- A single step inside an automation workflow that performs one action, such as fetching data, running code, or sending a message.
- Error workflow
- A secondary automation that fires automatically whenever a main workflow fails, used to log the failure, alert someone, or trigger a recovery process.
- Split out node
- An n8n node that takes a single item containing an array and breaks it into multiple separate items so downstream nodes can process each one individually.
- Code node
- An n8n node that lets you run custom JavaScript or Python inside a workflow to transform data or implement logic the built-in nodes can't handle.
- HTTP request node
- A workflow node that calls any URL over HTTP, used to talk to external APIs or trigger services that don't have a dedicated integration.
- ngrok
- A tool that creates a secure public tunnel to a service running on your local computer, giving it a temporary internet-accessible URL.
- Tunnel
- A network connection that exposes a service running on a private machine to the public internet so outside systems can reach it.
- Bridge server
- A small local program that sits between an external trigger and a local tool, receiving incoming requests and translating them into commands the local tool can run.
- MCP server
- A Model Context Protocol service that exposes tools, data, and documentation to AI agents so they can interact with an external system in a structured way.
- Claude skills
- Prepackaged sets of instructions and reference material loaded into Claude to give it deep expertise in a specific domain or tool.
- Claude project
- A persistent workspace in Claude that holds shared context, files, and instructions so the assistant carries that background across every conversation in it.
- Plan mode
- A Claude Code working mode where the agent drafts and confirms a step-by-step plan with you before making any changes to your files.
- System prompt
- The hidden baseline instructions that define an AI agent's role, rules, and available tools before any user message is processed.
- ClickUp
- A cloud-based project management app used here as a notification destination for sending alerts when workflows fail or get fixed.
- Tavily
- A web search API designed for AI agents that returns clean, summarized results suitable for feeding back into a language model.
- Structured output parser
- A component that forces an AI model's response into a defined schema, such as specific named fields, so downstream automation steps can read it reliably.
- JSON body
- The structured data payload sent in an HTTP request, formatted in JSON, that tells the receiving API what to do.
- Expression syntax
- The mini-language inside automation tools like n8n that lets one node pull values from another node's output using special variable references.
Things they pointed at.
Lines you could clip.
“N8n is like a grocery store. Anyone can go to it because everyone knows where it is. It's public. But n8n can't just go out and visit Claude Code because Claude Code lives in an apartment building in a specific unit and the door is locked.”
“It's cool to Frankenstein our own solutions so that when the models get smarter and smarter, we're already there.”
“I literally started off my prompts to Claude Code with, hey, I've got this crazy idea. Yeah. Here it is.”
Word for word.
Don't just watch it. Burn it in.
See every word as it's spoken — crank it to 2× and still catch all of it. The same dual-channel trick behind Amazon's Kindle + Audible.
The bait, then the rug-pull.
Every automation builder knows the dread: a workflow that ran clean for two weeks suddenly errors at 2am over a missing comma. Nate Herk decided that was a problem Claude Code should own — and in 13 minutes he shows you exactly how he wired it up.
Named ideas worth stealing.
Self-Healing n8n Architecture
- Error Trigger in n8n fires on any workflow failure
- HTTP node calls ngrok tunnel URL
- ngrok forwards to local bridge server
- Bridge server spawns Claude Code with the error payload
- Claude Code uses n8n MCP server to read and fix the workflow
- Claude notifies via ClickUp: fixed or user action required
Six-step pipeline that makes Claude Code the on-call engineer for your n8n stack.
Fix / No-Fix Taxonomy
- CAN FIX: logic errors, data-type mismatches, empty arrays, JSON expression typos, code node bugs
- CANNOT FIX: expired credentials, API outages, rate limits, IP blocks, external service changes
Claude Code operates on code and config — not on credentials or third-party uptime.
Grocery Store vs. Apartment Metaphor
n8n is a public grocery store (cloud-hosted, accessible to anyone). Claude Code is a locked apartment — n8n cannot visit unless you give it the address (ngrok URL) and a key (bridge server endpoint). Best teaching metaphor in the video for one-directional API access.
How they asked for the click.
“I did compile an 18-page PDF guide on exactly how I did this… I'll drop this in my free Skool community which you guys can access for completely free.”
Soft lead-in with free PDF, then upsell to paid AIS+ community. Well-sequenced: value delivered before the ask.







































































