Back to Templates

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

Created by

Created by: Kelsey Brown || kzdev

Kelsey Brown

Last update

Last update 7 hours ago

Categories

Share


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.

Screenshot 20251122 at 23.45.22.png

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

  1. Error → Your workflow fails
  2. Capture → Full context retrieved
  3. Research → Context7 searches n8n
  4. Analysis → AI diagnoses with context
  5. Email → Formatted alert delivered
  6. 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.