Templates / Error handling: Send email via Gmail on execution or trigger-level errors

Error handling: Send email via Gmail on execution or trigger-level errors

Ready for 3.0

by Olek · 2,505 views · created 2025-03-03 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 10 nodes and runs when another workflow fails (error workflow). Along the way it connects Gmail.

How it runs

Trigger: When another workflow fails (error workflow).

  1. Config (Edit Fields (Set)): sets 3 fields: config.appUrl, config.emailing.sendTo, config.emailing.senderName
  2. Constants (Edit Fields (Set)): sets 5 fields: workflow.url, workflow.isExecutionError, errorHandlingWorkflow.id…
  3. Merge: merges the data from its input branches
  4. If: checks a condition and branches into true / false
  5. Gmail: uses Gmail
  6. HTML: parses or builds HTML
  7. HTML: parses or builds HTML
  8. KeepEitherOfHTMLs (Merge): merges the data from its input branches
  9. Code: runs custom JavaScript code

Services it uses

Gmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

This error handling workflow emails detailed notifications on workflow execution and trigger errors. It extends Send email via Gmail on workflow error template by covering trigger-level errors. --- Features - Get notifications on both main workflow trigger…

Excerpt from Olek's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.