Skip to main content

Log workflow errors to Slack and Google Sheets

Workflow preview

Workflow preview
100%
Log workflow errors to Slack and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Who’s it for This template is for teams using n8n in production who want immediate visibility into workflow failures. It’s ideal for DevOps teams, automation engineers, and operations teams who nee...

Best for

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

Tools used

n8n-nodes-base.errortrigger, n8n-nodes-base.slack, n8n-nodes-base.set, n8n-nodes-base.googlesheets, 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 Pixcels Themes.

Original n8n.io source

1.1 Workflow description

Title
Log workflow errors to Slack and Google Sheets
Workflow name
Log workflow errors to Slack and Google Sheets

Who’s it for

This template is for teams using n8n in production who want immediate visibility into workflow failures. It’s ideal for DevOps teams, automation engineers, and operations teams who need reliable error monitoring, alerting, and historical logs without building custom observability tooling.


What it does / How it works

This workflow automatically captures and logs errors whenever any other n8n workflow fails.

Here’s how it works:

  1. The Error Trigger node activates automatically when a workflow execution fails.
  2. It captures key error details:
  • Workflow name
  • Execution URL
  • Last node executed
  • Error message
  1. A formatted alert message is generated.
  2. The error summary is immediately sent to a designated slack channel for real-time visibility.
  3. At the same time, the full error details are appended as a new row in a Google Sheets document for long-term tracking and analysis.

All of this runs automatically with no manual intervention.


Requirements

To use this workflow, you’ll need:

  • Slack API credentials
  • Google Sheets OAuth2 credentials
  • A Slack channel for workflow alerts (e.g. #alerts-n8n-workflows)
  • A Google Sheet with columns for:
  • Workflow name
  • Execution URL
  • Node name
  • Error message

How to set up

  1. Import this workflow into your n8n instance.
  2. Connect your Slack credentials in the Slack node.
  3. Select the Slack channel where alerts should be sent.
  4. Connect your Google Sheets credentials.
  5. Replace the Google Sheet ID with your own error log sheet.
  6. Ensure the column mappings match your sheet structure.
  7. Activate the workflow.

Once enabled, it will automatically monitor all workflows for failures.


How to customize the workflow

You can easily adapt this template to your needs:

  • Change the Slack message format in the Set message node.
  • Log additional metadata (execution time, environment, tags, etc.).
  • Add more notification channels (Email, PagerDuty, Microsoft Teams).
  • Extend logging to databases or observability tools.

Why use this template

  • 🚀 Instant visibility into workflow failures
  • 🧠 Centralized error history for debugging and audits
  • 🔁 Fully automated, no manual checks required
  • 🛠️ Easy to extend as your automation stack grows

This template helps you keep your n8n automations reliable, observable, and production-ready.

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 - Error Trigger

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

Block 2 - Slack

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

Block 3 - Set message

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

Block 4 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 5 - Sticky Note

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

Block 6 - Sticky Note1

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

Block 7 - Sticky Note2

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

3. Summary Table

Workflow Log workflow errors to Slack and Google Sheets
Complexity intermediate
Nodes 7
Categories DevOps
Author Pixcels Themes
Published 02 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13789/13789.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 Log workflow errors to Slack and Google Sheets do?

Who’s it for This template is for teams using n8n in production who want immediate visibility into workflow failures. It’s ideal for DevOps teams, automation engineers, and operations teams who nee...

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