Skip to main content

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

Workflow preview

Workflow preview
100%
Monitor workflow errors with n8n API, log to Google Sheets, and alert via Slack preview
Open on n8n.io

1. Workflow Overview

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...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Monitor workflow errors with n8n API, log to Google Sheets, and alert via Slack
Workflow name
Monitor workflow errors with n8n API, log to Google Sheets, and alert via Slack

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?

  • Failed workflows go unnoticed for hours or days because nobody checks the execution log
  • When you do find a failure, you have to dig through execution data to figure out what went wrong
  • No centralized error history you can't spot patterns or recurring issues
  • Alert fatigue from generic monitoring tools that don't tell you why something failed or how to fix it

What this workflow does

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

  • Continuous monitoring runs every minute on a schedule (or on-demand via webhook)
  • Smart filtering only processes failures from the last 5 minutes and excludes its own executions to prevent alert loops
  • Automatic error classification categorizes every failure into one of 7 types: Auth Error, Rate Limit, Network, Data/Config Error, Not Found, Server Error, and Permission
  • Severity assignment tags each error as đź”´ Critical, đźź  High, or 🟡 Medium
  • Suggested fixes — generates an actionable fix suggestion for each error category (e.g., "Re-authenticate credential for: [node name]")
  • Google Sheets logging appends a detailed row to your error log with timestamp, workflow name, error category, severity, message, suggested fix, and retry status
  • Color-coded Slack alerts sends a formatted message to your alerts channel with the workflow name, failed node, error type, error message, suggested fix, and clickable links to the workflow and execution

Setup

Credentials needed

  • n8n API Key HTTP Header Auth credential with header name X-N8N-API-KEY
  • Google Sheets OAuth credentials
  • Slack OAuth credentials

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

  • Different alerting channel? Replace or duplicate the Slack node to send alerts to Microsoft Teams, Discord, email, or PagerDuty
  • Auto-retry? Add a retry branch after the Classify Error node that automatically re-runs retryable executions (Rate Limit, Network, Server Error) via the n8n API
  • Different logging? Replace the Google Sheets node with Airtable, Notion, or a database insert for more structured tracking
  • Adjust the schedule? Change the Schedule Trigger from every minute to every 5 minutes, 15 minutes, or hourly depending on your needs
  • Add more error categories? Extend the classification logic in the Classify Error code node to handle domain-specific errors (e.g., Stripe payment failures, Shopify API errors)

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 - Webhook (Manual)

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

Block 2 - Schedule

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - Get Failures

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

Block 4 - Filter Recent

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

Block 5 - Get Execution Detail

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

Block 6 - Classify Error

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

Block 7 - Log to Sheet

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

Block 8 - Slack Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 9 - Sticky Note

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

3. Summary Table

Workflow Monitor workflow errors with n8n API, log to Google Sheets, and alert via Slack
Complexity intermediate
Nodes 12
Categories DevOps, AI Summarization
Author Ahmad Bukhari
Published 10 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14964/14964.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 Monitor workflow errors with n8n API, log to Google Sheets, and alert via Slack do?

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...

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.