Automation library · E-commerce

Triage warranty claims and issue RMAs with OpenAI and Shopify

Started by someone submitting a form, and works across Airtable, Gmail, Shopify and Slack. It hands the judgement calls to OpenAI. 24 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 1Logic 10Service 12

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

  1. 1Warranty claim formForm triggerStarts it
  2. 2Workflow settingsSetLogic
  3. 3Normalize claim & assign IDSetLogic
  4. 4AI triage with OpenAIOpen AiModel
  5. 5Parse triage safelyCodeLogic
  6. 6Find order in ShopifyShopifyService
  7. 7Match order numberFilterLogic
  8. 8Order found?IfLogic
  9. 9Evaluate warranty & eligibilitySetLogic
  10. 10Email customer: order not foundGmailService
  11. 11Auto-approve claim?IfLogic
  12. 12Assign RMA numberSetLogic
  13. 13Create RMA record (pending review)AirtableService
  14. 14Create RMA record (auto-approved)AirtableService
  15. 15Ask approvers to decideSlackService
  16. 16Email customer: claim approvedGmailService
  17. 17Fetch claim recordAirtableService
  18. 18Log approval in ops channelSlackService
  19. 19Approved by reviewer?IfLogic
  20. 20Assign RMA number (reviewed)SetLogic
  21. 21Update record: rejectedAirtableService
  22. 22Update record: approvedAirtableService
  23. 23Email customer: claim declinedGmailService
  24. 24Email customer: decision & RMAGmailService

How it's built

Starts on
Someone submitting a form
Steps
24, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Airtable, Gmail, Shopify, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Airtable, Gmail, Shopify and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

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.