n8n error workflow that sends Gmail alerts
This n8n workflow is an error handler that emails you through Gmail when another workflow fails. It is for anyone running production workflows who wants to hear about failures at once, including errors that happen at the trigger before an execution even starts.
What it does
An Error Trigger catches the failure, an If node checks whether it is an execution error or a trigger error, and HTML nodes build a matching message. The subject line carries the failed workflow ID and name, and Gmail sends it.
How to use it
In the Config node set your n8n base URL, the notification recipient and the sender name, then pick this as the error workflow in the settings of the workflows you want covered.
Requirements and limits
Needs a Gmail credential.
More in Gmail and the n8n workflow library.
Full text
Front matter
name: CV Evaluation - Error Handling
description: Triggered manually or by an app event. Connects Code, Condition, Gmail, Html, Stop And Error. ## Config Define - your n8n app base url - notifications recipient email - sender name ## Send email via Gmail on workflow error (execution and trigger-level errors) This error handling workflow sends an email via Gmail on workflow errors with details. It extends {{ $env.WEBHOOK_URL }} by adding functionality covering also trigger-level errors. - ### Features - Get notifications on both main workflow trigger and execution time errors. - Subject line will have the failed workflow id, nam
category: Automation
kind: Workflow
software: Code|Condition|Gmail|Html|Stop And ErrorCV Evaluation - Error Handling
Triggered manually or by an app event. Connects Code, Condition, Gmail, Html, Stop And Error. ## Config
Define
- your n8n app base url
- notifications recipient email
- sender name ## Send email via Gmail on workflow error (execution and trigger-level errors)
This error handling workflow sends an email via Gmail on workflow errors with details.
It extends {{ $env.WEBHOOK_URL }} by adding functionality covering also trigger-level errors.
Features
- Get notifications on both main workflow trigger and execution time errors.
- Subject line will have the failed workflow id, nam
Steps
- Error Trigger (errorTrigger)
- Gmail (gmail)
- Merge (merge)
- Config (set)
- Constants (set)
- If Node (if)
- HTML for Execution Error (html)
- HTML for Trigger Error (html)
- KeepEitherOfHTMLs (merge)
- Code (code)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Error Handler (stopAndError)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Error/1991_Error_Code_Automation_Triggered.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.