Use cases

Automating returns and order tracking with an AI agent

Where is my order and how do I return this are the two biggest repeat questions in ecommerce. Here is the data, the safe actions and the handover rules to automate them.

By the Askocto team · · 6 min read

Order tracking and returns are the two repeat questions that fill most ecommerce inboxes, and both can be automated well if the agent has the right data and clear limits. This article covers what the agent needs to look up, how to write the return process, which actions are safe to automate, and where a person should step in.

In short: Tracking is a read-only lookup, so automate it first. Returns are a procedure with conditions, so write the steps and the limits. Hand over damaged goods, disputes, high-value cases and anything outside policy.

Why these two questions dominate

Both come from the same moment: the customer has paid and is waiting, or has received something and wants to change their mind. The anxiety is real, the answer is already known to you, and the customer wants it now. That is a good profile for automation.

They also share a structure. Each starts with identifying the order, then applies a rule, then reports a result. If you build the identification step once and build it carefully, both flows use it.

For a store-wide view of what to automate before these two, see the guide for Shopify stores. This article goes deeper on the two flows themselves.

The data your agent needs for order tracking

An agent can only report what it can see. List the fields before you build anything.

Data point Why it matters
Order number and the email or phone on the order Identifies the order and the customer
Order status (paid, packed, shipped, delivered, cancelled) The core answer
Carrier and tracking link Lets the customer check for themselves
Last tracking event and time Makes the answer specific, not vague
Estimated delivery date The thing most people really want
Items in the order and which shipment they are in Handles split shipments
Delivery address, partly hidden Lets the customer confirm without exposing it fully

Two points matter here.

Verify before you share. Order details are personal data. Require two matching details, such as the order number and the email, before the agent shares anything. Do not let a guessable order number alone reveal an address.

Show, don't only tell. A tracking card inside the chat, with status and the link, is easier to use than a paragraph of text. Askocto can show things like order tracking inside the conversation, next to the written answer.

A tracking conversation that works

Keep it short. Here is an example of the flow in plain wording:

Customer: Where is my order?
Agent: I can check that. What is your order number and the email you used?
Customer: 48213, sam@example.com
Agent: Found it. Your order shipped on Monday and is with the carrier.
       Latest update: arrived at the local depot this morning.
       Estimated delivery: Thursday.
       Here is the tracking link. Anything else I can help with?

The agent identifies, confirms, reports the latest event and gives a date. It does not apologize for things that are not wrong, and it does not make promises about delivery that the carrier has not made.

Write the unhappy paths next to it: tracking has not updated in a long while, the status says delivered but the parcel is missing, the order is held for payment. Each needs a stated answer and a handover rule.

Automating returns: policy, eligibility and steps

A return is a procedure, so write it as one. In Askocto you describe how your best person handles a return, in plain steps, and the agent follows them. The steps below are an example of how that plain-language version might look.

  1. Identify the order, as for tracking.
  2. Ask which item and why. Offer a short list of reasons: wrong size, changed mind, damaged, not as described.
  3. Check eligibility against the policy: within the return window, item category allowed, item not on the excluded list.
  4. If eligible and the reason is not damage: explain the options (refund, exchange, store credit) and the cost of returning, then send the return instructions.
  5. If the reason is damage or a wrong item: collect a photo and hand over to a person.
  6. If not eligible: explain why, based on the policy, and offer a person if the customer disagrees.
  7. Confirm what happens next and when the refund is expected.

The same approach is described in more detail in the guide to writing procedures for an AI support agent, including how to add conditions and handover points without making the steps unreadable.

Safe actions and clear limits

Not every action carries the same risk. Use a simple three-way split.

Action How to treat it
Look up order and tracking Automate fully
Explain return policy and eligibility Automate fully
Start a return and send instructions Automate, within the policy rules
Create a prepaid return label Automate with conditions, such as order value limits
Cancel an order before it ships Automate with a check that it has not been packed
Change a delivery address Automate only before dispatch, with verification
Issue a refund Keep with a person at first, then consider small, rule-bound cases
Goodwill credit, exceptions, disputes Person

Whatever you allow, write the limit into the procedure and keep a record. An audit log of actions lets you check what the agent did and when, which matters when a customer later disputes an outcome.

Edge cases and when to hand over

Most trouble in these flows comes from the same dozen situations. Decide each one before you launch.

  • Order not found. Allow one retry, then hand over.
  • Delivered but missing. Collect details, hand over.
  • Damaged or wrong item. Photo and hand over.
  • Return window just missed. Explain the policy, then offer a person to review. Do not make exceptions in the agent.
  • Partial returns. Handle one item at a time, and confirm the total.
  • Gifts. The returner may not be the buyer. Decide what you refund and to whom.
  • High-value orders. Add a manual check above a threshold you choose.
  • Repeat returners or signs of abuse. Hand over without telling the customer why.
  • Angry customers. Offer a person early, and do not push the automated flow.

A good handover carries the order, the item, the reason, the photos and what the agent already told the customer. The guide to AI to human handoff lists what to include so nobody repeats themselves.

Testing and measuring

Before launch, replay real past tracking and return conversations and compare the agent's answers with what your team did. Include the ugly ones, such as typos in the order number, a refund asked for twice and a customer who writes only "this is unacceptable". The pre-launch testing guide explains how to turn those into a test set.

After launch, watch the resolution rate for these two topics, the share handed over and the reasons, and any repeat contact on the same order. A high handover rate on one reason points to a missing rule. If you want to try a first flow with your own content, you can start for free.

Frequently asked questions

Can an AI agent process refunds automatically?

It can, if you allow it and set limits such as order value and eligibility. Many teams start by letting the agent begin the return and keep the refund step with a person.

What information does the agent need to track an order?

An order identifier plus a second detail to verify the customer, and access to order status, carrier and tracking data from your store or shipping system.

How do I stop customers abusing an automated returns flow?

Keep the policy rules explicit, limit what the agent can approve, and route repeat patterns or high-value cases to a person. Review a sample of approved returns regularly.

What if the carrier data is wrong or delayed?

Have the agent report what the data says and when it was last updated, and avoid promising a date. If there has been no update for a period you define, hand over.

Train an agent on your own help center

Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.

Keep reading

All articles
Use casesai agents order tracking ecommerce
Mar 28, 20264 min read

AI agents for order tracking in ecommerce: go proactive

Order tracking is the biggest repeat question in ecommerce. Answer it in chat with a tracking card, then go proactive and tell customers about delays before they ask.

Read article
Use casesecommerce customer service
Apr 28, 20254 min read

Ecommerce customer service: a playbook for online stores

A playbook for online store customer service: the contact reasons to plan for, which channels to offer, response habits, returns handling and where an AI agent fits.

Read article