AIAgentIndex
← All use cases
Support

Refund & order-status agent

Looks up orders in Shopify, answers 'where is my order', and processes refunds under a policy threshold automatically.

Who it's for and the problem it solves

For small e-commerce teams whose support inbox is mostly 'where is my order?' and simple refund requests. Each one means opening Shopify, finding the order, copying the tracking link and replying, which takes time away from the questions that actually need a person. This agent handles those lookups and small, policy-compliant refunds, and passes everything else to a human.

SupportE-commerce

Tools

How to set it up

  1. 1Connect Shopify with a custom app limited to the scopes you need: read orders and fulfillments, plus refunds only if you plan to automate them. Use Stripe directly only if payments aren't processed through Shopify.
  2. 2Write your refund policy as explicit rules: eligible reasons, time window, maximum automatic amount, one automatic refund per customer per period, and items that are never auto-refunded.
  3. 3Verify identity before sharing order details. Require the order number and the email on the order to match.
  4. 4For order status, have the agent read fulfillment status and the carrier tracking link from Shopify and reply with what the data shows, not an estimate it invents.
  5. 5Start refunds in approval mode: the agent prepares the refund (order, line items, amount, reason) and a person approves it in your helpdesk or Slack.
  6. 6Log every action in the ticket: what was looked up, what was said and any refund with its amount and policy rule.
  7. 7After a few weeks of approvals, decide whether refunds under your threshold can run automatically. Keep everything above it manual.

Example agent instructions

Copy, paste and adapt. Replace anything in {braces} with your own details.

You are a support agent for {Store}.
For each customer message:
1. Classify it: order status, refund request or other. Hand off "other" to a human with a one-line summary.
2. Verify: the order number and customer email must match the Shopify order. If they don't, ask for both. Never reveal order details before they match.
3. Order status: reply with the fulfillment status and tracking link from Shopify. If there's no tracking yet, say so and give the processing time from our policy. Never promise a delivery date the carrier hasn't shown.
4. Refund: check the request against the refund policy rules. If it's eligible and under {threshold}, prepare the refund for approval (or issue it, if auto-refunds are enabled) and tell the customer what happens next. If it's not eligible or over the threshold, hand off to a human. Don't refuse on your own.
5. Log everything you did in the ticket.

Guardrails and human checkpoints

Example input and output

Illustrative example only, not real customer data.

Example input

Example message: "Hi, order #1087 hasn't arrived and it's been a week. My email is jo@example.com."

Example output

Example reply (illustrative): "Hi Jo, thanks for getting in touch. Order #1087 shipped on Oct 14 with {carrier}, and the latest tracking update shows it's in transit. You can follow it here: {tracking link}. If it hasn't arrived by {date from our shipping policy}, reply here and we'll sort it out." Ticket log: order #1087 verified (email match); fulfillment: shipped; no refund action.

What to measure

FAQ

Should the agent be allowed to refund automatically?

Start with approval mode. Once your logs show it follows the policy, many stores allow small automatic refunds under a hard cap and keep larger ones manual.

What if tracking shows delivered but the customer says it isn't there?

That's a classic handoff case. Lost-package claims involve carrier claims and fraud checks, so a person should handle them.

Does it work with helpdesks like Gorgias or Zendesk?

Yes. The helpdesk holds the conversation, and the agent reads and writes through its API while pulling order data from Shopify.

Related use cases

Get new agent playbooks by email

AgentIndex Pro

Weekly launch alerts for new agent use cases. Advanced search and early access are coming soon. What's included