Automation library · Alerts and monitoring

Monitor workflow heartbeats with Google Sheets and Slack

Started by another system calling it, and works across Google Sheets and Slack. 22 steps, 4 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

22 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 5Logic 11Service 6

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

  1. 1Receive heartbeat pingWebhookStarts it
  2. 2Check every 15 minutesSchedule triggerStarts it
  3. 3Set receiver configSetLogic
  4. 4Set checker configSetLogic
  5. 5Validate shared secretIfLogic
  6. 6Get all monitored jobsGoogle SheetsService
  7. 7Look up job in registryGoogle SheetsService
  8. 8Return 401 unauthorizedRespond To WebhookStarts it
  9. 9Keep active jobs onlyFilterLogic
  10. 10Is job registered?IfLogic
  11. 11Flag jobs past their deadlineCodeLogic
  12. 12Record heartbeatGoogle SheetsService
  13. 13Return 404 unknown jobRespond To WebhookStarts it
  14. 14Any jobs overdue?IfLogic
  15. 15Was job previously alerting?IfLogic
  16. 16Loop over overdue jobsSplit In BatchesLogic
  17. 17Nothing overdueNo OpLogic
  18. 18Send recovery noticeSlackService
  19. 19Return 200 OKRespond To WebhookStarts it
  20. 20All alerts sentNo OpLogic
  21. 21Post missed-run alertSlackService
  22. 22Mark job as alertedGoogle SheetsService

How it's built

Starts on
Another system calling it
Steps
22, with 4 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

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 22 steps before you point it at anything that matters.