Automation library · Money admin

Process e-commerce orders with Gmail and Slack

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

Large

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

The flow

Starts it 6Logic 11Service 9

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

  1. 1Webhook - New OrderWebhookStarts it
  2. 2Error TriggerError triggerStarts it
  3. 3Validate OrderCodeLogic
  4. 4Format ErrorCodeLogic
  5. 5IF - Valid OrderIfLogic
  6. 6Slack - Error AlertSlackService
  7. 7API - Verify PaymentHttp RequestService
  8. 8Format Validation ErrorCodeLogic
  9. 9IF - Payment OKIfLogic
  10. 10Respond - Validation ErrorRespond To WebhookStarts it
  11. 11API - Check StockHttp RequestService
  12. 12Format Payment FailedCodeLogic
  13. 13IF - In StockIfLogic
  14. 14Respond - Payment FailedRespond To WebhookStarts it
  15. 15API - Reserve InventoryHttp RequestService
  16. 16Format Out of StockCodeLogic
  17. 17API - Create OrderHttp RequestService
  18. 18Respond - Out of StockRespond To WebhookStarts it
  19. 19API - Generate ShippingHttp RequestService
  20. 20Format EmailCodeLogic
  21. 21Send Confirmation EmailGmailService
  22. 22Slack - Notify TeamSlackService
  23. 23Prepare Audit EntryCodeLogic
  24. 24API - Log AuditHttp RequestService
  25. 25Format SuccessCodeLogic
  26. 26Respond - SuccessRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
26, with 3 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 26 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 26 steps before you point it at anything that matters.