Retail AI agent · Returns and refunds
Returns & Refund AI Agent
Decide return eligibility against the policy version in force, refund to the original tender inside the deadline the payment type sets, and route exceptions to the returns adjudicator rather than deciding them.
- Typical delivery
- 4–6 weeks
- Deployment
- Your stack
- Adjudicator
- Original tender
- After launch
- Agent Care
What this agent does
Eligibility first, disbursement second
In
- 01
Take in the return request, the order, its tender split and the live policy version from supported returns.
- 02
Resolve which regime governs.
Reason
- 03
Check eligibility under that regime, and stamp the policy version it was decided against.
- 04
Read the refund deadline the payment type sets and the refund form the rule permits.
- 05
Bind the decision to the order facts it rested on and to the clock it started.
Decide
- 06
Flag warranty claims, regulated goods, filed disputes and anything above the ceiling.
- 07
Hold those for the Returns & Claims Adjudicator instead of deciding them.
Out
- 08
Keep the decision, its evidence, the adjudicator's outcome and the disbursement together.
- 09
Execute write actions only inside the approval boundaries agreed during implementation.
Product statement
The agent decides eligibility against the published policy; the adjudicator holds the exceptions and the money, and a rule-mandated refund is released on the merchant's compliance template.
Example workflow
One return, request to refund
- 1Return request receivedReturns portal, helpdesk, marketplace or carrier drop-off
- 2Record assembledOrder lines, shipment state, tender split, prior refunds and the live policy version
- 3Eligibility decidedThe governing regime, the outcome, the clock start and confidence
- 4Policy checks runPolicy-version checks, tender checks, ceiling and hold checks and confidence threshold
No human action required
Stages 1 to 4 run unaided and no money has moved — the adjudicator's lane stays empty until the confidence gate.
Follows the pre-authorised path.
Goes to the adjudicator first.
Returns adjudicator
The decision is held with its regime, its evidence and the confidence.
Approve · Amend · Refer to compliance
Approved — refund released
- 6Returns and payment systems updatedOnly where write access and approval policy allow it
- 7Result evaluatedRefund correctness against the ledger, deadline adherence, overturns and reopened returns
Corrections
Every adjudicator overturn is counted in the evaluation.
What should not run autonomously
Human approval stays in control
Outside the boundary — human approval required
8 items
- Denying a refund the Mail Order Rule requires.
- Deciding a warranty claim or the remedy it earns.
- Refunding to anything other than the original tender.
- Refunds above the ceiling, or to a recently changed payee.
Automation boundary
Agent acts unaided
- ✓Check eligibility against the current published policy and cite.
- ✓Generate a prepaid label for a non-regulated, in-window.
- ✓Report where an issued refund sits in the payment.
- ✓Release a pre-authorised refund at the original tender and amount.
Any write happens inside the boundaries agreed at implementation, never ahead of the adjudicator's approval.
- Touching an order carrying a filed dispute or a regulator contact.
- Recovering or clawing back a refund that has already been paid.
- Labels for hazmat or regulated goods, and recalled-item returns.
- Netting a restocking, inspection or processing deduction.
Example output
One eligibility decision, annotated
Every decision carries the policy version and the order facts it was made on.
Eligibility output · single return
Illustrative example- Return
- Never-shipped line
- Decision
- Order cancelled for non-shipment, so a refund is owed regardless of the return window
- Refund form
- Original tender
- Governing regime
- Mail Order Rule
- Confidence
- 89%
- Clock start
- Cancellation, timestamped
As received
Taken from the order, the tender record and the published policy — nothing on this side is inferred.
Evidence used
- Shipment state per line
- Tender split on the order
- Published policy version
Why this outcome
The goods never shipped, so the rule's clock governs and a person still decides.
What the score decides
Below the configured threshold the decision waits on the adjudicator.
Action
ApproveAmendRefer to complianceValue
Where AI adds value
The same four claims, placed at the point in the workflow where each one applies.
Where the value lands
Value 01 – 04
Every return
From the order and its tender
Decide against the published policy
Read the order, the tender split and the policy version that was in force when it was placed.
Close the return, not the ticket
Straightforward in-window returns are decided and labelled without a queue.
Put the hard ones in front of a person
Rule-mandated refunds, warranty claims and disputed orders are held, so the adjudicator sees those and little else.
Build an evidence trail
Each decision keeps the policy it applied and the evidence behind it.
Integrations
Typical integrations
Five system groups connect to the same agent. Which of them are in scope is decided in discovery.
Returns management
- Loop Returns
- Happy Returns
Payments and refund rails
- Stripe
- Adyen
BNPL and alternative tender
- Klarna
- Affirm
Agent
Returns & refund handling
- Reads the order
- Decides eligibility
- Holds exceptions
Disputes and disposition
- Signifyd
- Riskified
- Optoro
- Narvar Returns
Observability & evaluation
- OpenTelemetry
- Langfuse
- Supported monitoring/evaluation sources
Integration availability depends on the client's existing systems and API access.
Agent controls
Six layers between the model and the refund
The layers nest. What each one misses is named in the map below it.
L6 · Outermost — last line of defence
Inward → L1 · closest to the model
- L1 – L2
- Test whether a decision may stand
- L3
- Puts the release in the adjudicator's hands
- L4 – L5
- Show what policy applied and when it changed
- L6
- Reverts to proposal-only when signals degrade
How Nestack evaluates it
Evaluate the whole return — not only the amount that was paid.
Coverage runs the whole depth of the workflow, and every layer is cut by slice.
Surface — the outcome the customer is given
- E1Final-output evaluationWas the right regime applied, at the right amount, to the right tender?
- E2Step-level evaluationDid the agent use the order, the tender split and the policy version in force?
- E3Tool evaluationDid it read and write the correct return and the correct payment record?
- E4Confidence calibrationDo low-confidence decisions actually attract more overturns?
- E5Slice evaluationHow does performance change across specific return reasons?
- E6Business outcomeHow many refunds were reissued, reversed or paid outside their deadline?
Floor — what the customer actually experiences
Failure modes
Where each failure originates in the agent
Seven modes, placed at the stage each originates.
Agent lifecycle
Direction of processing →
01 · Retrieval
1 mode
- RT-03
Cached order total
A total predating a partial cancellation is refunded in full.
Stage gathers
Order lines, tender records, with the source each came from
02 · Reasoning
2 modes
- RT-04
Wrong regime applied
A return window is applied to an order that was never shipped.
- RT-06
Warranty denied as a return
A defect claim is closed against the policy window instead.
Stage proposes
The regime, the outcome and confidence
03 · Tool / write
2 modes
- RT-02
Duplicate refund
A refund call times out and is retried with no idempotency key.
- RT-05
Ledger and provider diverge
The order is marked refunded after a call that actually failed.
Stage writes
Only where write access and approval policy allow it
04 · Output
1 mode
- RT-01
Issuer timeline promised
The customer is told when their bank will post the credit.
Stage returns
The decision and the amount the customer receives
05 · Change / Version
1 mode
- RT-07
Superseded policy cited
A policy update reaches the storefront but not the agent's index.
Stage tracks
Model, prompt, policy versions and ceiling config
- Sev-1 · a held act performed by the agent
- Sev-2 · a wrong refund reaches the customer
- Sev-3 · source degrades
Affected slices
The average return hides the ones that hurt
Read the refund-defect rate as a lift against the all-return baseline and the pattern shows: a few cohorts absorb most of the wrong amounts Nestack reports it by slice rather than in aggregate..
Slice performance — reported separately, not only in aggregate
Illustrative example| Slice | Failure rate | Lift | Lift vs. threshold | Status |
|---|---|---|---|---|
| Never shipped, split tender or BNPL | 8.0% | 3.5× | Review | |
| Warranty defects, window closed | 6.4% | 2.8× | Review | |
| Subscription and auto-renewal | 3.2% | 1.4× | Watch | |
| In window, original tender | 1.6% | 0.7× | Normal |
Bar: refund-defect lift vs. the all-return baseline · scale 0–4.0× · tick marks the 2.0× review threshold
2 of 4 slices over threshold
Evidence-linked improvement
The suite is longer at the end of it
A cycle is done when the failure has become a test the next release has to survive.
Improvement cycle · five stages
Switchback — the path turns at Improve and returns at Learn
- 01
Detect
Refund defects concentrate in one return reason.
- 02
Diagnose
The adjudicator works back through the returns and the policy versions behind them.
- 03
Improve
Version-stamp the change and attach the records that exposed it.
- 04
Verify
The affected cases run again, and a fail stops the release.
- 05
Learn
It becomes a standing test, and the returns policy changes with it.
Learn → Detect
The return edge. Whatever is detected next is measured against a longer suite.
Typical build scope
Twelve workstreams across six weeks
The build scope read against the delivery timeline. Week structure follows the six-week plan — discovery, sources, eligibility workflow, evaluation, integration, then production validation and handover.
Workstream
Week 1Week 2Week 3Week 4Week 5Week 6
- 01Returns workflow discovery and boundary definition.Week 1
- 02Returns and policy-source assessment.Week 1, Week 2
- 03Policy-version, regime and ceiling mapping and rule mapping.Week 1, Week 2
- 04Order, tender and returns ingestion.Week 2
- 05Eligibility logic and evidence binding.Week 2, Week 3
- 06Confidence scoring and adjudicator routing.Week 3
- 07Adjudicator review workflow.Week 3, Week 4
- 08Returns-platform and payment integration.Week 5
- 09Eligibility regression cases.Week 4, Week 5
- 10Guardrails and refund controls.Week 4
- 11Decision-trail instrumentation.Week 5, Week 6
- 12Deployment, documentation and Agent Care handover.Week 6
12 workstreams · 6 weeks · bar shows the weeks a workstream is active — several run in parallel
Final scope and sequence confirmed in discovery
Engagement tiers
What each tier includes
Rows are the capabilities named in each tier's scope. Higher tiers include everything below them.
| Capability✓ in scope · — not at this tier | PilotOne policy, one market | ProductionProduction return volume | AdvancedMultiple markets / tenders |
|---|---|---|---|
| Introduced at Pilot | |||
| Eligibility against your policy | ✓ | ✓ | ✓ |
| Adjudicator approval | ✓ | ✓ | ✓ |
| Eligibility baseline | ✓ | ✓ | ✓ |
| Introduced at Production | |||
| Reporting by return reason | — | ✓ | ✓ |
| Adjudication workflow in your systems | — | ✓ | ✓ |
| Approved refund write-back | — | ✓ | ✓ |
| Returns-platform integration | — | ✓ | ✓ |
| Introduced at Advanced | |||
| Multi-market policy sets | — | — | ✓ |
| Multi-stage refund approvals | — | — | ✓ |
| High return volume | — | — | ✓ |
| Enterprise refund controls | — | — | ✓ |
| Build price | From $5,000 | From $8,000 | Custom quote |
- Final build price
- Confirmed after discovery based on integrations, workflow complexity, transaction volume, approval controls and deployment requirements.
- Separate from build
- Build pricing is separate from recurring Agent Care, which covers managed monitoring, evaluations, incidents and verified improvements after launch.
What we need from you
What you bring, and what we build with it
Each input maps to a piece of build scope and a week in the delivery timeline.
You bring
We build with it
01Your published returns policy and its versions
→Policy-version, regime and clock mapping
Week 102Representative closed returns
→Eligibility baseline, evidence binding and deadline rules
Week 203Your refund ceilings and tender rules
→Refund-ceiling mapping and automation-boundary definition
Week 104Access to relevant APIs, feeds or exports
→Returns, commerce and payment assessment, then integration setup
Week 205Returns that should not have been approved
→Eligibility cases and failure-mode testing
Week 406What must clear before a refund is issued
→Threshold logic, refund routing and approval controls
Week 307A named adjudicator to approve refunds
→Adjudicator review workflow, then pilot and production validation
Weeks 5–6
Nothing else is required
Deployment, documentation and Agent Care handover are ours.
Delivery timeline
Four phases across six weeks
Phases are drawn over the weeks they actually occupy, which is why week 5 doubles up rather than padding.
Phase
W1
W2
W3
W4
W5
W6
- DiscoveryW1
- BuildW2 – W3
- EvaluateW4 – W5
- Pilot & LaunchW5 – W6
Week focus
W1Returns workflow discovery, policy mapping and the automation boundary
W2Policy and payment sources in place, then a baseline
W3Eligibility logic, confidence scoring and refund controls
W4Eligibility cases and refund guardrails
W5Payment integration, pilot returns and targeted corrections
W6One returns cycle run under the returns manager, then handover
- Reading the band
- Bars are drawn from the workstream list, not rounded to fit. Week 5 genuinely carries two phases.
- At the end of W6
- The last checks clear on real returns and monitoring moves to Agent Care.
- Duration
- Six-week plan shown · typical delivery 4–6 weeks depending on scope confirmed in discovery.
Next step · Retail AI agent
Build a returns agent around the deadlines you already owe.
Show us your returns policy, your tender mix and who signs off on money. Refund timing and refund form are set by the rule and the payment type, not by preference, so we map what the agent may decide and what your adjudicator keeps.
- Typical delivery
- 4–6 weeks
- Deployment
- Your returns stack
- Adjudicator approval
- Original tender
- After launch
- Agent Care available
Nestack Agents · Returns and refunds
AGT-RT-02 · Agent Care available after launch
