See llms.txt for all machine-readable content.

Back to Templates

Send urgent failure alerts and daily digests with Gmail and data tables

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

  1. Triggers when another n8n workflow fails, when another workflow calls it via Execute Workflow inputs, or when you manually run the sample-alert test.
  2. 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).
  3. Sends alerts with severity set to urgent or error immediately to your inbox using Gmail.
  4. Stores warn and info alerts as rows in an n8n Data Table for later processing.
  5. 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).
  6. 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

  1. 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.
  2. Add a Gmail credential and replace [email protected] with your email address in both Gmail send steps.
  3. 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