Templates / Guard workflows and log incidents with the n8n API, data tables and email

Guard workflows and log incidents with the n8n API, data tables and email

Ready for 3.0

by TrustInRide · 0 views · created 2026-11-14 · 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 21 nodes and runs when another workflow fails (error workflow) (plus 2 other triggers). It uses only n8n's built-in nodes.

How it runs

Trigger: When another workflow fails (error workflow) (plus 2 other triggers).

  1. Settings (Edit Fields (Set)): sets 2 fields: alertTo, alertFrom
  2. What happened? (Code): runs custom JavaScript code
  3. Is an incident? (If): checks a condition and branches into true / false
  4. Shape the incident (Code): runs custom JavaScript code
  5. Get all workflows (n8n): get many (workflow)
  6. Store dead letter (Data table): insert (row)
  7. Fingerprint workflows (Code): runs custom JavaScript code
  8. Alert by email (Send Email): sends an email over SMTP
  9. Latest fingerprints (Data table): get (row)
  10. Compare with last version (Code): runs custom JavaScript code

…plus 8 more steps. See the full node list below.

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Quick overview This workflow provides an n8n “safety net” by logging failed workflow executions to an n8n Data Table and sending email alerts, and by fingerprinting workflows nightly or via a secured webhook using the n8n API to detect suspicious edits and…

Excerpt from TrustInRide'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.