Skip to content
mentoor

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

  1. Capture the know-how and find the gaps

    Skill: ops-sop

    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.

  2. Rewrite each step as one action with a rule

    Skill: ops-sop

    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.

  3. Split the steps into rules and model steps

    Skill: automate-no-code

    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
    StepTypeWhy
    Read email, extract order number and reasonModelMessy text in, fixed fields out
    Look up order in shop adminLookupExact record, no guessing
    Delivered within 30 days?FilterDate maths must be exact
    Amount over $50?FilterExact comparison
    Draft the replyModelLanguage work
  4. Place approvals and escalation rules

    Skill: automate-checkpoints

    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

    1. Draft replies are created automatically and never sent without review.
    2. A refund of $50 or less is issued after Mei approves the draft.
    3. A refund over $50 waits for Tomas.
    4. A message that mentions a lawyer, a chargeback, an injury or a fire goes to Tomas, whatever the amount.
  5. Run a draft-only week with an error path

    Skill: automate-no-code

    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

    1. Run 20 sample emails with known answers and compare every field.
    2. Week 1: drafts only. Mei reads every run in the history.
    3. On a shop-admin outage: retry twice, five minutes apart, then message Mei.
    4. Switch on refunds only when 50 runs in a row match what Mei would have done.
  6. Write the undo plan and the audit log

    Skill: automate-checkpoints

    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