AI order processing
AI order processing: from emailed PO to approved sales order
We build AI agents that read the purchase orders your customers email, PDF or photograph, match every line to your products and prices, and put a draft sales order in front of a person to approve. Built for wholesalers and distributors on Xero, QuickBooks, Zoho Books, Sage or a trade portal, not for SAP.
Last updated: 13 November 2026.
AI order processing is software that reads the orders customers send by email, PDF, spreadsheet, WhatsApp or photo and turns them into draft sales orders. A language model pulls out the customer, products, quantities and prices; your own rules check each line against price lists, units and stock; and a person approves the draft before it reaches your portal, accounts or warehouse. The AI does the typing; your team keeps the decisions.
Most pages about this are written for companies running SAP, Oracle or Dynamics. This one is for wholesalers and distributors with a smaller stack: an accounting system such as Xero, QuickBooks, Zoho Books or Sage, a trade portal, and an inbox where orders pile up every morning.
It fits if your team retypes orders from email, PDF or WhatsApp into another system, and the same customers order the same kinds of products week after week. It fits less well if most orders are already placed online, or if you get a handful of orders a day and nobody minds keying them.
Coded Idea builds a lot of software for wholesale. Our trade portal runs sales and warehousing day to day for a wholesaler, and an AI order inbox is something we build on top of that portal or on top of the system you already use.
How AI order processing works, step by step
This is the flow we set up, from an emailed purchase order to an approved sales order:
- Capture. A shared mailbox (Gmail or Outlook) or a WhatsApp Business number receives the order. The agent picks up the email body and any attachment: PDF, Excel, Word or a phone photo.
- Identify the customer. Sender address first, then account number or company name on the document. A new sender is never guessed; it goes to a person.
- Extract the lines. A language model pulls out product descriptions or codes, quantities, units, prices quoted, PO number, delivery address and requested date.
- Match to your catalogue. Each line is matched against that customer's history, their own part numbers and your product list, with the unit converted to how you sell it.
- Check against rules. Price against the customer's price list, stock by warehouse, credit limit, minimum order and duplicate PO numbers.
- Draft and flag. A draft sales order is built. Each line is marked clean, check or stop.
- Approve and post. A person reviews the flags, fixes anything wrong and approves. Only then is the order created, stock reserved and the customer sent a confirmation.
Every correction in step 7 is saved to that customer's mapping, so the same mistake doesn't come back next week.

AI order processing software: three kinds of tool
People searching for "artificial intelligence order processing" or "AI sales order processing" usually mean one of three things, and they suit different businesses:
- Add-ons inside an ERP or accounting system. Cheapest to start, but they read only the formats and fields the vendor built, and rarely handle your customers' own part numbers.
- Document-capture platforms. Strong at reading PDFs and scans into fields. You still build the matching to your products, units and price lists, and the approval step.
- A custom-built agent. Reads email, PDF, Excel, WhatsApp and photo orders, matches them to your catalogue and price lists, and sends the draft to a person to approve. This is what we build, and it fits when your orders come in many layouts or your products have unusual units.
If most of your orders arrive in one fixed format from a few big customers, EDI or a portal may serve you better than any of the three.
Manual entry vs OCR templates vs AI order processing
| Manual keying | OCR with templates | AI order processing | |
|---|---|---|---|
| What it reads | Anything a person can read | Layouts it has a template for | Varied emails, PDFs, spreadsheets and photos |
| A new customer's layout | No set-up, but slow | A new template to build | Usually read first time; unknown codes flagged |
| "Same as last week plus 2 mint" | Yes, from memory | No | Drafted from the last order, flagged for a check |
| Matching to your codes and units | Staff knowledge | Separate lookup rules | Per-customer mapping that grows with each approval |
| When mistakes show up | At picking, delivery or invoice | As failed field reads | As flags on the draft, before approval |
| Main cost | Staff time on every order | Licence plus template upkeep | Build, plus model usage per document |
OCR is still useful inside an AI set-up: scanned PDFs and photos are turned into text first, and the language model works from that. The difference is the step after, where a line such as "6 x mint 10s" has to become one of your product codes in the right unit.
Accuracy and limits: where AI order processing goes wrong
These are the problems that decide whether a project works, and most vendor pages skip them.
| Problem | Example | How we handle it |
|---|---|---|
| Unit-of-measure mismatch | Customer orders "5 cases"; you sell singles, and their case is 10 but yours is 12 | Per-customer unit table; any conversion shown on the line for approval |
| Customer part numbers | The PO says "ABC-771", your code is "LQ-10-MNT" | Cross-reference table built from past orders and every approval |
| Handwritten or photographed POs | A photo of a paper order pad taken in a shop | Lower confidence by default; every line goes to a person |
| Price overrides | PO shows 3.10 a unit, price list says 3.40 | Never accepted automatically; flagged with both prices |
| Vague lines | "Same as last week plus 2 more of the mint" | Pulls the last order as a starting point and flags the change |
| Duplicates | The same PO forwarded by two people | PO number and content checked against recent orders |
| New delivery address | A branch you haven't delivered to before | Held for a person to confirm |
| Mixed languages or formats | A PO in another language, or dates written day-first vs month-first | Language and date format set per customer; anything ambiguous flagged |
For food and drink distributors, the approved order also needs the right batch picked first; see how we handle batch, expiry and recall look-ups.
What it doesn't do: it doesn't decide credit, agree prices or talk to an upset customer, and it can't read a photo nobody could read. It also needs data to match against: if your product list, price lists and customer accounts are out of date, the drafts will be too. We don't quote an accuracy figure in advance. We measure it on a week of your own orders, and our guide to AI purchase order processing accuracy shows how.
The approval screen: where a person stays in charge
The approval screen shows the original email or document on one side and the draft order on the other, line by line. Clean lines are pre-ticked. Lines needing a check show why: unit converted, price differs, low stock, or low confidence in the read.
Our rules for what never goes through without a person:
- a price different from the customer's price list
- a product or part number not seen before for that customer
- an order over the customer's credit limit
- a first order from a new sender or a new delivery address
Once the drafts prove reliable, you can decide to let clean repeat orders from named customers post straight away. That's your call, made on your own numbers, not ours.
Where the approved order lands
Xero doesn't have a separate sales order document (its users have been asking Xero for one), so for Xero users the order usually lands in a trade portal, then flows to Xero as an invoice when it ships. Where your system has sales orders, as Sage 200 and the Sage 50 editions with sales order processing do, the draft can go straight in. We connect to accounting systems such as Xero, QuickBooks, Zoho Books and Sage through their official APIs. If you want the portal as well, see our B2B ordering portal; if orders mostly arrive on WhatsApp, see WhatsApp ordering for wholesalers.
How to choose AI order processing software: 6 questions to ask
Whether you buy a product or have one built, these questions separate a demo from something your team can rely on:
- What happens to a line it can't match? It should be flagged for a person, never guessed.
- Does a person approve before anything posts? Look for an approval screen showing the original document next to the draft.
- How does it handle your units and your customers' part numbers? Ask to see the mapping table, and whether corrections are saved.
- Which of your systems does it connect to, and how? An official API for Xero, QuickBooks, Zoho Books or Sage is safer than screen scraping.
- Where is the data processed, and under what contract? Orders contain personal data; see the data protection section below.
- How is accuracy measured? On a week of your own orders, before and after, not on a sample the vendor chose.
Not sure whether you need a custom build or an existing tool? A 20-minute walkthrough with a sample of your real orders usually answers it. If your orders mostly come from a rep or a phone call, a sales rep ordering app may help more than an email inbox.
Worked example: is it worth it?
Illustrative figures only, not results from a client. A wholesaler receives 40 emailed orders a day, and keying each one takes 6 minutes: 240 minutes, or 4 hours a day.
With drafts, suppose 35 orders need only a check at 1.5 minutes each (52.5 minutes) and 5 need fixing at 6 minutes each (30 minutes). That's 82.5 minutes a day, a saving of 157.5 minutes. Over 250 working days, that's about 656 hours a year. Your own numbers will differ, which is why we measure them first.
Try it with your own numbers
Send us these numbers for a fit check
Your figures go into the message for you. Add your name and email; nothing is sent until you press send.
The calculator runs in your browser. Nothing you type is sent anywhere unless you choose to send it.
What to measure before and after
Measure these for two weeks before go-live, then again after:
- minutes from order received to order confirmed
- minutes of staff time per order
- orders keyed per person per day
- credit notes and returns caused by wrong items, quantities or prices
- share of drafts approved with no edits
- size of the exceptions queue at the end of each day
If the share of untouched drafts isn't rising after the first weeks, the mapping tables need work, and we'd rather tell you than hide it. Our guide to AI purchase order processing accuracy explains how to read these numbers and how to run a shadow pilot before go-live.
Data protection and the AI provider
Purchase orders contain personal data: buyer names, emails, phone numbers and delivery addresses. The AI provider that reads them processes that data on your behalf, so under most data-protection laws you need a written contract with it, and if it processes data in another country, the rules on cross-border transfers may apply. We set the agent up on providers' business APIs with a data processing agreement, check whether they train on your data (Anthropic, for example, states it doesn't use commercial inputs for training by default), and host the rest of the system in the region you need.
If you're in the UK
Under UK GDPR the AI provider is your processor, and the ICO is clear that processing by a processor must be governed by a contract that meets Article 28. If the provider processes data outside the UK, that's a restricted transfer and needs adequacy regulations or safeguards such as the IDTA. We can host the rest of the system in the UK or EU. Xero and Sage are the usual accounting systems for smaller wholesalers there, and both are covered above. For the rest of what we do there, see our UK wholesale ordering software page.
How pricing works for AI order processing
We don't sell AI order processing as a per-user subscription. It's a build for your customers, products and system, so the price comes after we have seen your orders:
- Fixed quote first. A 20-minute walkthrough and a sample of real orders, then a fixed quote with the full cost known before work starts.
- Published range. AI automation builds start from US$1,000 for one well-defined job, and most single-workflow builds are US$3,000–$8,000. An order inbox that reads one channel into one system is a single workflow; several inboxes, a new trade portal or a system rebuild are quoted separately.
- Running costs on their own lines. AI model usage (billed by the provider for the text it reads), hosting and any platform fees are listed separately, so you can see what grows with volume.
What moves the number most: how many order formats and customers you have, whether your system has a usable API, how many approval rules you need, and whether product mapping data already exists.
How we set it up
It starts with a 20-minute walkthrough. Bring a week of real orders, the awkward ones included. We map your customers, products, units and price lists, then agree a fixed plan and timeline. You get a fixed quote and know the full cost before work starts. Coded Idea has been building software since 2020 and works with clients worldwide; you deal directly with the people who build it, and calls and meetings can be arranged to suit you.
For other jobs worth automating, such as statements, payment chasing and stock alerts, see AI automation for business.