E-commerce automation connects orders, inventory, shipping, customer service and returns so that you can see later what happened to an order. It helps when your team enters the same information again today between the shop, the inventory system, the warehouse and the inbox. What matters is not how many steps run by themselves but that each step fits the actual state of the order.
An example: an online lighting shop in Trieste with 14 employees sells through Shopify. Matteo from customer service answers every order-status question by hand today. With the automation, it should prepare the reply for him, and Matteo checks it and sends it.
Key takeaways
- An order can be paid while only part of it has shipped and a question is still open about another item. Record order creation, payment, the state of each individual item, shipment and return separately.
- A useful starting point is prepared replies to status questions. Before a system changes a delivery address, a payment or a refund, decide explicitly who may do that and what is checked first.
- For returns, the return request, the goods receipt and the refund are three separate steps. AI should not refund money simply because a message contains "money back".
- If a customer writes a new delivery address in an email, it is a change request at first. Your system should not simply take it over.
01 / 10
Which states does an order have at the same time?
"Order completed" is too vague for many everyday decisions. Take an order at the lighting shop: it is paid, the floor lamp is already on its way, and the customer has just asked a question about the lampshade. No single word describes the state of this order.
So record five things separately: whether the order has come in, what the payment state is, how far along each individual item is, what has shipped and what is coming back. Shopify also keeps these details separate in its order statuses. It has, for example, partially fulfilled orders and partially refunded payments. That helps your IT team map the fields correctly, but it does not say what rights a consumer has. The source is in the section "For your IT team" below.
For Matteo, this means that the reply to a question about the parcel with the lamp only concerns that parcel. A message about one parcel must not automatically change every item on the order.
Where do you start? A good starting point is the status question. The automation finds the right order, checks the items concerned, collects the confirmed shipping data and puts a draft reply in front of Matteo, who approves it. Small internal tasks can follow, such as a question to the warehouse. If the system is to change a delivery address, a payment or a refund, decide explicitly beforehand who may do that and what is checked.
02 / 10
Which e-commerce workflows can you automate?
The status question is one of four typical e-commerce cases in which the automation can prepare a lot. In each one, though, there is a limit it should not cross.
| Case | What the automation can prepare | What it should not do |
|---|---|---|
| A customer asks about their order | Find the order and the item concerned | Give details to a sender who is not verified well enough for the order |
| Shipment information | Collect the confirmed shipment data | Describe a partially fulfilled order, such as a partial shipment, as a complete delivery |
| Stock does not match the order | Flag the conflict between the order and availability | Conclude from old messages that goods are in stock |
| A return comes in | Bring together the return request, the item and the available receipt evidence | Mix any of the three steps, return request, goods receipt and refund, with another |
Many of these steps need clear rules rather than a language model. AI can help, for example, when a customer writes freely, such as "The lamp is here, but the shade is still missing, right?". A fixed rule, on the other hand, can decide whether a state permits an action. That leaves fewer places where plausible-sounding wording could trigger the wrong step.
03 / 10
Worked example: two items, one parcel in transit
Suppose a customer orders a floor lamp and a matching lampshade from the lighting shop in Trieste. The order is paid. There is a shipment identifier for the lamp, such as a tracking number, while the shade is still waiting for new stock. The customer emails: "Where is my order?"
The automation finds the order and checks both items. The draft for Matteo states the lamp's shipping status and the shade's open status separately. If an expected date is recorded for the shade, the draft explicitly calls it expected. Where there is no confirmed information about the shade, the responsible team gets a question. The AI does not invent a delivery date.
Before the reply goes out, the system checks the current state again. If the warehouse has meanwhile processed the shade too, the draft can be updated. And if only a shipping label has been prepared, the reply states exactly the status your process has confirmed. A label does not turn into a delivery in the email.
In this example, the carrier reports the same status twice, and the customer still gets only one message. If it is unclear whether a send step worked or what a shipping update means, the case stays open until your team or the system has established the actual state. A workflow that runs without a technical error and still gives the customer wrong information has missed its goal.
04 / 10
Shop rules or a separate automation platform?
Before you bring in another program, check what your shop can already do. With Shopify Flow, you build workflows from triggers, conditions and actions. So the pattern is "if something happens and a condition is met, then do something". Whether your particular workflow gets all the data and actions it needs there depends on the functions and apps involved.
An additional platform can make sense when the shop, the inventory system, a logistics provider and your customer service tool need to work together. At the lighting shop, that would be the case if an external logistics provider packed the parcels. It should not create a second stock list that nobody notices. For each individual detail, decide which program holds the valid value, for example the inventory system for stock. And explicitly test how changes are reported back.
When vendors show you their solution, ask for a complete case in which the system reads an item from an order, spots an exception, creates a task and confirms the response. A slide full of app logos does not answer that question. Also ask about processing time, charges per processing step and who looks after it internally at your business. Plan especially for peak times, such as before Christmas. An ordinary day is a poor basis for that.
05 / 10
Cancellation and returns need precise transitions
A customer wants to cancel. That can happen before the warehouse starts, while someone is picking the goods, or after the parcel is already with the carrier. The automation must recognise the actual state and take the route you have defined for that state. If the system has only sent the warehouse an internal message saying "please stop", the confirmation to the customer must not claim the shipment was stopped.
For returns, record four things separately: which items the customer wants to send back, what you expect to come back, what has actually arrived and what you decide next. AI can sort the customer's text into a matching reason, such as "shade damaged", and flag missing details. But it should not issue a refund simply because a message contains "money back". Money goes back only with the designated authority and on a checked basis.
This separation does not replace checking which withdrawal, warranty and refund rules apply to your business. Store approved replies for these questions and a route that tells Matteo whom to pass the case to. Do not let the AI judge from its general knowledge what a customer is legally entitled to.
The separate states also help Matteo in customer service. He can tell the customer whether the shop is waiting for information, for the returned shade or for a decision, and he does not have to answer each of these situations with the same "your return is being processed".
Got a workflow like this?
Tell me about it. Honest take and a rough price, usually within a day.
06 / 10
What if a customer sends a new address by email?
A customer writes: "Please send the parcel to my new address in Muggia." The AI may recognise the address with complete confidence, but it is still a change request at first. It must not reach the shop and the warehouse merely because the AI recognised it confidently. Decide how you check that the email really comes from the customer, until when a change is still possible and who enters it. The same applies to new bank details, a new invoice recipient and requests for access to other orders.
Matteo must be able to see the data that matters for the case. The carrier does not automatically need the whole email history with the customer. Give each party only what they need for their task.
Sometimes a colleague changes something directly in the shop at the same time, for example the delivery address after a phone call. The workflow must be able to handle that. If something important has changed, a draft that was already checked is checked again. That way you can see later which data the reply to the customer was really based on.
07 / 10
How do you test the pilot under realistic load?
A pilot is a first, limited trial. Start with a common type of request and a clearly bounded shop. At the lighting shop, that is the status questions in its own Shopify shop. An e-commerce pilot should be tested against these seven situations:
- partial fulfilment, such as a partial shipment where the lamp is on its way and the shade is not
- several shipments for one order
- an order that was changed afterwards
- the same event arrives more than once
- an unknown order number
- a return without goods receipt
- an outage after the action in the destination program has already succeeded
Also check whether a backlog, for example after an action, is worked through slowly enough for Matteo and the connected programs to keep up.
How should you measure pilot results?
These four values show what the e-commerce pilot achieves:
- how many replies per case were correct
- how much time Matteo actively spends on a case
- how often someone had to correct something
- how many tickets were reopened
Separate simple status questions from difficult complaints. If simple cases are handled cheaply, that says little about what an incorrectly processed refund costs.
You can start this week. Pick out an order with two items in different states, and anonymise it. Bring it to the first meeting. If the proposed workflow explains the differences correctly and creates the right next task, that tells you more than a demonstration with a single, fully completed order.
08 / 10
For your IT team
Store the identifier of each line item and, where relevant, each shipment alongside the order number. That way, a message about parcel A can affect exactly the right items. If you sell through marketplaces or several shops, the source system belongs in the identifier. Otherwise identical-looking order numbers get confused.
The official Shopify order-status documentation keeps order, payment, fulfilment and return states separate and distinguishes, for example, partially fulfilled orders and partially refunded payments. This terminology is a good basis for mapping the fields. It is not a general statement about consumer rights. The source and the details on Shopify Flow were checked on 26 September 2026.
Matching the order, line item, event and already confirmed action supports reconciliation, for example when the same status event arrives twice.
For each field, assign the authoritative system, meaning the program that holds the valid value. Explicitly test how changes are reported back, so that no unnoticed second inventory ledger appears.
Limit access by task. In logs, prefer status, identifiers and references to the source over copied complete customer files.
09 / 10
Take the worksheet
Worksheet
Download the acceptance worksheet
| Case | Expected |
|---|---|
| Another customer's order | No access |
| Duplicate refund | Prevent second action |
| Stale stock | No delivery promise |
Columns to fill in, in the file: Observed, Owner.
10 / 10
Related decisions
These pages continue the planning of order, shipment and return workflows in e-commerce:
- AI automation: tasks, selection and implementation
- AI automation for online merchants
- Office automation in ten industries: patterns and limits
- AI automation costs: a first-year budget for SMEs
- AI workflow approvals: who checks which action?
- Shopify order-status chat without exposing other customers
- Chatbots for returns and complaints with clear approvals
- Automate invoice capture without hiding field errors
- 60-second check



