AI order entry automation turns a customer's emailed purchase order into a draft ERP sales order in 7 steps: capture, extract, match the customer, match items and units, check price and credit, route exceptions, then write back and confirm. Microsoft's built-in Business Central agent supports up to 15 item lines per sales document; SwiftBiz builds custom pipelines for the rest.
This guide comes from how SwiftBiz designs document pipelines and from Microsoft's documentation for the Business Central Sales Order Agent, read on November 15, 2026. Below: what to prepare, the seven steps, a build-or-buy table, how to measure it, and when to skip it.
Why are distributors behind on AI order entry?
Because wholesale trade is one of the least AI-heavy industries in Canada. In Statistics Canada's table 33-10-1167-01 for the second quarter of 2026, 7.9% of wholesale businesses used AI to produce goods or deliver services in the previous 12 months (quality A, excellent), against 19.2% across all industries (A). In Ontario, the same table shows 5.4% for wholesale (B, very good) against 18.1% for all industries (A).
StatCan's June 11, 2026 analysis names wholesale (7.9%) between agriculture (4.5%) and construction (9.2%) as the industries where AI use was least prevalent. The definition is narrow (AI used "for producing goods or delivering services"). For the full table by industry and size, see AI adoption in Ontario by industry.
Order entry is a sensible first workflow: the input is repetitive, the output is structured, and every line can be checked against your customer list, item master and price lists.
What do you need before you start?
Five things, mostly data you already own:
- One orders mailbox. A shared address such as orders@, not reps' personal inboxes.
- Clean customer master data. Every account with its bill-to, ship-to addresses and the email addresses that send POs.
- A customer part-number cross-reference. The table that says customer A's "BRK-22" is your item 100457.
- Units of measure per item. Each, case, box, pallet and the conversion between them.
- ERP access for writes. An API or integration user that can create a sales order or quote, with its own permissions, so every AI-created record is traceable.
Step 1: How do you capture POs from email?
Point the orders mailbox at a capture service that saves the original email, every attachment and the message ID before anything else runs. The original is your evidence if a customer disputes an order.
Then classify each message: new PO, PO change, cancellation, or not an order. Only new POs move on automatically; changes and cancellations go to a person.
Deduplicate twice, because customers resend POs: on the message ID and attachment hash here, and on customer plus PO number once steps 2 and 3 have extracted and matched them.
Step 2: How does AI extract the purchase order?
Run the email body and the PDF or image through a document AI model and force the output into a fixed schema, so the next steps can check it field by field.
{
"customer_po_number": "4500123987",
"po_date": "2026-11-12",
"sender_email": "purchasing@example-customer.ca",
"bill_to_name": "Example Customer Ltd.",
"ship_to_address": "123 Example Rd, Mississauga ON",
"requested_date": "2026-11-20",
"currency": "CAD",
"lines": [
{
"line": 1,
"customer_part_number": "BRK-22",
"description": "Bracket, galvanized, 2 in",
"quantity": 4,
"unit": "CS",
"unit_price": 38.5
}
],
"field_confidence": { "customer_po_number": 0.98, "lines[0].quantity": 0.91 }
}Keep the model's confidence per field. It drives the exception queue in step 6. For what extraction costs per page on Amazon Textract, Azure and Google Document AI in Canadian dollars, see our document AI cost comparison.
Step 3: How do you match the PO to the right customer?
Match on more than one field. The sender's email fails on forwarded emails, new buyers and shared purchasing inboxes. Use this order:
- Sender email against the addresses on file for each account.
- Customer account number, if the PO prints one.
- Bill-to name and address against your customer master.
- If two or more accounts still match, or none does, stop and send it to a person.
Never let the AI create a new customer. A PO from an unknown sender is a sales, credit or phishing question for a human.
Step 4: How do you match customer part numbers and units of measure?
Look up each line's customer part number in your cross-reference first, then your own item number, then the manufacturer part number. A description match is a suggestion for the reviewer, never an automatic match.
Most ERPs have a place for this table. In Business Central it is item references: when a line's Item Reference No. is filled in, the customer's item description, and any unit of measure or variant code set on the reference, are copied onto the document.
Then convert units. If the customer orders 4 CS and your item is stocked in each at 12 per case, the order line is 48 each, or 4 cases, depending on how you sell it. Write the conversion rules down per item. A unit the cross-reference does not know is an exception, not a guess.
Step 5: How do you check price, stock and credit before the order exists?
Let the ERP calculate the price, then compare it with the price on the PO. Your price lists, contract prices and discounts already live there; the AI should not recalculate them.
Run three checks on every draft:
| Check | Pass | Exception |
|---|---|---|
| Price | PO price equals the ERP price, or sits inside a tolerance you set | Any line outside the tolerance |
| Availability | Stock or an available-to-promise date meets the requested date | Short, backordered, or no date |
| Credit | Account is not on hold and the order keeps it under its credit limit | Hold, overdue balance, or over the limit |
The tolerance is your business decision.
Step 6: What goes to the exception queue, and who approves?
Anything that failed a check, any field below your confidence threshold, every PO change or cancellation, and every unknown customer or item. The reviewer sees the original PDF beside the extracted values, with the failed field and the reason ("unit CS not in cross-reference for item 100457").
At launch, have a person approve every draft order. Once a month of approvals shows which order types never need a correction, let those pass straight through. How large the queue gets depends on your exception rate; our document processing accuracy guide shows the review-queue math step by step.
Log every correction: each one becomes a new cross-reference row, unit conversion or customer email address.
Step 7: How does the order get written back and confirmed?
Create the order in the ERP through its API as a draft or unreleased order, never posted, carrying the customer PO number so your team and the customer can find it. Then send an order acknowledgement from the orders mailbox: your order number, the lines as you understood them, prices, and the ship date.
The acknowledgement is your last check: a customer who sees "48 each" when they meant 48 cases replies before anything ships. Route replies back into step 1 as PO changes.
If you want this pipeline mapped onto your own ERP and PO samples, SwiftBiz's AI document processing work starts with an AI Readiness Audit at $3,500, credited toward your retainer. All SwiftBiz prices are in Canadian dollars (CAD).
Should you use Business Central's Sales Order Agent or build your own?
If you run Business Central, try Microsoft's Sales Order Agent first and build only around what it does not cover. These are the agent's documented limits in Microsoft's FAQ for the Sales Order Agent (page dated October 23, 2026, read November 15, 2026). They may change.
| Question | Sales Order Agent, as documented | Custom pipeline |
|---|---|---|
| Where email comes from | "a shared inbox on Microsoft Exchange"; other ways to receive email are not supported | Any mailbox, portal upload or EDI feed you connect |
| Attachments | Email body plus PDF or image files; PDFs "20 MB or smaller" with "a maximum of 50 pages" | Whatever your extraction model handles |
| Lines per order | "up to 15 item lines per sales document" | Set by your design and testing |
| Customer matching | Sender email against the E-Mail field on contact cards only; a forwarded email uses the forwarder's address | Any combination of fields (step 3) |
| New customers or items | Not created; a person is asked | Same rule recommended |
| Pricing | Does not provide or change prices or discounts by email; Business Central calculates them | ERP calculates; pipeline compares with the PO |
| Documents it works with | Sales quotes and sales orders; it "doesn't post documents"; Item lines only; Variant Code not supported | Any ERP your API reaches |
| Flow | Quote first, converted to an order when the customer confirms | Your choice of quote or direct order |
| Human review | Every outbound message reviewed; approval workflows can be added | Exception queue (step 6) |
| Testing Microsoft reports | "over 70 accuracy test cases" across quotes, customers, units, attachments and more | Your own test set |
Two more points from the same FAQ matter in Canada. The agent uses Azure OpenAI, which is available for Business Central "in some geographies"; elsewhere an administrator must allow data to move across geographies, so check where your environment sits before you switch it on. And it is validated in specific languages only, with mixed-language input possibly giving lower-quality output, which matters if you receive POs in French and English.
The agent bills in Copilot Credits. On Microsoft's consumption billing page, analysing an email is 2 credits, an attachment with sales data 5, an availability check 5, creating or updating a quote or order 5, and the response email 2. In this hypothetical, each emailed PO carries one PDF with sales data and follows Microsoft's typical flow of one email analysis, one availability check, one quote or order and one reply: 19 credits, so 500 such POs a month would use 9,500 credits. The billing page does not say how a later quote-to-order conversion is billed; if it counts as a create action, add 5 credits per order, plus 2 for each confirmation email the agent analyses. The billing page points to Microsoft's Copilot Studio pay-as-you-go pricing for what a credit costs.
Verdict. For a Business Central shop whose POs are mostly 15 lines or fewer, from known contacts, on standard items, the built-in agent is the natural place to start. For long POs, customer part numbers that need a cross-reference, a different ERP, EDI mixed with email, or a mailbox outside Exchange, a custom pipeline fits better.
What does the time saving look like?
Take a hypothetical distributor receiving 600 emailed POs a month, at 6 minutes of manual keying each: that is 60 hours a month. With the pipeline above, a one-minute approval on every draft plus six more minutes on each of the 150 exceptions (a 25% exception rate) comes to 25 hours, a difference of 35 hours a month.
Illustrative example. The figures show what this build is designed to achieve, not a measured client result.
Replace the keying time and the exception rate with your own: time ten real POs end to end, and test fifty historical POs before you trust any exception rate, including this one.
How do you know it's working?
Track four numbers weekly from the first day:
- Touchless rate: the share of POs that became a draft order with no correction.
- Exceptions by reason: unknown item, unit, price, credit, customer, low confidence. The top reason is your next fix.
- Line accuracy after approval: corrections found after the order was approved, which should be close to zero.
- Email-to-order time: minutes from the PO landing to the acknowledgement going out.
What usually goes wrong?
- The cross-reference is incomplete. Unknown part numbers flood the queue. Fix: build the table from last year's orders before launch.
- Forwarded POs land on the wrong account. Fix: match on more than the sender (step 3).
- Long or scanned POs. Multi-page POs with repeated headers and faint scans produce split or missing lines. Fix: compare the extracted line count and total with the PO's printed totals.
- Nobody owns the queue. Fix: a named owner and a same-day cut-off.
When is AI order entry not worth it?
- Your big customers already send EDI. Automate the email POs only if they are a real share of volume.
- You get a handful of POs a day. A person keying ten orders a day is likely cheaper than building and maintaining a pipeline.
- You sell configured products. Orders that need engineering are not data entry.
- Your item master is a mess. AI cannot match against wrong data. Clean it first.
Which approach should you choose?
- On Business Central, with short POs from known contacts: start with the Sales Order Agent and measure its exceptions for a month.
- On another ERP, or with customer part numbers, long POs, or mixed EDI and email: build the seven-step pipeline, with an approval on every draft until the numbers say otherwise.
- Either way: write down the cross-reference and unit rules first, because they decide your exception rate more than the AI model does.
For manufacturers who also distribute, see AI automation for manufacturing.