Refund eligibility check

Nobody should let an agent move money. Everybody can let an agent do the reading: pull the order, apply the policy in order, and hand a person a decision with the clause attached. That removes most of the work and none of the accountability.

The job on one screen

Runs whenA refund request arrives, or a support agent opens the refund panel.
ReadsOrder date, amount, product type, prior refunds on the account, and the written policy.
DecidesEligible, not eligible, or needs a human, plus the clause that produced the answer.
ProducesA recommendation with a citation, ready for one click.
Stops whenA clause matches, or the amount is over the limit where a person must decide.
Tools it needsOrders API (read only), policy document, account history.
Autonomy to start atApprove. It does the work and stops before the irreversible step.

Optional: load a real model

Run it

The policy, in the order it is applied

First match wins, and the trace names the clause. If you cannot write your policy as a list like this, an agent is not your first problem.

Clause, in orderOutcomeReason given
Amount over 500escalateAbove the automatic limit, a named approver signs it off. The agent still gathers everything first.
Three or more prior refundsescalateRepeat refunds are an abuse signal, and abuse decisions are not an agent's call.
Within 14 days and usage under 20%approveStandard cooling off. Clean case, full refund, no argument.
Within 14 days but heavy usageescalateThe policy is silent on heavy use inside the window, and silence means a person decides.
Between 15 and 30 daysescalateDiscretionary window. The agent prepares the case and a human chooses.
Nothing matchedrejectOutside the refund window. The reply explains the window and offers the credit alternative.

Where this one goes wrong

Policy written as prose

If your policy cannot be listed as ordered clauses, the agent will invent an ordering. Write the list first, then automate it.

The silent exception

Goodwill refunds that everyone grants but nobody wrote down. Those must be an escalation, not a rule the agent guesses at.

Stale policy copy

The agent applies version 3 while support applies version 4. Point the agent at the same document humans read, not a copy.

How you would know it is working

MeasureWhy that one
Agreement rate with the approverHow often a human accepts the recommendation unchanged. This is the number that earns more autonomy.
Time to decisionThe real saving. Gathering the facts is most of the work.
Escalation mixWhich clause escalates most. That clause is the one your policy needs rewritten.

Earning more rope

AssistShow the recommendation and clause in the support tool, human does everything.
ApprovePre-stage the refund with the amount filled in, a person clicks approve. Money still moves on a human action.
AutoSmall amounts only, with a hard cap, a daily total limit, and every decision logged. Many teams correctly never go here.
Never automate the payment. Automate the reading, the policy lookup, and the paperwork. The click that moves money stays with a person who can be asked why.

Related: Invoice matching · Guardrails · Ticket triage · all agent jobs · Agent Lab home

Free from AI School - no signup, everything runs in your browser.