Automation library · Alerts and monitoring

Track inventory levels with Gmail and Slack

Started by another system calling it, and works across Gmail and Slack. 25 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large

25 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 4Logic 13Service 8

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

  1. 1Webhook - Inventory MovementWebhookStarts it
  2. 2Error TriggerError triggerStarts it
  3. 3Validate MovementCodeLogic
  4. 4Format ErrorCodeLogic
  5. 5IF - Valid MovementIfLogic
  6. 6Slack - Error AlertSlackService
  7. 7Prepare API BodyCodeLogic
  8. 8Format Validation ErrorCodeLogic
  9. 9API - Record MovementHttp RequestService
  10. 10Respond - Validation ErrorRespond To WebhookStarts it
  11. 11API - Get Current StockHttp RequestService
  12. 12Check Stock LevelsCodeLogic
  13. 13Alert RouterSwitchLogic
  14. 14Format Critical AlertCodeLogic
  15. 15Format Urgent AlertCodeLogic
  16. 16Format Warning AlertCodeLogic
  17. 17No Alert NeededNo OpLogic
  18. 18Slack - Critical AlertSlackService
  19. 19Slack - Urgent AlertSlackService
  20. 20Slack - Warning AlertSlackService
  21. 21Prepare Audit EntryCodeLogic
  22. 22Email - Critical AlertGmailService
  23. 23API - Log Audit TrailHttp RequestService
  24. 24Format Success ResponseCodeLogic
  25. 25Respond - SuccessRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
25, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Gmail 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 25 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 25 steps before you point it at anything that matters.