Templates / Monitor SQL data quality and send email reports with Google Sheets logging

Monitor SQL data quality and send email reports with Google Sheets logging

Ready for 3.0

by Bhautik Trambadia ✓ · 103 views · created 2026-03-28 · Document Extraction, AI Summarization

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-10-19.

What this workflow does

This workflow has 10 nodes and runs on a schedule (every 24 hours). Along the way it connects Postgres, Google Sheets and Gmail.

How it runs

Trigger: On a schedule (every 24 hours).

  1. Config (Edit Fields (Set)): sets 11 fields: tableName, nullCheckCol, duplicateCheckCol…
  2. Null Check (Postgres): run a query
  3. Duplicate Check (Postgres): run a query
  4. Row Count (Postgres): run a query
  5. Outlier Check (Postgres): run a query
  6. Merge: merges the data from its input branches
  7. Evaluate & Format (Code): runs custom JavaScript code
  8. Log to Google Sheets (Google Sheets): append
  9. Send a message (Gmail): uses Gmail

Services it uses

PostgresGoogle SheetsGmail

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.

Nodes used (7)

From the author

This workflow automatically monitors and reports data quality for any SQL table using configurable checks and thresholds. It evaluates key metrics—including null values, duplicate records, row count anomalies, and outliers—and assigns a clear PASS, WARN, or…

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