Analyze failed workflows with Claude via OpenRouter and log to Sheets with Slack, Email, Discord alerts
Who is this for This workflow is designed for n8n users who manage multiple production workflows and want to: - Receive intelligent, actionable error alerts instead of raw stack traces - Understand root causes without...
Template notes
Who is this for
This workflow is designed for n8n users who manage multiple production workflows and want to: - Receive intelligent, actionable error alerts instead of raw stack traces - Understand root causes without manually debugging every failure - Prevent alert fatigue from repeated similar errors - Maintain a searchable log of all workflow errors
It's ideal for animal advocacy organizations, campaign coordinators, and activists running mission-critical automation workflows for outreach, volunteer coordination, or campaign monitoring.
What it does
When any workflow in your n8n instance fails, this agent automatically: 1. Captures the error details including workflow name, failed node, error message, and stack trace 2. Uses AI (via OpenRouter/Claude) to analyze the error and suggest root causes and fixes 3. Generates a unique error signature for deduplication 4. Logs the error with AI analysis to Google Sheets for historical tracking 5. Checks for recent duplicate errors to prevent alert fatigue 6. Sends enriched notifications through your choice of Slack, Discord, Email, or Webhook
The AI analysis includes root cause identification, error chain tracing, specific fix recommendations, and a confidence score indicating how certain the analysis is.
How to set up
1. Import the workflow into your n8n instance 2. Configure credentials for: - OpenRouter API for AI analysis - Google Sheets for error logging - Notification channels you want to use (Slack, Discord, Gmail, or Webhook URL) 3. Create a Google Sheet with columns matching the log fields 4. Update the receiver email addresses in the "Normalize Error Payload" node 5. Enable the workflow 6. Set this workflow as the error handler for other workflows you want to monitor