Templates / Monitor data quality with Notion rules, SQL checks & AI-powered alerts

Monitor data quality with Notion rules, SQL checks & AI-powered alerts

Ready for 3.0

by Yassin Zehar ✓ · 255 views · created 2025-11-26 · 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 AI workflow has 17 nodes and runs on a schedule (every day at 07:00). Along the way it connects Postgres, Notion, OpenAI and Jira Software and 2 more.

How it runs

Trigger: On a schedule (every day at 07:00).

  1. Get database data (Notion): work with database
  2. split batch (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Switch: routes items into 2 branches
  4. Product anomalies (Postgres): run a query
  5. check orders (Postgres): run a query
  6. build summary (Code): runs custom JavaScript code
  7. AI analysis and recommendation (OpenAI): uses OpenAI
  8. run metadata (Edit Fields (Set)): sets 5 fields: run_date, run_id, env…
  9. calculate trend (Code): runs custom JavaScript code
  10. Issue condition (If): checks a condition and branches into true / false

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

Services it uses

PostgresNotionOpenAIJira SoftwareSlackGmail

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 (12)

From the author

Description This workflow continuously validates data quality using rules stored in Notion, runs anomaly checks against your SQL database, generates AI-powered diagnostics, and alerts your team only when real issues occur. Notion holds all data quality rules…

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