Automatically Matching Delivery Notes and Order Confirmations
Every purchase order triggers paperwork in return. First the supplier sends an order confirmation, sometimes called an order acknowledgement. Later the goods arrive with a delivery note. Both have to agree with the order in your ERP system, and checking that by hand is slow: every supplier uses its own layout, its own item codes and, quite often, a different delivery date from the one you asked for. This guide explains how an AI agent can handle that chain and where a person should stay in charge.
What does automated confirmation matching actually do?
The agent checks each incoming confirmation and delivery note line by line against the purchase order: item, quantity, price and date. When everything matches, it records the confirmation. When something differs, it creates a task for the responsible buyer that shows the exact difference. It does not make commercial decisions on its own.
This approach suits companies that place many orders with many suppliers, where a large share of replies arrive as PDF attachments, scans or plain email text. If most of your suppliers already confirm through EDI, the gain is smaller, because there is nothing to extract.
The general groundwork of making documents readable for agents (OCR, layout detection, storage) is covered in Making Documents, PDFs and Scans Usable for AI Agents. This article is narrower: the purchasing document chain, where two document types are both checked against an order that already exists. For a wider view of where agents fit in purchasing, see AI in Procurement: Agents for Operational and Strategic Purchasing.
What your ERP already provides
Most ERP systems already model supplier confirmations. In SAP S/4HANA, a confirmation control key on the purchase order item defines which confirmations you expect from the supplier and in which sequence, and it controls which confirmation types count for MRP and goods receipt (SAP Learning, Monitoring Purchase Orders). The "Acknowledgment Required" indicator switches on monitoring and reminders, and transaction ME2A or the Fiori app "Monitor Supplier Confirmations" lists what is still open.
What the ERP will not do is read a supplier's PDF, work out which lines it refers to and type the values in. That gap is the agent's job.
Which options are there?
There are three basic routes, and most companies end up using all of them at once: structured EDI messages, fixed extraction templates per supplier, and a language model that fills a schema from any layout. Which mix makes sense depends on your supplier base. All three should feed the same matching logic and the same task list.
EDI messages
Larger suppliers often send structured data. In UN/EDIFACT, ORDRSP is the seller's response to a purchase order or an order change request (ORDRSP D08B), and DESADV carries the details of goods despatched or ready for despatch (DESADV D14B). There is nothing to read here, only something to match.
Templates per supplier
For suppliers whose layout never changes, a trained template is reliable. Microsoft Document Intelligence offers custom extraction models ("custom template" and "custom neural") but, as of November 2026, no prebuilt model for order confirmations or delivery notes (Model overview). The prebuilt invoice model lists purchase orders among its supported documents and extracts line items (Invoice data extraction), but its fields are built around invoices. Test it on your own confirmations before relying on it.
Language model with a fixed schema
A language model receives the document plus a strict output schema: order number, and per line the item code, quantity, unit, price and date. It handles a new supplier's first document without setup. The trade-off is that its output needs tougher checks, because a model may fill in an unreadable figure with something plausible instead of reporting a gap.
What should be compared, and how strictly?
Matching works on two levels: the header links the document to the right order, and the lines check its content. Every field needs an explicit tolerance agreed with purchasing and planning beforehand. Without tolerances the agent either flags everything or flags nothing, and both are useless.
Header level
- Order number: The primary key. If it is missing or mistyped, the agent can search for candidates by supplier, item codes and date, but should mark such a link as uncertain.
- Supplier: Sender address, letterhead and supplier ID should all point to the same vendor.
- Document type: Confirmation, delivery note, invoice or reminder. Misclassifying the type leads to the wrong checks.
Line level
- Item: Suppliers use their own part numbers. Mapping them to your material numbers should rely on purchasing info records or a cross-reference table, not on text similarity alone.
- Quantity and unit: Pieces versus boxes, metres versus rolls. Convert units before comparing.
- Price: Unit price, price unit (per 100?), discounts and surcharges. A small rounding tolerance is reasonable; a price increase is not.
- Date: Confirmed delivery date versus requested date. This tolerance matters most, because a slip of a few days can affect production planning.
- Partial deliveries: A delivery note often covers part of the order. The agent should carry the open quantity forward rather than report every partial shipment as a shortfall.
What happens to a mismatch
Each mismatch becomes a task with three facts: what was ordered, what was confirmed or delivered, and where in the document it appears. The buyer then accepts it, queries the supplier or alerts planning. The agent can draft the reply to the supplier, but it should not send it without approval.
How do you roll it out?
Start with a few suppliers and only order confirmations. Let the agent suggest rather than act, and measure how often its suggestions are right. Only once you know its error rate should it record matching lines in the ERP by itself. Delivery notes come second.
- Take stock: Which suppliers send how many confirmations and delivery notes, and in what form (EDI, PDF, scan, email body)? This tells you where the effort pays off.
- Agree tolerances: For quantity, price and date, together with purchasing and planning. This is a business decision, not a technical one.
- Connect the inbound channel: Usually a dedicated mailbox for confirmations that the agent reads from, which keeps the trail auditable.
- Define ERP access: Read access to orders, info records and confirmations; write access only to confirmations, and only after approval. Our overview of AI agents describes how such ERP access can be set up.
- Shadow mode: Run in parallel with manual entry for several weeks and review every difference between agent and person.
- Widen step by step: First let exact matches be recorded automatically, then add suppliers and delivery notes.
In our own operations, attaching a pointer to the exact location in the source document (page and line) to every suggestion made the biggest difference to acceptance. Buyers review a mismatch far more willingly when they do not have to hunt for it in the PDF.
Where does it usually go wrong?
Most failures happen during matching, not reading: wrong order numbers, supplier part codes, mismatched units and documents that cover several orders. On top of that comes a model risk: a language model may invent a value for a figure it cannot read instead of admitting the gap.
- Invented values: Allow the agent to return "unreadable" for any field, and check totals (line values against the document total) as a plausibility test.
- Combined confirmations: One document confirms several orders. The agent must link individual lines, not just the whole document.
- Changed orders: If the order was changed after it was sent, the agent may compare against the wrong version. It must read the current order and detect which version the supplier is confirming.
- Silent price changes: A new price list attached rather than stated per line. Only a line-level check will catch it.
- Duplicates: The same confirmation by email and again as a scan. Without a check for documents already processed, you get duplicate tasks.
- Alert fatigue: Tolerances that are too tight produce a flood of tasks nobody reads. At that point the agent does more harm than good.
When this is the wrong approach
If nearly all suppliers confirm by EDI, the confirmation monitoring in your ERP may be enough. If orders are rare and highly individual, such as one-off machinery with free-text lines, line matching is hard to automate and a person is quicker. And if your master data (info records, supplier part numbers) is patchy, fix that first.
Conclusion
Matching order confirmations and delivery notes is a well-bounded entry point for agents in purchasing. The input documents are clear, the reference values already sit in the ERP, and the output is a short task list instead of a pile of PDFs. The real work lies in tolerances, master data and reliable matching, not in reading the documents.
Start small, keep the agent in suggestion mode until you know its error rate, and widen its permissions from there. For how agents are integrated into business teams more broadly, see our overview of AI agents.
Frequently asked questions
Do I need to train a model for every supplier?
No. Language models can read layouts they have never seen. For high-volume suppliers a fixed template is still worth it, because results are more stable and easier to audit.
Should the agent post confirmations into the ERP on its own?
That depends on your tolerances and permissions. A common setup lets it post only lines that match exactly and queues everything else for approval.
What about suppliers that already send EDI?
Structured messages such as ORDRSP or DESADV need no extraction. Feeding them into the same matching step and task list still helps, because buyers then work from one queue.
Does this replace invoice matching?
No. Confirmation and delivery note checks happen before the invoice arrives. They surface problems early and give the later invoice check clean reference values.
Sources
- SAP Learning: Monitoring Purchase Orders (Purchasing in SAP S/4HANA) learning.sap.com
- UN/EDIFACT D08B ORDRSP – Purchase order response (Stedi reference) stedi.com
- UN/EDIFACT D14B DESADV – Despatch advice (Stedi reference) stedi.com
- Microsoft Learn: Document Intelligence – Document Processing Models learn.microsoft.com
- Microsoft Learn: Invoice data extraction – Document Intelligence learn.microsoft.com