Skip to content
← All work
Client projectChemicals distributor

AI agents that turn emailed purchase orders into sales orders

Three agents read customer orders from email in any European language and prepare them inside the client's existing order system. A person checks and confirms each one.

Client details hidden for confidentiality and security.

  1. Email and attachments
  2. Reader agent
  3. Matcher agent
  4. Order builder
  5. Your OK
  6. Order in your system
96–100%test documents read fully correctly
~25 sto read, match and check a document
~$0.09AI cost per document
0orders created without a person's OK

The problem

The sales team typed every customer order by hand. Orders arrived as emails with PDFs, scans, photos, Excel, Word and Outlook files, in several European languages. Customers wrote things like “same as last time” or split one order across six deliveries.

What we built

A separate AI service that works beside the client’s order system. It never changes the system’s code.

  1. Reader agent. Reads the email and every attachment, and pulls out each order line. Every value keeps the text it came from and a confidence score.
  2. Matcher agent. Matches the customer, delivery and billing addresses, product, incoterm and loading point to the client’s records, using each customer’s order history. It understands “same as last time”.
  3. Order builder. Plain code, no AI. It converts units, checks dates against weekends and holidays, catches duplicate PO numbers, splits multi-delivery orders and highlights anything doubtful.
  4. Approval screen inside the existing system. Nothing becomes an order until a person confirms it.

Safety

  • The agents read the client’s database read-only and write only through the system’s own API.
  • The agent service keeps its own separate database.
  • Every value shows where it came from, so a person can check it in seconds.

Results

We tested it on 40 prepared documents, including orders with six deliveries:

  • 96–100% of documents were read fully correctly.
  • Each document took about 25 seconds.
  • The AI cost was about $0.09 per document.

Later we connected a company mailbox, so orders are read as soon as they arrive.