Automation library · Alerts and monitoring

Reconcile Postgres records with HTTP API and Slack

Started by a clock, and works across Postgres and Slack. 20 steps, 2 branches: a working afternoon to understand properly.

Medium

20 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Logic 13Service 6

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

  1. 1Nightly ReconciliationSchedule triggerStarts it
  2. 2Drift RulesSetLogic
  3. 3Read The Database SidePostgresService
  4. 4Read The API SideHttp RequestService
  5. 5Line Them UpCompare DatasetsService
  6. 6Split Out The API RecordsSplit OutLogic
  7. 7Label Rows Missing From The APISetLogic
  8. 8Records That Already AgreeSetLogic
  9. 9Explain Which Fields DifferCodeLogic
  10. 10Label Rows Missing From The DatabaseSetLogic
  11. 11Gather Every DifferenceMergeLogic
  12. 12Only The Records That DriftedFilterLogic
  13. 13Summarise The DriftCodeLogic
  14. 14How Bad Is This Drift?IfLogic
  15. 15Anything Drifted?IfLogic
  16. 16Flag The Record For ReviewPostgresService
  17. 17Hold For The Daily DigestNo OpLogic
  18. 18Post The Drift ReportSlackService
  19. 19Everything MatchedNo OpLogic
  20. 20Escalate The Critical DriftSlackService

How it's built

Starts on
A clock
Steps
20, with 2 branches
Size
Medium: a working afternoon
Connects to
Postgres, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Postgres and Slack accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 20 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 20 steps before you point it at anything that matters.