Keep error alerts useful, not noisy. The flow logs every error to a PostgreSQL table and sends one alert in each five minute window. It suits IT teams that want clear signals without inbox floods.
Errors trigger the run directly or through a call from another workflow. One branch writes full error details into the N8Err table in PostgreSQL. Another branch counts how many rows were created in the last five minutes. An If check allows notifications only when the count is zero, so the first error opens the window and later errors are only logged. Email alerts use a primary SMTP sender with a fallback sender. A Pushover push can notify mobile devices. A manual trigger clears the table for development only. A small code step cleans the execution when used as a sub workflow.
Set up the N8Err table and confirm created_at is filled by default or mapped to the current time. Add PostgreSQL, SMTP, and Pushover credentials in n8n. Expect fewer duplicate alerts, faster triage, and a complete record for audits. This fits staging, QA, and production stacks that share a central error handler.