← Back to work01 / Interactive reference build / GenAI agents

Before a refund, check the order and the rules.

See how a customer support assistant could handle a late delivery, a return, or a damaged item. A person reviews any decision to refund money.

Explore the workflow Based on public business workflows · Sample records · No live store actions
The business problem

A simple question can need several checks.

Before answering, check the order, shipping updates, and the store’s return rules. If the customer wants money back, a person should review the decision.

01

Find the order

Check the recorded status before answering a delivery question.

02

Read the policy

Check when the item arrived and how long the store allows returns.

03

Review the action

A person checks the refund request before any money moves.

This is an independent reference build. It is not a Klarna or Shopify client project.

02 / Try the workflow

One request, several decisions.

Pick a sample customer message. Change the days since delivery or whether damage photos are attached. Compare one assistant with a team of specialists.

This browser demo uses made-up orders. It does not call an AI model or a store and cannot send money.

Customer messageDEMO-1048
My lamp has been in transit for a week and tracking has not changed in four days. Can you tell me what is happening?
Sample order: Desk lampOrder value: €68.00
Proposed next step
Request typeDelivery status
Human reviewNo payment action

Request a carrier follow-up

Tracking has been quiet beyond the sample threshold. Route a follow-up and draft a status update without inventing an ETA.

Workflow trace

  1. 01
    Route the request

    Identify the customer’s intent and select the next capability.

  2. 02
    Look up the order

    Read status, item, and delivery age from the sample order record.

  3. 03
    Check facts and rules

    One assistant applies the recorded order facts and explicit business rules.

  4. 04
    Draft the next step

    Compose a recommendation from verified facts, with no external write.

03 / From simple to advanced

Add complexity only when the work needs it.

01 / Foundation

One assistant, read only tools

Classify the request, retrieve the order, and answer from recorded facts. This is enough for many status questions.

02 / Specialist work

Separate order and policy reasoning

The manager keeps the conversation while focused specialists return bounded findings. Compare this path in the replay.

03 / Controlled action

Put approval before the write

A refund or policy exception becomes a review packet with evidence, rule outcome, and a clear proposed action.

Useful agents find the answer. Dependable systems know when to stop. 

04 / Engineering view

The assistant prepares the answer. A person approves the refund.

The demo runs on fixed rules in your browser. A live system could use AI to read messages and draft replies. Store rules and payment approval would stay under backend control.

1. Intake

Normalize the request and authenticate the customer before any order lookup.

2. Specialists

Order and policy specialists return structured findings with source references.

3. Manager

Combine findings, check contradictions, and draft a customer-facing response.

4. Approval

A person approves the refund. A server check prevents the same payment from running twice.

What this example does today

This is an interactive frontend example with made-up orders and store rules. It does not use AI, read a real store, message customers, or issue refunds. A real service would need a secure backend, clear permissions, decision logs, and tests.

05 / Questions before production

The decisions behind the demo.

Why use more than one agent?

Only when order lookup, policy interpretation, and response drafting benefit from separate tools or instructions. The single assistant remains the simpler baseline.

Can an agent approve a refund?

This design requires a human decision before any refund. The browser replay has no payment capability.

Where does the return rule come from?

The 30 day rule belongs to the fictional sample merchant. A real integration would read the current policy for the specific store and market.

What if the order data is missing?

The system should ask for a verified order reference or hand the case to a person. It must not guess from the customer message.

How would this become a live agent?

Add authenticated order and policy tools, model-backed specialist workers, approval storage, and an audited action service on the backend.

How would you evaluate it?

Test routing, factual grounding, policy edge cases, unsafe refund attempts, handoff quality, and human review time on real approved cases.

06 / Public references

Grounded in real workflows.

These sources establish the business task and the agent pattern. The sample store, orders, and rules above are independent illustrations.

Want to discuss a workflow like this?

I work on GenAI and backend systems that make tools, evidence, and human control fit together.

Get in touch ↗
Search

Find what matters.

Search my work, experience, and published writing.

Start here