Error Monitor: AI-Powered Resolution [Context7, Supabase]

Go to Workflow
0 views
Built by Kelsey Brown Kelsey Brown
Created on November 25, 2025

Description

Never miss a workflow failure

Automatically capture, analyze, and debug n8n workflow errors using Claude Sonnet 4 with real-time documentation lookup via Context7 MCP server.

Why this works better

Documentation-first AI analysis

Context7 searches official n8n docs before diagnosing. Claude Sonnet 4 only responds after finding relevant documentation—no hallucinations.

Complete error intelligence

Every error stored in Supabase with full context: stack traces, execution data, workflow structure, AI analysis. Track patterns across all workflows.

Production-ready emails

Professional HTML with inline code snippets, proper formatting, and one-click execution links.

What happens

Root cause - Plain English explanation
Specific fix - Exact field names and values
Prevention tip - Avoid future errors
Execution link - One-click debug access
Statistics - Error frequency tracking

How it works

Error → Your workflow fails
Capture → Full context retrieved
Research → Context7 searches n8n
Analysis → AI diagnoses with context
Email → Formatted alert delivered
Record → Error stored in database

Requirements

Supabase** - Free tier works
OpenRouter** - $5 credit
Context7** - Free API available
SMTP** - For email delivery
n8n API** - Must be enabled

Setup: 15 minutes

Overview

Complete instructions with SQL script included in workflow sticky notes.

Activate: Settings → Error Workflow → Select this workflow

Customize

Reduce cost: Remove workflow_json and execution_data from prompt

Change output: Swap email node for Telegram/Slack/Discord—expressions provided in notes

FAQ

Works with community nodes?
Yes. Context7 searches all n8n documentation.

Handles sensitive data?
Remove workflow_json and execution_data from prompt to exclude content.

Customizable design?
Yes. HTML template in "Build HTML" node is fully editable.

This workflow was created by Kelsey Brown and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
Send Email
n8n-nodes-base.emailSend
Supabase
n8n-nodes-base.supabase