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

Nodes

b731c813-b526-4eb2-be63-9c3245ed6915767a4dc9-a96d-4faf-8994-3ca756304676a97f27bd-6185-4b9b-bade-f7020a7a18852e3e39e3-0e17-4fae-9ac5-9ee31f9711ed

Tags

Created by

OlOlek

Last edited 12 days ago

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 and execution time errors.
  • Subject line will have failed workflow id, name, error source (execution or trigger), error message.
  • Body will contain links to both failed and error handling workflows as well as execution or trigger-level error details.
  • Body will also contain a machine readable and enriched JSON from Error Trigger describing the error.

Use this error handling workflow for as many workflows as you need.


Configiration

  • Copy this workflow to your workspace and, optionally, move it under the project that contains your main workflow
  • In this error handling workflow settings, set This workflow can be called by as appropriate
  • In Config node, define your app url, notifications recipient email, and sender name (useful to build filters in your inbox)
  • In Gmail node, create and select credentials
  • In your main workflow settings, pick this error handling workflow in the Error Workflow field (How to...)

Related resources


Author

  • Reach out Olek on community.n8n.io
  • Olek on n8n creators hub

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!