Skip to main content

Diagnose n8n workflow errors with Claude AI, Supabase and Resend email alerts

Workflow preview

Workflow preview
100%
Diagnose n8n workflow errors with Claude AI, Supabase and Resend email alerts preview
Open on n8n.io

1. Workflow Overview

Who's it for This workflow is for anyone who runs n8n workflows and wants to know immediately when something breaks, without digging through execution logs. Especially useful for non technical user...

Best for

  • DevOps automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.supabase, n8n-nodes-base.code, n8n-nodes-base.errortrigger, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Flowcheckers.

Original n8n.io source

1.1 Workflow description

Title
Diagnose n8n workflow errors with Claude AI, Supabase and Resend email alerts
Workflow name
Diagnose n8n workflow errors with Claude AI, Supabase and Resend email alerts

Who's it for

This workflow is for anyone who runs n8n workflows and wants to know immediately when something breaks, without digging through execution logs. Especially useful for non-technical users and freelancers or agencies managing workflows for clients.

How it works

When a workflow fails, this system activates automatically. Claude AI analyzes the error using the technical details and the business context you provide, then generates a diagnosis with the direct cause, a step-by-step fix and prevention advice. A second AI agent validates the confidence score. Based on that score you receive a full diagnosis (≥80%), a diagnosis with a reservation (50–79%), or a manual review notification (<50%). All diagnoses are stored in your Supabase database.

How to set up

Run the provided SQL in Supabase to create the error_log table. Verify your domain in Resend and create an API key. Import the workflow, create four credentials (Anthropic, Supabase, Resend, n8n API) and link them to the correct nodes. Fill in the Config node and activate the workflow. Set it as the Error Workflow for each workflow you want to monitor. Full installation guide at flowcheckers.com.

Requirements

Anthropic API key, Supabase account, Resend account with verified domain.

How to customize

Add workflow_2, workflow_3 etc. in the Config node for additional workflows. Adjust the email templates in the Resend nodes to match your branding.

Need the full installation guide including SQL code? Download it free at flowcheckers.com

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - IF — Confidence ≥ 80?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 2 - IF — Confidence ≥ 50?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 3 - Claude Scoring Judge

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 4 - Claude Diagnosis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 5 - Structured Output Parser 2

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 6 - Haiku 4.5 fallback 2

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 7 - Haiku 4.5 fallback 1

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 8 - Sonnet 4.6 - 2

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 9 - Sonnet 4.6 - 1

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 10 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 11 - Supabase - Get historical context

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 12 - Code - Prepare context

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 14 - Code - Merge output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Supabase - Save diagnosis

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 16 - Error Trigger

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 17 - HTTP Request - Get workflow JSON

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Code - Build context

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - New error notification

Type / Role
n8n-nodes-resend.resend - resend
Config choices
Version 1

Block 20 - Full diagnosis email

Type / Role
n8n-nodes-resend.resend - resend
Config choices
Version 1

Block 21 - Diagnosis with reservation email

Type / Role
n8n-nodes-resend.resend - resend
Config choices
Version 1

Block 22 - Error notification low confidence

Type / Role
n8n-nodes-resend.resend - resend
Config choices
Version 1

Block 23 - Alert: context missing

Type / Role
n8n-nodes-resend.resend - resend
Config choices
Version 1

Block 24 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Diagnose n8n workflow errors with Claude AI, Supabase and Resend email alerts
Complexity advanced
Nodes 34
Categories DevOps, AI Summarization
Author Flowcheckers
Published 05 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15484/15484.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Diagnose n8n workflow errors with Claude AI, Supabase and Resend email alerts do?

Who's it for This workflow is for anyone who runs n8n workflows and wants to know immediately when something breaks, without digging through execution logs. Especially useful for non technical user...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps, AI Summarization use case.