⚙️ Monitor workflow errors with n8n API, log to Google Sheets, and alert via Slack

⚡ 54 views · ⚙️ DevOps & CI/CD

Description

Who is this for?

This workflow is built for n8n admins, automation agencies, solopreneurs, and ops teams running multiple workflows in production who need to know the moment something breaks.

If you’re manually checking your n8n execution logs every day to catch failures or worse, finding out about broken workflows days later this template gives you real-time monitoring with zero effort.

What problem does this solve?

What this workflow does

This workflow monitors your entire n8n instance for failed executions and handles the full error lifecycle automatically:

Setup

Credentials needed

Configuration

  1. Create an API key in your n8n instance (Settings → API)
  2. Add it as an HTTP Header Auth credential in n8n with the header name X-N8N-API-KEY
  3. Open the Get Failures and Get Execution Detail nodes and replace YOUR-N8N-INSTANCE-URL with your actual n8n domain (e.g., n8n.yourcompany.com)
  4. Create a Google Sheet with these columns: Timestamp, Workflow Name, Workflow ID, Execution ID, Failed Node, Error Category, Severity, Error Message, Suggested Fix, Retryable, Status, Notes
  5. Open the Log to Sheet node and update the spreadsheet ID
  6. Open the Slack Alert node and set the channel to your alerts channel (e.g., #n8n-errors)

Test it

Manually trigger the webhook, or intentionally break a test workflow and wait one minute for the scheduled check. You should see a Slack alert and a new row in your Google Sheet.

How to customize this workflow

🔗 Nodes Used

HTTP Request, Slack, Webhook, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup