Abstract
The manual processing of unstructured business-to-business order e-mails creates a bottleneck for selling companies. This thesis designs, implements, and evaluates a semi
automated pipeline that transforms such e-mails into verified entries in an enterprise
resource planning system. The work is a case study at the smart home company Lox
one, where these orders arrive via e-mail and are transferred manually into the ERP
system Navision. The pipeline has four stages: classification, extraction with a large
language model, validation against the company product catalog, and a Human-in-the
Loop verification interface. An order is submitted only after explicit human approval.
The evaluation uses a dataset of 100 order tickets.
Three research questions guide the study. The first compares model architectures and
prompting strategies. On this dataset, the baseline configuration is the preferable option.
It combines a cloud model with native PDF text extraction, zero-shot prompting, and
low reasoning effort, and it is the fastest variant while having the lowest measured API
cost among the cloud configurations. Few-shot prompting, chain-of-thought prompting,
and higher reasoning effort raise cost and processing time without a measurable gain
in product accuracy. Product extraction reaches an F1 score of 94%, while the delivery
address remains the limiting factor with all fields correct on 67% of tickets. Parsing PDFs
to images improves product extraction but increases input-token usage by a factor of
2.5 and roughly doubles the total API cost, and the local model is less accurate and
slower.
The second question examines the validation step. Hallucinated article numbers
proved rare: one case occurred across 4479 extracted product lines, in the local-model
run, and none in the cloud configurations. The model almost always copies identifiers
present in the document, and the output schema constrains their form. The practical
contribution of the existence check is therefore to flag article numbers that are real but
wrong, which it does reliably and without false alarms. For products referenced by name
alone, fuzzy matching identifies the correct catalog entry as the first candidate in 82.8%
of cases and among the three presented candidates in 93.8%.
The third question concerns the verification interface, a browser side panel that
presents the extracted data as editable fields next to the ticket. An expert evaluation
showed that it shifts the operator’s work from transcription to verification. It also re
vealed a risk. The operator expects the depth of the manual check to decline over time.
Across the three questions, the model and prompting strategy had a limited effect,
while the surrounding components determined whether the data could be used. Au
tomating unstructured order extraction is therefore less a matter of the language model
than of the orchestration, the integration, and the handling of practical cases.
| Date of Award | 2026 |
|---|---|
| Original language | English (American) |
| Awarding Institution |
|
| Supervisor | Andreas Stöckl (Supervisor) |
Studyprogram
- Interactive Media
Cite this
- Standard