Sort incoming mail
Incoming mail is recognised, categorised and forwarded to the right person. Order confirmations enter the checking process.
A manufacturer of commercial doors orders from its suppliers by e‑mail and receives the order confirmations by e‑mail. Three clerks check whether the supplier understood what was ordered. From autumn 2026 the mailbox does the groundwork. Version 1 is finished and awaiting the IT provider’s sign-off.
Purchase orders go to suppliers by e‑mail. Days later the order confirmation comes back, also by e‑mail. A clerk searches for it in the mailbox, opens the purchase order next to it and compares line by line: dimensions, quantities, variants. Did the supplier understand what was ordered?
Every supplier writes its confirmation differently. Different order, own abbreviations, missing fields. The comparison takes expertise but is dull work that makes you blind over time. A 20 millimetre deviation in the door leaf width slips through easily in the third document of the day. The consequences range from rework to a door that does not fit: material, time, weeks of delay.
The business keeps working as before: ordering by e‑mail, confirmations arriving by e‑mail. In between there is now a service that reads the mailbox.
Incoming mail is recognised, categorised and forwarded to the right person. Order confirmations enter the checking process.
For every confirmation the matching purchase order is found in the order folder, whether as PDF or as an Excel file.
Purchase order and confirmation are read in a structured way: items, dimensions, quantities, variants. Even when the supplier formats differently, abbreviates or omits fields.
Line by line. The result goes to the clerk as an e‑mail with a short PDF. They decide, the system prepares.
A fixed lookup table is not enough for this many document variants. The system learns new variants itself. New suppliers are added without JMK having to step in.
The historical material was not prepared for machine learning. There was no table saying which supplier, document type, layout version and fields each document contained. The system first had to derive the structure from the history itself.
It groups related documents by layout and content, determines supplier and document variant in several passes, derives shared field structures from that and applies the right extraction per group. A different method for each step: fixed rules where the layout is stable, statistics and models where it is not. And the schema is not generated once during development. The system keeps maintaining its learned knowledge as new variants appear.
About ten years of purchase orders and confirmations, unlabelled, in changing formats.
Layout and content of every document are captured before anything is classified.
Similar documents come together by layout and content. Suppliers and their versions emerge from the data, not from a list.
In several passes the system determines who a document comes from and which version it is.
From the groups a shared field structure emerges, one that grows with new variants.
Rules where the layout is stable. Models where it is not. Items, dimensions, quantities, variants.
Whatever was extracted is checked against fixed rules: plausibility, completeness, units.
The confirmation finds its purchase order, even when the reference only sits in the e‑mail thread.
Line by line, with the value from both documents.
The clerk decides. The system prepares.
The suppliers’ codes carry expertise that was documented nowhere: which positions stand for material, climate class and fire rating is something an experienced clerk knows, but no table does. The system reconstructed that structure from the correlations in the data.
Differently per supplier: one distinguishes tubular chipboard from solid chipboard, another does not carry tubular chipboard at all, a third encodes the same property somewhere else. From these vocabularies a shared representation emerges, and only that makes the comparison possible.
The cleanest solution would have been to reorganise communication: every supplier replies to the clerk who placed the order, with a consistent reference. That is an organisational project, not a software project. So the shared mailbox stays, and the system itself recognises what kind of e‑mail it is and who is responsible.
The clerk opens one e‑mail instead of two documents. What matches is ticked off. What deviates is highlighted at the top, with the value from the purchase order and the value from the confirmation.
| Item | Order | Confirmation | Status |
|---|---|---|---|
| Door leaf, height | 2,110 mm | 2,110 mm | match |
| Door leaf, width | 880 mm | 860 mm | mismatch |
| Frame, wall thickness | 125 mm | 125 mm | match |
| Quantity | 4 | 4 | match |
Two documents that have to match, and a person who checks them: that exists in almost every business.