Order emails: rules vs AI vs by hand, measured on 40 emails
We ran the same job three ways over the same 40 order emails: by hand, with a plain rules-based parser, and with one AI model call per email. The parser and the model both got 35 of the 40 orders fully right. They were not wrong in the same way. The parser could not read the five emails a person had typed. The model read all five perfectly, except for one thing: it got every single delivery date wrong.
If you are deciding how to automate order entry from email, that result is more useful than any vendor demo, because it tells you where each tool actually breaks. This post walks through the setup, the numbers, the one failure that surprised us, the fix that worked, and the design we would build for a real operation.
The question we wanted answered
A lot of businesses still take orders by email. Some of those emails are generated by a customer’s system and look identical every time. Others are typed by a person in a hurry: lowercase, abbreviated, with the important detail in a signature. Someone on your side reads each one and retypes four or five fields into the order system.
The obvious modern answer is “use AI”. The obvious older answer is “write a parser”. We wanted to know, with numbers, what each one does on the same mail, so the choice is based on evidence rather than whichever tool is fashionable.
The setup
To keep it honest and private, the test used a fictional company, Acme Bakery, and invented customers. No real orders or addresses appear anywhere. Everything else was built to mirror a real order inbox.
- 40 emails, all received on Friday 14 August 2026, a realistic Friday-afternoon batch.
- 35 came from a shop system. They follow a fixed template with labelled fields:
Customer:,Item:,Quantity:,Delivery:. That is how real order systems send mail, generated from a database row, so generating them the same way mirrors the real thing. - 5 were typed by people, written out by hand, each with a specific thing that makes it hard.
- Four fields to extract from every email: customer, item, quantity and delivery date. An order only counts as right if all four are right.
The five human emails are the interesting part, so here they are, verbatim:
hi Mari — can we get 3 more trays of the cinnamon buns for next saturday? same as last week. thanks, Jussi (Café Torni)
Morning! Bumping this week’s rye to 30 loaves instead of 24 — Thursday delivery as usual. Cheers, Anni, Ravintola Nokka
Hei, we’re closed Monday so please move our karelian pasties order to Tuesday. Still 20. — Kahvila Siilo
hi! 6x oat rolls pls, wed. ta — bistro kallio
Hello Mari, for the market next Saturday could we take 40 baguettes? If that’s too many, 30 is fine. Kiitos, Café Ursula
Each of these has a trap. The customer is in brackets in a signature. Two numbers appear in one sentence and the wrong one is closer to the verb. Two weekdays appear and only the second is the delivery. There are no capitals and no labels. One asks for 40 or 30, which is genuinely ambiguous: a person would have to pick too. We recorded our own reading as the correct answer and we say so, rather than pretend the email is clearer than it is.
The three lanes
Lane 1: by hand
A person reading each email and typing four fields. We did not time this lane, deliberately. Nothing measured it, and putting an invented number on it (“4 minutes per email!”) is exactly the kind of sloppy claim this test exists to avoid. What we can say is that it is the only lane that would understand all five human emails, and the one that scales worst.
Lane 2: a rules-based parser
No AI and no network calls. We wrote it to be fair, not a strawman: it reads the labelled fields first, then falls back to matching the product catalogue, a regular expression for quantities, and the subject line. A parser that is designed to lose would make the whole comparison meaningless.
Lane 3: one AI call per email
One model call per email (OpenAI’s gpt-4o-mini, the same default model our own lead pipeline uses), asking for structured JSON. The model was given the product catalogue and the date the email was received, exactly the same information the parser’s fallback had. Giving the model the catalogue and not the parser would have rigged the race.
The results
| Rules parser | AI model | |
|---|---|---|
| Orders fully right (all 4 fields) | 35 / 40 | 35 / 40 |
| On the 35 templated emails | 35 / 35 | 35 / 35 |
| On the 5 human emails | 0 / 5 | 0 / 5 |
| Customer correct | 35 / 40 | 40 / 40 |
| Item correct | 39 / 40 | 40 / 40 |
| Quantity correct | 39 / 40 | 40 / 40 |
| Delivery date correct | 35 / 40 | 35 / 40 |
| Time for all 40 | under 1 millisecond | about 10 seconds |
| Network calls | 0 | 40 (about 11,000 tokens) |
Read the first row alone and the conclusion is “it doesn’t matter which you use”. Read the rest and a much more useful picture appears.
Where the parser broke
On the templated mail the parser was perfect, instant and free. On the human mail it fell apart in a predictable way. It found the item and the quantity in four of the five emails, but it got the customer wrong in all five, because there was no Customer: label, so it fell back to the subject line. “next week”, “quick one” and “order” are not bakeries. It also found no usable date in any of them, because “wed.” and “next saturday” are not dates a simple pattern can resolve.
None of this is surprising. Rules are excellent at structure and useless without it.
Where the model broke
The model was the opposite. It read every human email correctly for customer, item and quantity: the bracketed signature, the “30 instead of 24”, the lowercase “bistro kallio”, the “6x oat rolls”. That is genuinely impressive, and it is exactly the messy-language judgement models are good at.
Then it got every one of the five delivery dates wrong. Not slightly, and not randomly: each date was confidently resolved to the wrong day, mostly a few days early. “Thursday delivery as usual” became a Monday. “Move it to Tuesday” became a Saturday. The model understood the words and could not do the calendar arithmetic. And since an order only counts as right when all four fields are right, a perfect read on the other three fields still scored zero.
This is the failure that matters for anyone building order intake, because it is silent. The output looks complete and confident. Nothing errors. A wrong delivery date simply flows into the order system and turns into a missed delivery on the wrong day.
Chasing the date problem
We ran a small follow-up on just the five human emails, changing one thing at a time.
| Variant | Dates right |
|---|---|
| As sent: model gets the received date | 0 / 5 |
| Same, but the weekday is named (“Friday 14 Aug”) | 1 / 5 |
| A two-week calendar pasted into the prompt | 4 / 5 |
A bigger model (gpt-4o), as sent |
0 / 5 |
Three findings stand out.
A bigger model did not fix it. The larger model also scored 0 out of 5, across four repeated runs. One earlier run scored 4 out of 5 at the same settings, which is its own lesson: a model’s score on a small test can swing that far between runs, so a single good run proves very little. We report the result that held when repeated.
Telling it the weekday barely helped. Naming the day moved it from 0 to 1.
Giving it a calendar fixed most of it. With a two-week calendar in the prompt (each date with its weekday) the model resolved four of the five correctly. It stopped doing arithmetic and started looking things up, which is a much easier job. The one remaining miss was “the market next Saturday”, sent on a Friday. The model read it as tomorrow; we read it as the Saturday after. Honestly, that one is ambiguous for a person too, which is why it should go to a person.
What this means for automating order entry
The result is not “AI is bad at orders” or “rules are enough”. It is that each tool has a sharp, predictable edge, and a good system puts each one where it is strong.
1. Use rules for structured mail
If a large share of your orders come from systems (EDI exports, web shops, a customer’s ERP), parse them with rules. In our test the parser handled all 35 in under a millisecond, with no cost per email and no chance of inventing anything. Using a model there buys you nothing and adds cost, latency and a new way to fail.
2. Use a model only where the language is messy
Route the human-written emails to the model. That is where it earns its cost: understanding signatures, abbreviations, corrections and context that no reasonable set of rules can cover.
3. Never let the model do date arithmetic on its own
Either put a calendar in the prompt, as we did, or, better, have the model extract the phrase (“Tuesday”, “next Saturday”, “as usual on Thursday”) and resolve it to a date in plain code, where the arithmetic is exact and testable. The same principle applies to totals, prices and units: let the model read, let code calculate.
4. Send ambiguity to a person, on purpose
“40 baguettes, or 30 if that’s too many” is not an extraction problem. It is a decision. A good system detects it (two quantities, two possible dates, a range) and puts it in front of a person with the email beside it, instead of guessing. The goal is not zero human work. It is human work only where a human is needed.
5. Check every output before it becomes an order
Validate what comes out: is the item in the catalogue, is the quantity a sensible number for that customer, is the date a delivery day you actually run, is it in the future? Rules like these catch most of what a model gets wrong, and they cost almost nothing to run.
Put together, the design looks like this:
- An email arrives. If it matches a known template, the rules parser extracts it.
- Otherwise the model reads it and returns the fields plus the raw date phrase.
- Code resolves the date and validates every field against the catalogue and your delivery rules.
- Anything ambiguous or invalid goes to a review queue with a suggested answer and the original email.
- Everything else becomes an order, and every step is logged.
This is the same “boring automation with a thin AI layer” pattern we describe in do you actually need AI, or just automation?, and the one our own lead pipeline uses: the model writes the parts that need judgement, and deterministic code does everything else, including taking over when the model is unavailable.
What the test does not tell you
To be clear about its limits:
- It is small. Forty emails, five of them hard. It is enough to show where each approach breaks, not to give you an accuracy percentage for your inbox. Your mail will have its own traps.
- The data is synthetic. The emails were written to resemble real order mail, but they are not real customers’ messages.
- It is one moment in time. Models change. A future model may resolve dates correctly without help, and if it does, the conclusion changes. That is exactly why any system like this should come with an evaluation set you can rerun whenever the model changes.
- The hand lane was not timed. We are not going to tell you how many hours this saves, because we did not measure that.
The most useful thing you can do with this post is run the same experiment on your own mail. Take 40 recent order emails, write down the right answer for each, and score whatever you are considering against them. It takes an afternoon and it will tell you more than any sales demo.
Frequently asked questions
Can AI extract orders from emails accurately?
For customer, product and quantity, yes: in our test the model read all 40 correctly, including the five messy human-written emails. For delivery dates it was unreliable without help, getting all five relative dates (“next Saturday”, “Tuesday”) wrong until a calendar was added to the prompt. Treat it as an excellent reader, not a reliable calculator.
Is a rules-based parser still worth building?
Yes, for any email that comes from a system and follows a template. In our test it handled all 35 templated emails perfectly in under a millisecond, with no per-email cost. It failed on every human-written email, which is why it should be paired with a model rather than replaced by one.
Why did the AI get the dates wrong?
Resolving “next Saturday” or “Thursday as usual” requires calendar arithmetic relative to the day the email arrived, and the model did that arithmetic badly even when told the received date. A bigger model did not help. Giving it a calendar, so it could look the date up instead of calculating it, fixed four of five cases.
How do you automate order entry from email safely?
Parse structured mail with rules, send only the messy mail to a model, resolve dates and totals in code, validate every field against your catalogue and delivery rules, and send anything ambiguous to a person with the original email beside it. Log every step so mistakes can be traced.
Will a newer model fix the date problem?
Possibly. That is why we report the model and the date of the test, and why any production system should include an evaluation set you rerun whenever you change models. Do not assume a fix; measure it.
The short version
Rules and AI both scored 35 out of 40 on our order emails, for opposite reasons. Rules read structure perfectly and messy language not at all. The model read messy language perfectly and could not do the calendar. The right system uses both, does the arithmetic in code, and asks a person when the email itself is ambiguous.
If your team is retyping orders from email and you want to know what would actually work on your mail, start a conversation. We will usually ask for a sample of real emails and tell you honestly how much of it needs AI at all.