A customer service team sorted about 500 after-sales requests a week by hand. A predictive model trained on more than 500,000 past requests now classifies them, recommends how to handle them and pulls out the key information. Manual handling fell to fewer than 80 requests a week. Most of the work was the data.
Context
A customer service team receives about 500 after-sales requests a week, by email and through a web form. Every request was read and sorted by hand before anyone could act on it. Most followed a pattern the team had seen many times. Sorting them still took a large share of the week.
The history was there: more than 500,000 past requests, going back to 2016, spread across the request database and the ERP.
What the system had to do
The goal was not a chatbot. It was three precise jobs on every incoming request:
- classify it: decide which type of request it is;
- recommend how to handle it, based on how similar requests were handled in the past;
- pull out the key information, such as the product concerned and the type of problem, so nobody has to search the message for it.
The approach chosen was a predictive machine learning model trained on the history, not an agent built on a large language model. For a decision that repeats hundreds of times a week, with years of examples of what the team actually did, a model that learns from those examples is easier to test, cheaper to run and easier to explain.
The real work was the data
The hardest part came before any model. The data was inconsistent: many requests had incomplete information, in the request database and in the ERP, and the same kind of request was not always recorded the same way over the years. A model cannot learn to fill in the right fields from examples where those fields are often empty or wrong.
The first month went into understanding that history: what each field meant, how it had been filled in over time, and where it could not be trusted. Much of the project's time went into preparing the data so that a model could learn from it at all.
This matches what research describes. Researchers at Google who interviewed 53 practitioners about data problems in AI projects found that such problems are often invisible at first and show up late, once a model is in use, when they cost the most to fix. Spending the time up front is what avoids it.
Giving every request a proper type
Preparing the data surfaced a problem that no model could solve on its own. Requests about an order or about a commercial offer were being filed as after-sales requests, with no label of their own. A model trained on those labels would have learned that confusion and repeated it.
The fix is not technical. New labels have to be defined with the business, because they change how the team sorts and reports its work. Three rules keep it clean:
- define each new type with the people who handle the requests, and keep the words they already use;
- write down what belongs in each type, with examples, before relabelling anything;
- keep the original field alongside the new one, so every change can be traced and, if needed, undone.
A five-step roadmap
The work followed a roadmap in five steps, each one building on the last:
- exploratory data analysis: understand the history and measure its quality;
- model training: learn from the past requests and test on recent ones;
- formalising the request types: agree the types with the business, as described above;
- integration into the team's tool: put the result where customer service already works;
- extension to the department's other request types, once the first scope is proven.
The order matters. Integration comes after the request types are agreed, because a model that sorts into the wrong categories only speeds up the wrong process.
Built into the team's tool
The solution was scoped with the customer service team from the start, so that it would fit into the tool they already use. The type, the recommendation and the extracted information are designed to appear on the request itself, so nobody has to open a separate screen to benefit from them. That is what makes a model get used rather than admired.
The result
Manual handling fell from about 500 requests a week to fewer than 80. The team spends its time on the requests that need judgement, not on sorting the routine.
How to reproduce it
The same approach works for any team that sorts a steady flow of similar requests. Four points make the difference.
Test the way it will be used. Split the history by time, not at random: train on older requests and test on the most recent months. Keep only the information that is known when a request arrives. A field filled in after the decision makes a model look excellent in testing and useless in production. Google's guide to running models in production warns about this kind of gap between the data a model was trained on and the data it receives once in use.
Let the model say when it is unsure. A model gives a confidence, not only an answer. In 1970, C. K. Chow described the reject option: a classifier that declines to decide when its confidence is too low and leaves the case to someone else, with fewer errors on the cases it does handle. Yonatan Geifman and Ran El-Yaniv applied the same idea to modern models in 2017, as a balance between the share of cases handled and the error rate on those cases. Choosing that threshold is a business decision, made with the people who will handle what the model sets aside.
Illustrative example: twelve invoices read by a model, each with a confidence score. Above the chosen threshold, the invoice is processed automatically; below it, it goes to a person with the reason for doubt. At a 95% threshold, nine of twelve invoices are processed alone.
Move the threshold: the higher it is, the more documents go to human review.
9 of 12 processed alone · 3 to review
The figure shows the principle on supplier invoices: move the threshold and see which cases are handled alone and which go to a person, with the reason. A request works the same way.
Write what always stays human. Some requests should never depend on a confidence score: a type the model has rarely seen, large amounts, sensitive customers, anything that touches safety or a legal claim. Write those rules before the model and apply them first.
Keep checking once it runs. Models drift when the world they describe changes: a new product line, a new carrier, a new returns policy. Review a small random sample of automatic decisions regularly, watch the share handled automatically and the error rate, and retrain on recent months on a schedule.
This is how we approach production AI on ready data. Our article on why AI projects stall before production covers the wider conditions, and our data platform assessment checks in two to three weeks whether your history can support a use case like this one.
Sources
- Nithya Sambasivan et al., "Everyone wants to do the model work, not the data work: Data Cascades in High-Stakes AI", Proceedings of CHI 2021, ACM. research.google.
- C. K. Chow, "On optimum recognition error and reject tradeoff", IEEE Transactions on Information Theory, vol. 16, no. 1, 1970, pp. 41-46.
- Yonatan Geifman and Ran El-Yaniv, "Selective Classification for Deep Neural Networks", Advances in Neural Information Processing Systems 30 (NeurIPS 2017). arxiv.org.
- Google Cloud Architecture Center, "MLOps: Continuous delivery and automation pipelines in machine learning", last updated 28 August 2024. docs.cloud.google.com.

