AutomationFlowsEmail & Gmail › Simple Error Workflow

Simple Error Workflow

ByPaul I @paulomation on n8n.io

This workflow sends an alert to the channel of your choice when an execution fails. Connect the tool where you want alerts to be sent (eg. Gmail, Slack, Teams, etc.) Save the workflow Turn on error notification in the workflows you want to monitor

Event trigger★★★☆☆ complexity8 nodesError TriggerGmailSlack
Email & Gmail Trigger: Event Nodes: 8 Complexity: ★★★☆☆ Added:

This workflow corresponds to n8n.io template #10755 — we link there as the canonical source.

This workflow follows the Error Trigger → Gmail recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "OdGpgcdmoUXIdQ69",
  "name": "my_errorwf_template",
  "tags": [],
  "nodes": [
    {
      "id": "a65c95d8-2ae6-4c71-8a60-850c98d1cac3",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -352,
        -96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2832fe74-c5a3-4504-8345-5e9b0c9f1caf",
      "name": "Alert on Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        448,
        -96
      ],
      "parameters": {
        "options": {},
        "subject": "={{ $json.message }}"
      },
      "typeVersion": 2.1
    },
    {
      "id": "f433fd2a-5b2b-4935-b779-b95c64e056ff",
      "name": "Alert on slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        448,
        112
      ],
      "parameters": {
        "otherOptions": {}
      },
      "typeVersion": 2.3
    },
    {
      "id": "147fb3bd-10e7-4e36-b551-2eb4a76064f9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -192
      ],
      "parameters": {
        "color": 7,
        "width": 408,
        "height": 667,
        "content": "### Connect the tool where you want to be alerted in \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "cabfd919-a0c3-4e5e-86d2-86ad3acb3eed",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        -192
      ],
      "parameters": {
        "color": 7,
        "width": 368,
        "height": 272,
        "content": "### Edit the error message"
      },
      "typeVersion": 1
    },
    {
      "id": "92183cdb-4a29-411a-8ba5-2d0f17365c6a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        -208
      ],
      "parameters": {
        "width": 400,
        "height": 336,
        "content": "## Error workflow alert\nThis workflow sends an alert to the channel of your choice when an execution fails.\n\n### How to use\n\u2611\ufe0f  Connect the tool where you want alerts to be sent\n\n\u2611\ufe0f  Turn on error notification in the workflows you want to monitor\n\n### Help\nStep-by-step [tutorial](https://www.youtube.com/watch?v=bTF3tACqPRU)"
      },
      "typeVersion": 1
    },
    {
      "id": "8a1e904c-f89a-40b8-8685-10e3b1aba9ea",
      "name": "Set error message",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        -96
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "message",
              "value": "=\u26a0\ufe0f Workflow `{{$json[\"workflow\"][\"name\"]}}` failed to run! [execution]({{ $json.execution.url }})"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1
    },
    {
      "id": "3ebaf336-58b4-4d4b-83b7-422ccbaf591e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        304
      ],
      "parameters": {
        "color": 7,
        "width": 150,
        "height": 112,
        "content": "Or pick a different node ..."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4b1dcc03-201e-4511-992d-9bc59fb92139",
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Set error message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set error message": {
      "main": [
        [
          {
            "node": "Alert on Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow sends an alert to the channel of your choice when an execution fails. Connect the tool where you want alerts to be sent (eg. Gmail, Slack, Teams, etc.) Save the workflow Turn on error notification in the workflows you want to monitor

Source: https://n8n.io/workflows/10755/ — original creator credit. Request a take-down →

More Email & Gmail workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Email & Gmail

Sync your Google Calendar events with Google Sheets and get daily Slack summaries with meeting statistics. FEATURES:

Google Calendar Trigger, Google Sheets, Slack +3
Email & Gmail

This workflow is an end-to-end AI video generation, review, and delivery pipeline. It takes a plain-text creative prompt via webhook, generates a video using an AI model, continuously checks job statu

Slack, Error Trigger, HTTP Request +2
Email & Gmail

Automate daily KPI tracking and reporting by integrating ClickUp tasks and Google Sheets lead data into a unified dashboard. This workflow computes performance metrics, analyzes sentiment, and deliver

Error Trigger, Slack, ClickUp +2
Email & Gmail

Receive support tickets via webhook, categorize by priority, track SLA deadlines, notify your team on Slack, and send confirmation emails to customers.

HTTP Request, Slack, Gmail +1
Email & Gmail

This workflow is a fully automated AI matte painting generation system for VFX pipelines, designed to convert a single environment prompt into multiple cinematic background variations. It handles gene

HTTP Request, Jira, Slack +3