Action types

An AI refund approval workflow your agent runs itself

Write the refund rules once. The small in-policy ones clear in milliseconds; the big, repeat or out-of-window ones wait for a named person, and every refund.create lands on a sealed record you can read back.

refund.createrefund.approvepayout.sendrequest_clearance
under → clears over → held refund.create your threshold

The problem

Most teams treat agent refunds as a switch: on, and it can pay out anything; off, and customers go back in the ticket queue for a £7 reship. Neither is what you want. The damage rarely comes from the obvious cases. It's the refund that's larger than the order was paid, the second refund on a line that was already credited, the goodwill gesture to someone on their fourth "never arrived" this month. A cap won't catch those. A prompt instruction won't either, not reliably.

What you're actually after is an AI refund approval workflow: a rule that reads the refund before it happens and decides. The £7 reship clears on its own. The ones that carry real money or smell off get parked for a human first. That logic should sit somewhere you can open and edit, not be wedged into a system prompt and left to the model's mood.

How ClearedBy handles it

  1. 01

    The agent asks first

    Before it issues anything, your agent calls request_clearance with the refund.create it intends to run: amount, order, customer, reason. The call waits for a verdict, so the agent can't pay out ahead of the answer.

  2. 02

    Your policy sorts the easy from the consequential

    In-policy refunds under your threshold clear straight away. Trip a rule and it holds instead: an amount above the order total, a customer past their refund count for the month, a return outside the window, a refund this agent wouldn't normally make.

  3. 03

    A person handles the few that hold

    Held refunds drop into a fast keyboard queue, or Slack, or a phone. The reviewer clears, rejects or sends it back with a note, and only after a clear does the agent get a short-lived credential to run refund.create.

  4. 04

    It's sealed, then the rules tighten themselves

    Cleared or rejected, auto or human, every refund is hash-linked into a tamper-evident record bound to whoever signed. Once a rule has waved through enough refunds cleanly, ClearedBy suggests loosening it, so the share landing on a person keeps falling.

What the gate sees
refund.create · £312 · order SO-9120 · customer's 4th refund in 30 days · support-bot → held by policy: repeat-refunder rule · routed to S. Chen

FAQ

What can the refund workflow actually branch on?

Amount, action type, and whatever you put in the request: order value, refunds this customer has had recently, days since delivery, reason code, which agent is asking. You combine those into clear and hold rules, so 'under £50, first refund this month' clears while 'over the order total' or 'fifth refund in 30 days' holds.

Why not just give the agent a daily refund budget?

A budget is a single number and it blocks blindly once hit, including the legitimate refunds. This workflow holds on the actual risk signals a budget can't see, like double refunds and out-of-window returns, and it routes them to a person rather than silently stopping them.

Can I run the workflow without holding any refunds at first?

Yes. Start in shadow mode, no card needed. The gate logs which refunds it would have held against your rules so you can tune thresholds on your real traffic before anything is ever paused.

Could the agent skip the gate and refund anyway?

No. The credential to run refund.create is only issued after a verdict and it's short-lived, so there's no route that pays out an unreviewed refund while you're not watching.

Does this slow refunds down for customers?

Refunds inside your policy clear in milliseconds with nobody in the loop, which is most of them. Only the consequential few wait, and a reviewer can clear those from Slack or their phone in seconds.

Related use cases

Let your agents run. Inside the rules you set.

Write the refund rules once. The small in-policy ones clear in milliseconds; the big, repeat or out-of-window ones wait for a named person, and every refund.create lands on a sealed record you can read back.