Automation library · E-commerce

Resolve ecommerce order exceptions with Claude and Slack

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

Large

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

The flow

Starts it 2Logic 11Service 11

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

  1. 1Webhook - New Order ExceptionWebhookStarts it
  2. 2Manual Trigger - Test RunManual triggerStarts it
  3. 3Set - ConfigSetLogic
  4. 4Set - Sample Exception PayloadSetLogic
  5. 5HTTP Request - Fetch Order DetailsHttp RequestService
  6. 6HTTP Request - Fetch Customer Profile & HistoryHttp RequestService
  7. 7HTTP Request - Fetch Inventory & Substitute SKUsHttp RequestService
  8. 8Merge - Combine Order ContextMergeLogic
  9. 9JS - Build Decision ContextCodeLogic
  10. 10HTTP Request - Claude: Decide Resolution ActionHttp RequestService
  11. 11JS - Parse & Validate DecisionCodeLogic
  12. 12JS - Log Decision (Pre-Execution)CodeLogic
  13. 13Switch - Route To Action ExecutorSwitchLogic
  14. 14HTTP Request - Execute: Reissue Payment LinkHttp RequestService
  15. 15HTTP Request - Execute: Substitute SKUHttp RequestService
  16. 16HTTP Request - Execute: Reroute CarrierHttp RequestService
  17. 17HTTP Request - Execute: Issue Store CreditHttp RequestService
  18. 18HTTP Request - Execute: Refund OrderHttp RequestService
  19. 19Slack - Escalate To HumanSlackService
  20. 20JS - Merge Execution ResultCodeLogic
  21. 21JS - Log Decision (Post-Execution)CodeLogic
  22. 22IF - Skip Notification For EscalationsIfLogic
  23. 23HTTP Request - Notify Customer Of ResolutionHttp RequestService
  24. 24Set - Case Closed No Customer Notice (Escalated)SetLogic

How it's built

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

Questions

What does it need to run?

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