Automation library · Alerts and monitoring

Monitor data quality with Notion and SQL

Started by a clock, and works across Gmail, Jira, Notion, Postgres and one other. It hands the judgement calls to OpenAI. 17 steps, 3 branches, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

17 stepsMedium: a working afternoon
3Branches: places the flow splits
1Loop or waits
5Services it connects to

The flow

Starts it 1Model 1Logic 8Service 7

The steps in the order they run, from what starts it.

  1. 1Daily triggerSchedule triggerStarts it
  2. 2Get database dataNotionService
  3. 3split batchSplit In BatchesLogic
  4. 4Switch moduleSwitchLogic
  5. 5Product anomaliesPostgresService
  6. 6check ordersPostgresService
  7. 7build summaryCodeLogic
  8. 8AI analysis and recommendationOpen AiModel
  9. 9run metadataSetLogic
  10. 10calculate trendCodeLogic
  11. 11Issue conditionIfLogic
  12. 12Data conditionIfLogic
  13. 13Autofix simulationCodeLogic
  14. 14Data quality run pageNotionService
  15. 15Jira issueJiraService
  16. 16Email reportingGmailService
  17. 17Slack message alertSlackService

How it's built

Starts on
A clock
Steps
17, with 3 branches, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Gmail, Jira, Notion, Postgres, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Jira, Notion, Postgres and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 17 steps before you point it at anything that matters.