Problem
MTS receives 6 to 10 thousand incoming documents every day from clients and counterparties. Sorting them by hand is unrealistic, and the existing routing used filters on the counterparty's name or legal form (sole proprietor or limited liability company). The files come in different types and formats, often with uninformative sender names or missing metadata, so some letters got lost. The team needed routing by what the document actually is.
Example from the article: an official letter or request arrives in the organization's mailbox at the electronic document flow (EDO) operator among invoices and contracts. It has to reach the registrar in the document-flow department without anyone scrolling the whole feed.
Solution in brief
Document type became the main routing criterion. A service watches the mailbox, a text classifier determines the type with a confidence score, and a message broker notifies every subscriber of that type. The team chose a trained ML classifier over a general LLM for production and used the LLM to check the training labels.
Questions this case answers
- How to route a high-volume stream of incoming files to the right recipient by content type when sender-based rules and metadata are unreliable
- How to build a labeled dataset for a text classifier with a draft labeling, an LLM check for label errors and a final expert review
- How to route thousands of incoming business documents a day to the right department when sender names and metadata are uninformative?
- How to choose between a trained classifier and an LLM for document-type classification inside a closed corporate perimeter?
Tools and methods
- Text classifier on document types — trained on a dataset the team collected and labeled itself.
- Text extraction with OCR and preprocessing — turns files into cleaned, normalized text before classification.
- LLM as a label checker — runs over document texts to find labeling errors before training.
- Message broker — delivers the classified document to subscribers (EDMS, CRM, ERP, software robots).
Google or a one-time email code. No password.