Challenge: returns scattered across the inbox, the warehouse, and accounting
An e-commerce company (illustrative example) runs an online clothing store. Customers who want to return goods write emails, fill in a PDF form, or simply send the parcel back with a note inside. Customer service retypes the data into a spreadsheet, looks up the order in the store's admin panel, and replies with return instructions. After receiving the parcel, the warehouse inspects the goods and reports the result via a messaging app, and a person in finance manually orders the refund and updates the order status. During the sales season there are dozens of such cases a day. On top of that come the deadlines under the Polish Consumer Rights Act: the customer has 14 days to withdraw from a distance contract, and the store has 14 days from receiving the withdrawal notice to refund the payment, although it may withhold the refund until it receives the goods or proof that they were sent back.
This process had three recurring problems:
- no one could see in one place what stage a particular return was at and how many days remained until the deadline,
- the customer's data, the order number, and the bank account number were retyped several times, which led to mistakes,
- the warehouse's assessment of the goods' condition did not automatically reach the person who orders the refund.
Solution: one flow from the return request to the refund
We build the automation in n8n, which connects the return form, the store platform, the warehouse system, the payment provider, and the customer service inbox.
- Return request – the customer fills in a form on the website, entering the order number and selecting products. The form sends the data to n8n via a webhook (an address to which an application passes data at the moment of an event). The system checks on the store platform whether the order exists and when it was delivered, and an AI agent converts return emails into the same set of fields and flags them for review by customer service.
- Confirmation and instructions – the customer immediately receives an email confirming receipt of the withdrawal notice, with a return number and shipping instructions. The date the notice was received is saved in the returns register, because the statutory refund deadline runs from it.
- Receiving the parcel at the warehouse – the warehouse employee scans the return number, and the system shows them the list of products from the order. They mark the condition of each item using set categories: “no signs of use,” “signs of trying on,” “damage.” They can also add a photo. Items with no issues go back into stock in the warehouse system.
- Deciding the refund amount – returns with no issues go to an approval queue with the calculated amount. If the warehouse reported damage or signs of use beyond trying on, the case goes to the customer service manager with a description and photos. The act provides that the consumer is liable for any reduction in the value of the goods resulting from using them in a way that goes beyond what is necessary to establish their nature, characteristics, and functioning, but a human always makes the call on such a case.
- Refund and closing the case – after approval, the system orders the refund through the payment provider (if it offers this function in its API) or prepares the transfer data for the finance department. The order on the store platform gets a new status, the customer receives an email about the refund, and accounting receives a summary for further settlement.
- Watching deadlines – every morning the team gets a list of returns where the refund deadline is approaching, with information on what the case is waiting for: the parcel, the warehouse assessment, or approval.
Sample timeline: 6 weeks from design to a working process
- Week 1 – process audit and mapping: we lay out the current return path, the request channels, the roles, and the places where data gets lost.
- Week 2 – rules and form design: goods condition categories, thresholds for passing a case to the manager, and the wording of messages to customers.
- Weeks 3–4 – building the flows in n8n and integrations with the store platform, the warehouse system, and the payment provider.
- Week 5 – the AI agent for email requests and the daily deadline summary.
- Week 6 – tests on a portion of returns, training for customer service and the warehouse, and full rollout.
What results to expect
Specific numbers depend on the starting point, so before rollout we measure the time from receiving the parcel to the refund, the number of returns approaching the statutory deadline, and the number of data errors, and after rollout we compare the same indicators.
The direction of change is usually this:
- Visibility: from scattered spreadsheets and messages to a single register – every return has a status and the date from which the deadline runs.
- Retyping data: from entering it several times to a single form – data from the order fills in on its own.
- Handling time: from days to hours between the warehouse assessment and ordering the refund – the decision goes straight to the right person.
- Customer contact: from “what about my return?” questions to automatic updates at every stage.
Where a human decides
The team sets the rules of the process: the goods condition categories, who approves returns, and when a case goes to the manager. The assessment of a product's condition is always made by the warehouse employee, and the decision to reduce the refund amount because of a reduction in the goods' value is made by the customer service manager – the system only gathers the description, photos, and order history. Requests the AI agent reads from emails are checked by customer service before they are assigned a number. Every system output, such as fields read from an email or the calculated amount, can be corrected with one click, and the change is saved in the return's history. The team does not lose contact with the customer in disputed matters – those messages are still written by a human.
Takeaways
Automating returns does not replace customer service or the warehouse – it takes retyping data, searching for orders, and tracking deadlines off their plate. Three elements usually have the biggest impact: a single form feeding the returns register, a simple assessment of the goods' condition when the parcel is scanned, and a daily list of deadlines that makes it easier to refund payments on time.
If in your company returns live in several inboxes and spreadsheets, and it is an impatient customer who reminds you about deadlines, that is usually the first sign it is worth starting with an audit of the current process.