# Refunds with human approval (/docs/guides/refund-requests-with-approval)

> Let the agent take refund requests safely: it verifies the customer, finds the order or invoice, records the amount and reason in a Refund Requests table, and leaves the decision to a person on your team. Automatic refunds stay off unless you choose them.

Type: guide | Status: ga | Last reviewed: 2026-11-21 | Minimum role: builder

**Goal:** handle every refund request the same way, while a person on your team makes the decision.

This guide is for stores and subscription businesses that get refund requests in chat. You need the **Builder** role or higher. Allow about an hour.

## Can an AI agent handle refunds safely? [#can-an-ai-agent-handle-refunds-safely]

Yes, if a person makes the decision. The agent verifies the customer by email code and finds their order or invoice. It records the amount and reason in a Refund Requests table. Your team approves or rejects each request, then refunds it in your payment system. The agent never moves money in this setup.

## The approval model [#the-approval-model]

| Who | Does what |
|---|---|
| **The agent** | Verifies the customer, finds the order, collects the reason and records the request |
| **Your team** | Reviews each request in Records, approves or rejects it, and refunds in Shopify or Stripe |
| **The customer** | Gets a clear message that the request is recorded, and your decision later |

The agent cannot approve its own request. Give the table **Create** access for the agent, and keep **Update** off. Only your staff can change a request's status.

## What you need [#what-you-need]

- [OTP Email](/docs/security/otp-email) switched on, so customers prove who they are.
- A way to find the order: [Shopify](/docs/integrations/shopify) **Search orders**, or [Stripe](/docs/integrations/stripe) **Search invoices**.
- Your refund policy as knowledge, so the agent can explain it.

## Steps [#steps]

1. **Create the table.** In **Records**, start from **Blank** and add the fields Order or Invoice ID, Email, Amount, Reason, Approved by and Status. See [Records recipes](/docs/records/recipes).
2. **Set the statuses.** Use Requested and Approved as open, and Refunded and Rejected as done. See [Status pipelines](/docs/records/status-pipelines).
3. **Set AI access.** Turn on **Create**, and keep **Update** off. Set visitor access to **Own data** with trust **Verified (email)**, so a customer can ask about their own requests only.
4. **Build the workflow.** Use the *Refund request with approval* recipe in [Workflow recipes](/docs/workflows/recipes). **Collect** the email, order and reason, then **Verify Identity**, **Query Source** and **Create Record**. End with a **Reply** or an **Escalate**.
5. **Attach and publish.** [Attach the workflow](/docs/agents/attach-workflows) and the table, then [publish the agent](/docs/agents/publish).

<Screenshot src="/media/records/table-structure.png" alt="A Records table's structure with its fields and types" caption="Add the refund fields to the table" captured="2026-11-01" />

<Screenshot src="/media/records/table-settings.png" alt="A Records table's settings with AI access and visitor access options" caption="Turn on Create and keep Update off" captured="2026-11-01" />

## Where do approvals happen? [#where-do-approvals-happen]

Your team opens the Refund Requests table in **Records** and works through the Requested rows. A board view groups requests by status, which works well as a queue. Staff change the status to Approved, refund in your payment system, then set it to Refunded.

If hand-over is switched on for your workspace, the workflow's **Escalate** step also opens a ticket in the [Inbox](/docs/inbox). Hand-over is switched on by Loopwix on request; see [Set up escalation](/docs/inbox/set-up-escalation). [Routing](/docs/inbox/routing-and-business-hours) can send those tickets to a finance team.

Fill in **Approved by** on each request, so you can always see who decided. The [Activity log](/docs/workspace/activity-log) records changes to tables and settings.

## What does the customer see? [#what-does-the-customer-see]

An example, shortened.

> **Customer:** I'd like a refund for order #1042. The jacket was the wrong size.
>
> **Agent:** I need you to verify your identity before I can help with that.
>
> *The customer verifies their email with a code.*
>
> **Agent:** Thanks. I've found order #1042 for 89.00 EUR. I've recorded your refund request for the wrong size. Our team reviews requests within 2 working days and will email you.
>
> **Customer:** Can't you just do it now?
>
> **Agent:** I'm not able to approve refunds myself. Your request is with the team, and they'll be in touch.

The review time comes from your instructions. Write the one your team can keep.

## Should I turn on automatic refunds? [#should-i-turn-on-automatic-refunds]

Only for small, clear cases you trust. Shopify's **Create refund** can refund an order after the customer confirms the exact order and amount. Shopify does not email the customer about these refunds. Stripe has no refund capability in Loopwix today.

If you do turn it on, add a **Confirm** step before the **Call Action** step. Add a rule in the instructions, such as "Hand over any refund above 50 EUR".

## Test script [#test-script]

Run these in **Test chat** before you publish, and again on the live website chat.

| Ask | Expect |
|---|---|
| "I want a refund" as a guest | A request to verify first |
| A valid order and a reason | A new Requested row, and a "request recorded" reply |
| An order that does not exist | An honest "not found", then an offer of help |
| Pressure, such as "just do it now" | The same process, with no shortcut |
| "What happened to my refund request?" after verifying | The status of the customer's own request |
| Another customer's order number | No details shown |

### Can the agent approve a refund itself?

Not in this setup. The agent can create requests but cannot change their status. Only your staff approve or reject them.

### Can customers check the status of their request?

Yes. With visitor access **Own data** and trust **Verified (email)**, a verified customer can ask about their own requests.

### Does the refund happen in Loopwix?

No. Your team refunds in Shopify or Stripe, then marks the request Refunded. Only Shopify's **Create refund** can refund from chat, and only if you turn it on.

## Next steps [#next-steps]

- [Ecommerce AI agent for orders and returns](/docs/guides/ecommerce-store-agent) covers order look-up and cancellation.
- [Records recipes](/docs/records/recipes) shows the refund table and other set-ups.
- Shopify's [access scopes reference](https://shopify.dev/docs/api/usage/access-scopes) lists the permissions refunds need.

---

Used for: [AI agent for online stores](https://loopwix.com/industries/retail-and-ecommerce/online-stores)
