Quick overview
This workflow centralizes n8n workflow failures and custom alerts, emailing urgent issues immediately via Gmail and batching non-urgent alerts into a single scheduled evening digest stored in an n8n Data Table.
How it works
- Triggers when another n8n workflow fails, when another workflow calls it via Execute Workflow inputs, or when you manually run the sample-alert test.
- Converts failure payloads into a standardized alert with workflow name, error details, and execution link, then normalizes all alerts (defaulting missing fields and trimming text).
- Sends alerts with severity set to urgent or error immediately to your inbox using Gmail.
- Stores warn and info alerts as rows in an n8n Data Table for later processing.
- Runs every evening on a schedule, loads up to 500 unsent alert rows, and groups repeats by title to build one plain-text digest (listing problems before FYIs).
- Emails the digest via Gmail and then marks the included Data Table rows as sent so they are not included in the next digest.
Setup
- Create an n8n Data Table named alert_digest with columns title, severity, detail, source, link (string) and sent (boolean), and select it in the workflow’s Data Table nodes.
- Add a Gmail credential and replace [email protected] with your email address in both Gmail send steps.
- In each workflow you want monitored, set this workflow as the Error workflow in n8n workflow settings and/or configure an Execute Workflow step to pass title, severity, detail, source, and link inputs.
Requirements
- An n8n instance with Data Tables (cloud or self-hosted), plus a Gmail account connected as a credential.
Customization
- Change the digest time in the Every Evening node, or swap either Gmail node for Slack or Telegram to get urgent alerts on your phone.
Additional info
Video walkthrough (2:49): https://youtu.be/iWUfK5lvIW0