From SOP to automated workflow with approvals
For everyone
Turn a refund SOP into a tested no-code workflow: write clear steps, split rules from model steps, add approvals, escalation, undo and audit.
An SOP becomes a safe automated workflow when you write the procedure so that every step is one action with a rule, hand the language work to a model and the exact work to fixed rules, and keep a named person in charge of every action that cannot be taken back. The order matters. A workflow built on a vague procedure automates the vagueness.
The situation
Willow & Finch is an online homeware shop with nine staff. Refund requests arrive by email at returns@willowfinch.example, about 120 a day in the busy season. Mei handles most of them. She knows the rules by heart: refunds are possible within 30 days of delivery, damaged goods get a refund without a return, and anything over $50 goes to Tomas, the shop owner. None of this is written down. When Mei is on leave, replies are slow and inconsistent. The shop wants an automated workflow in a no-code tool such as Zapier, Make, n8n or Power Automate, with a model such as Claude, ChatGPT or Gemini doing the reading and drafting.
This case uses three skills: SOPs with AI, no-code workflows, and human checkpoints.
Stage 1: write the procedure first
Do not open the workflow builder yet. Ask a model to interview Mei and turn the transcript into draft steps. The draft will sound complete and will skip decisions, because Mei says "I check it looks fine" and never says what she looks at. Read the draft for gaps: what is the refund window, who decides over $50, what happens with a damaged item, what if the order number is missing?
Then rewrite each step so it has one action, a named input, a decision rule and a check that it worked. "Handle the refund appropriately" becomes "Look up the order number in the shop admin. If delivered more than 30 days ago, send the template for late requests and stop."
Stage 2: test the procedure on people
Give the SOP to a newcomer and to an AI agent, with ten real past requests. Record where each one got stuck. Fix the procedure, not the tester. Put an owner and a review date on it.
Stage 3: split rules from model steps
Go through the SOP and mark each step. Reading an email, pulling out the order number and the reason, and drafting a polite reply are language work, so a model step fits. Checking the 30-day window, comparing the amount with $50, and looking up the order are exact work, so they get a filter or a lookup. A model can get a date sum wrong, and a rule never does. The prompt inside each model step names its fields, says what to return when one is missing, and asks for a fixed JSON shape.
Stage 4: place the checkpoints
Mark each action by its cost and whether it can be undone. A draft reply can be thrown away. A refund cannot be pulled back from a customer's card in the same way. So the workflow drafts replies and queues them, and Tomas approves any refund over $50 and any case that mentions a lawyer, a chargeback or a safety problem. Escalation rules are written as fixed rules and tested on ten sample messages. The review queue shows the customer's email and the order record beside the draft, so the reviewer checks facts and does not just click approve.
Stage 5: a draft-only first week
Test with sample data, then run live with every action set to draft. Read the run history each day. Add an error path: retry a short outage twice, then alert Mei by name, and never skip a failed step silently.
Stage 6: undo and audit
Write down how each action is reversed and in what time. Log every run: the input, the prompt version, the model, the decision, who approved it and what changed. A month later, someone must be able to rebuild any single refund from the log.
What goes wrong
- The SOP says "use judgement", so the model fills the gap and guesses.
- The model reads the amount from the customer's email instead of the order record.
- A reviewer approves 300 drafts in a row without opening one, and the checkpoint becomes decoration.
- The workflow fails at night and nobody is told.
- The SOP changes in March but the prompt still carries the old 14-day window.
Steps
Capture the know-how and find the gaps
Have a model interview Mei and draft steps from the transcript. Then list every decision the draft skipped: the refund window, the amount that needs the owner, what to do for damaged goods and what to do when the order number is missing.
Draft steps from Mei's interview Draft
1. Read the request.
2. Check that it looks fine.
3. Refund the customer.
4. Reply.Still missing
Refund window, amount limit, damaged-goods rule, missing order number, who approves.
Rewrite each step as one action with a rule
Give every step one action, a named input, a decision rule and a check. Remove words such as appropriately and as needed. Put an owner and a review date on the SOP, then dry-run it with a newcomer and with an AI agent on ten past requests.
Rewritten SOP, steps 1 to 4 Steps
1. Copy the order number from the email into the shop admin search. Check: one order opens.
2. Read the delivery date. If it was more than 30 days ago, send the late-request template and stop.
3. If the item is marked damaged in the request, tick Damaged on the order. Check: the box is ticked.
4. If the refund is over $50, send it to Tomas for approval and stop.Owner
Mei Tanaka. Review: 1 March 2027.
Split the steps into rules and model steps
Mark each SOP step as a fixed rule or a model step. Language work goes to a model. Dates, amounts and lookups go to filters and lookups. Write the model prompt with named fields, a fixed JSON shape and a value for missing input.
AI output Workflow map Step Type Why Read email, extract order number and reason Model Messy text in, fixed fields out Look up order in shop admin Lookup Exact record, no guessing Delivered within 30 days? Filter Date maths must be exact Amount over $50? Filter Exact comparison Draft the reply Model Language work Place approvals and escalation rules
Rate each action by cost and reversibility. Drafts are free to discard, so they run on their own. Refunds over $50 and sensitive messages wait for a named person. Test the escalation rules on ten sample emails and show the source beside the draft in the review queue.
Approval and escalation rules Returns workflow
- Draft replies are created automatically and never sent without review.
- A refund of $50 or less is issued after Mei approves the draft.
- A refund over $50 waits for Tomas.
- A message that mentions a lawyer, a chargeback, an injury or a fire goes to Tomas, whatever the amount.
Run a draft-only week with an error path
Test with sample data first. Then run live with every action set to draft and read the run history each morning. Add an error path that retries a short outage twice and then alerts Mei by name.
Test plan Goal: Prove the workflow on real traffic without any customer-facing action
- Run 20 sample emails with known answers and compare every field.
- Week 1: drafts only. Mei reads every run in the history.
- On a shop-admin outage: retry twice, five minutes apart, then message Mei.
- Switch on refunds only when 50 runs in a row match what Mei would have done.
Write the undo plan and the audit log
For each write action, name how it is reversed and in what time. Log every run with enough fields to rebuild one refund a month later.
One run-log entry { "run_id": "r-20271", "order": "WF-10482", "prompt_version": "returns-extract-v3", "model": "extraction model, pinned", "decision": "refund 42.00 USD, drafted", "approved_by": "mei", "approved_at": "2027-01-12T09:14:00Z"}
Skills this scenario uses
Where to study
- Agent Skills overview (Claude docs) (opens in a new tab)DocsFree
Shows how a written procedure becomes instructions an agent can follow, with its own files and tools.
- Technical Writing courses (Google) (opens in a new tab)CourseFree
Short free lessons on writing clear, single-action steps.
- Zapier Help Center (opens in a new tab)DocsFree
Explains triggers, actions, filters and task use in one of the common no-code tools.
- Make Help Center: error handling (opens in a new tab)DocsFree
Shows retries, error routes and failure notices in a workflow.
- Human-in-the-loop for tools (n8n Docs) (opens in a new tab)DocsFree
Shows an approval step placed before an AI agent uses a tool.
- Human-in-the-loop in AI workflows: meaning and patterns (Zapier) (opens in a new tab)ArticleFree
Describes where to put a person in an automated flow and why.
- People + AI Guidebook (Google PAIR) (opens in a new tab)ArticleFree
Design guidance on trust, errors and keeping people in control of AI features.