A returns bot for Shopify is flow design before it is bot code. The flow follows the returns lifecycle in order: the customer requests a return, the bot checks eligibility against the store’s policy and the order’s state, eligible requests are approved with instructions, ineligible or complex cases route to staff, and the outcome feeds back into refund, exchange, or replacement handling. Good ecommerce operations design defines what happens at each stage, where the bot stops automating, and how response times are tracked. This article walks that lifecycle stage by stage, with the design decisions that belong in each one and the sla terms that should be written into the bot’s rules rather than assumed from the vendor’s demo.
Stage one: return request intake and identification
The flow opens when a customer contacts the store about an order that may need a return or exchange. The bot first identifies the order: order number, email or contact used at purchase, and the items in the request. Identification should match the order record before any policy discussion, so the bot does not discuss eligibility for an order it cannot verify. If the customer cannot provide a matching order reference, the bot routes to a staff-assisted lookup rather than guessing from partial details. This intake stage also records the reason for the request: damaged, wrong item, size or fit, changed mind, late delivery, or defect, because the reason changes the later path.
Common intake failures deserve a design note. A customer who bought as a guest may only have a shipping ZIP or a phone number to match against, and the flow should offer those lookup routes rather than demanding an order number that does not exist. A customer who messages about several orders in one thread needs the bot to confirm which order the return refers to before opening a case. A duplicate message, sent while the first request is still being processed, should link to the existing case instead of creating a second one. Each of these is a normal real-world situation, and the flow should handle them without forcing the customer to repeat themselves.
Intake design should capture the customer’s own description in their words, along with any photos or reference numbers they provide, without forcing them into a rigid menu before they have explained the problem. The bot should confirm back what it understood: which order, which items, which reason, and whether the customer wants a refund or an exchange. That confirmation step prevents the classic flow failure where a return is opened for the wrong SKU. The intake record becomes the case file the rest of the flow references, and it should carry timestamps for each stage so response-time SLAs can be measured later.
Stage two: eligibility check against policy and order state
Once the order is verified, the bot checks eligibility against the store’s written returns policy and the order’s actual state. Policy conditions typically include the return window from delivery or purchase, item categories that are final sale, condition expectations, whether the item was used or opened, and any time limit on exchanges. Order state matters just as much: a returned item should not still be in transit, an order already refunded should not generate a second return case, and a partial return should account for the remaining items. The bot reads these facts from the Shopify order record and connected order data, and it should treat missing or ambiguous state conservatively by routing rather than approving.
Eligibility rules should live in a documented configuration the store can maintain, not hard-coded in the bot’s messages. Policy changes over time, and a build that bakes the window and category rules into code means every policy update becomes a vendor change order. The design should separate the policy rules from the message templates, so a staff administrator can adjust a window or add an excluded category without touching code. Where policy differs by product category, price tier, or region, the rule set should express that difference explicitly rather than applying one blanket policy to every order.
Stage three: approval, instructions, and the handoff threshold
For an eligible and straightforward request, the bot approves the return and provides the instructions the customer needs: how to package the item, where to send it, any return label or return portal link, the expected timeline, and what happens next. The instructions should match the store’s actual logistics process, including who pays return shipping under which condition. If the store uses a return portal, the bot should hand the customer to that flow; if the store processes returns manually, the approval record should be visible to the staff team handling the physical return.
The handoff threshold is the most important design line. The bot should stop automating when the request falls outside clear rules: damage or defect claims that may require photos or inspection, items outside policy but with a special-exception case, disputes about refunds already issued, exchange requests where the desired variant is out of stock, and any case the customer escalates. In those situations the bot does not decide the outcome; it captures the case details, routes to the right queue, and tells the customer when to expect a reply. The automation boundaries that apply to returns and refunds, including where a bot should not promise an outcome, are detailed in automation boundaries for returns and refunds, and the flow should place its handoff points on that side of the line.
Stage four: refund, exchange, and replacement handling
After the item is received and inspected, the outcome splits into refund, exchange, or replacement. The bot can notify the customer that the return was received, that inspection is in progress, and when the outcome is processed. Refund amounts, restocking decisions, and shipping-fee treatment should follow the store’s policy and any agreed exception; where the bot writes back to the order, the write action should be limited and validated, with an audit record of what was changed and when. Exchanges depend on stock and variant availability, and the bot should confirm the replacement item can be supplied before promising the swap.
Exchange cases need a separate stock check before commitment. If the customer wants a different size, color, or model, the bot should verify the replacement variant is in stock and held before promising the swap; an exchange promised against a variant that sells out between request and inspection turns a clean return into a second complaint. Where the desired variant is unavailable, the flow should offer alternatives or a refund rather than leaving the customer waiting. Partial exchanges, where one item in an order is kept and another replaced, need the same item-level tracking as partial returns, because the order record must reflect what the customer finally kept.
Refund timing and communication deserve explicit design. A customer waiting on a return wants a clear sequence: request received, approved or routed, item received, refund processed. Each stage should carry a status message rather than silence between intake and outcome, and the message should state the current stage and the expected next step. For delivery-related complaints that surface during a return, such as a late or damaged shipment, the message patterns follow the same clarity rules used for message design for delivery exceptions, with plain status language rather than vague reassurance.
Stage five: follow-up and case closure
The flow closes after the refund or exchange is completed. A brief follow-up message confirms the outcome and gives the customer a route back to support if something remains unresolved. The case record should then be marked closed, with the outcome, reason code, and handling time recorded for operations review. Follow-up should not turn into a promotional contact: the return thread is a service context, and any marketing message after a refund requires separate consent and separate handling.
Closure data feeds the store’s operations review. Aggregated reason codes show which products or categories generate the most returns, which channels generate the most disputes, and where the policy itself may need review. Handling times by stage reveal where cases stall: approval backlog, slow inspection, or delayed refunds. The bot’s logs should support this review without exposing customer details broadly, with access limited to the staff roles responsible for returns analysis.
SLA terms the flow design should carry into the agreement
SLA design starts with the stages the store commits to. Common commitments include an acknowledgment window after the request, a decision window for eligible cases, a routing window for complex cases, and a refund-processing window after the item is received. Each SLA should have a measurement point in the flow, a target time, and an escalation when the target is missed. The bot should flag cases approaching or past their SLA so staff can intervene before the customer complains, rather than waiting for a follow-up message.
The agreement with the build team should state how SLA rules are configured, who can adjust the targets, and how missed SLAs are reported. It should also define the bot’s escalation behavior: which queues complex cases enter, who owns each queue, and what the customer is told while waiting. For a China-built shopify app, timezone overlap matters here: cases routed overnight in the store’s region may sit until the next working day, and the SLA should reflect working hours rather than a 24-hour promise the team cannot meet. Exit and handover conditions include the policy rules, reason-code taxonomy, and case data export, so the returns flow can be continued or rebuilt without dependence on the original vendor.
Leave a Reply