An order email turned into a structured sales order with a confidence score per line

AI Order Intake: From Customer Email to Sales Order in One Week

An AI pipeline that turns order emails and PDF attachments into structured sales orders, built in one week inside a manufacturer's own Azure.

OneBonsai built a working AI order-intake prototype for an industrial manufacturer in one week. It reads the order mailbox, understands free-text emails, product codes and PDF attachments, matches every line to the product catalogue and proposes a structured sales order with a confidence score on each line. Everything runs inside the client's own Azure tenant, and anything the system is unsure about is flagged for a person.

Keep this case for your review

Download the complete AI Order Intake: From Customer Email to Sales Order in One Week case as a PDF.

Download PDF

Case at a glance

Navigate the case section by section.

This map uses the published section headings below. Select a section to inspect the source detail.

Orders arrive in every possible form

Challenge

Five steps from email to order

Solution

Built inside their own Azure

Approach

People check only what is uncertain

Review

A working prototype on real data, in one week

Outcome

Challenge

The manufacturer receives its sales orders in shared mailboxes. Some are a few lines of free text, some quote product codes, some hide the real order in a PDF attachment, and some say "the same as last time". Every one of them had to be read, interpreted and retyped by hand before it became a sales order. That is slow, it depends on the people who know the catalogue by heart, and it leaves room for errors.

Challenge
“Someone had to read and retype every single order.”

Solution

We built a pipeline that takes each incoming email through five steps. It is received from the order mailbox, understood by a language model, matched line by line against the product catalogue, structured into a standard sales order and finally validated. Validation is the important part: the system shows how certain it is about every field. Where it cannot reliably determine a product or a quantity, it flags the line for a person instead of guessing.

Solution
“When it is not sure, it says so, instead of making an assumption.”

Approach

The prototype was built directly in the client's existing Azure environment, not on an outside platform. It reads the order mailbox through Microsoft Graph, uses Azure OpenAI in their own subscription, and runs the review app and storage in their own resource group, behind their own sign-in and access rules. No order data leaves their private cloud, and the step to production needs no new infrastructure.

Approach
“No outside platform. No order data leaves their environment.”

Review

A simple web app lists every processed request with its status. The detail view shows the original email and attachments side by side with the order the AI proposes, with a confidence level on every line, so a reviewer sees in seconds what to check. The system also produces a sales-order document and structured, machine-readable output, ready to be linked to the ERP.

Review

Outcome

At the end of the week the client had a working end-to-end prototype, tested on about a hundred of their own historical orders, and an honest evaluation of what already works, what does not yet, and the road to production. The next steps are a direct link to the ERP and automatic processing of the orders the system is confident about. Anything uncertain stays with a person. The same approach works for quotes, invoices, tenders and support requests.

Gallery image 1
An order email becomes a draft sales order

An order email becomes a draft sales order

Original request and AI order side by side

Original request and AI order side by side

Everything runs inside the client's Azure tenant

Everything runs inside the client's Azure tenant

“Not a slide deck: the full flow, on real data, within the week.”

For teams putting AI to work

Have a process AI should take over?

Tell us where the work piles up. We'll tell you what AI can take over, where it should run and what a first working prototype would take.

Book a 30-minute call

Frequently Asked Questions