Your Customers Send Orders as PDFs. Stop Retyping Them — Build the Order Inbox
· AgenticLabs India
· AgenticLabs India
A customer emails a purchase order as a PDF, and someone on your team retypes every line into the billing system. In November 2026, AWS and Oldcastle APG showed the six-stage pipeline that reads those orders and enters them — with a person verifying first. This post draws it down to a one-person order inbox you can build this week.
Picture the morning in a distribution office. The inbox holds the customer purchase orders that arrived overnight — PDFs attached to emails, a few faxes, a scan or two. Somebody on the team opens each one and types it into the billing system, line by line: customer, order number, ship-to address, item, quantity, price. By lunch, some of the orders are in. By evening, the rest are in, or nearly. Tomorrow brings more.
That is the job Oldcastle APG was running before November 2026. More than 200 of its customer-service representatives entered roughly 13 million order lines a year by hand into its Infor M3 system, spending upward of four hours a day each retyping details from emailed PDFs, faxes, and scans, according to AWS and TechInformed. A mis-keyed quantity, product code, or price carried straight into fulfilment and invoicing, and backlogs delayed order confirmations.
Your business is smaller than Oldcastle's, but the shape of the work is identical. The order arrives as a document somebody else wrote. The system of record wants it as rows. The bridge between the two is a person typing — and typing is where the errors and the hours go. This post is about replacing that bridge. Not with a team of developers, and not with a new system: with an order inbox — one intake, one extraction sheet, one match step, one verify step, one learn step — that you can build this week.
One boundary first, stated plainly. This post is about the typed half of your orders: purchase orders that arrive by email as PDFs or text, which a machine can already read. The messy half — voice notes on WhatsApp, photos of handwritten lists, a customer texting a nickname for a product — belongs to the capture routine in the earlier post on this blog about orders machines cannot read. Voice and photo orders stay in that routine. They are not this inbox's job, and this post does not re-cover those steps.
In November 2026, AWS and Oldcastle APG published a production case study of the pipeline that replaced the retyping at Oldcastle, according to AWS and TechInformed (TechInformed's report is dated 16 November 2026). It has six stages, and the stages are the whole idea — each one does a small, checkable job, and the human stays in the loop at exactly one point.
Customer emails are captured — through Amazon SES and Microsoft Power Automate — and attachments are stored in S3. The pipeline reads the formats orders actually arrive in: PDF, image, HTML, and text.
Amazon Bedrock, running Claude Sonnet 4.6, reads the document and returns structured data: the customer, the PO number, the ship-to address, the line items, quantities, and pricing. Reading is not entering — this stage only turns the document into rows.
The extracted details are matched against the company's own records in Amazon Aurora PostgreSQL, using fuzzy similarity search. The order's item names are checked against the product master, so a customer's wording for a product is tied back to the company's own code for it.
A representative reviews the matched order in a dashboard, with the extracted lines shown beside the original purchase order, checking each line against ranked suggestions. This is the human step, and it is the only step where the order becomes real — nothing is entered before a person has looked at it against the original.
The confirmed order is created in Infor M3, with a full audit trail of what was entered and what was checked.
Corrections are stored and reused, and repeat orders from the same customer skip the AI step — the system already knows what that customer's order looks like.
Two details in the case study are worth pausing on, because they answer the two objections a small business owner raises first. The first objection is language: the system handles purchase orders in more than one language through the identical pipeline, with no additional configuration — French-language orders from Quebec flow through the same extraction and matching as English ones, according to AWS. The second is size: orders arrive with up to 100 line items, and the same six stages handle them.
And the scale of the build is worth stating plainly, because it punctures the idea that this is enterprise-only work: the solution was delivered in 8 weeks by a team of 2 developers and 1 architect, according to AWS. Oldcastle plans to extend the same pattern to purchase orders and delivery notes in receiving, and to auto-stage orders from major retail partners, reusing the same extraction engine. The pattern is the asset; the document type is a detail.
The case study's production numbers cover the first two weeks only — and that window matters, because two weeks is a beginning, not a track record.
| Measure | First two weeks, as reported |
|---|---|
| Orders processed | 1,100 |
| Order lines processed | More than 10,000 |
| Lines fully automated | 95% |
| Lines flagged for review | 5% |
| Manual effort redirected (estimated) | Roughly 170 hours |
In the first two weeks of production, the system processed 1,100 orders and more than 10,000 order lines; 95% of lines were fully automated in the first two weeks and the remaining 5% were flagged for review, according to AWS and TechInformed. Oldcastle estimates roughly 170 hours of manual effort was redirected to higher-value work in that window — presented here as the case study's estimate, because the case study does not explain how the figure was calculated.
Read those numbers the right way round. The 95% is what one large company measured in its first two weeks, on its own orders, with its own product master. It is not a promise, and it is not what you should expect from your inbox in week one. What the numbers do prove is narrower and more useful: the six-stage shape works in production, the 5% that needs a person is a small and manageable queue rather than a second pile of retyping, and the verify step — the person checking lines against the original — is what makes the other 95% of lines in those first two weeks trustworthy.
That is the honest comparison to carry into your own build. Your inbox will not automate 95% of lines in its first two weeks. It will do something smaller and more valuable: it will move the retyping off your team's mornings and leave them with a short list of lines to check. The test at the end of the build measures exactly that — how many lines match without correction — so you know your own number instead of borrowing Oldcastle's.
Oldcastle is a large American manufacturer. The question that matters for this blog's reader is whether the same "documents in, records out" pattern runs at Indian SMB scale. One account suggests it does — reported, not independently verified.
A consultant reports building a three-agent Claude pipeline for a chartered-accountant firm in Gurgaon: it reads vendor invoices from a shared Drive folder and posts them into Tally, according to Built With Agents (published 16 November 2026). The consultant reports about 2,047 invoices a day moving through it, with 94.3% posted without review at launch. The consultant reports an exception rate near 3.1% after prompt tuning. The page itself flags these figures as self-reported, from a client engagement the consultant ran — so treat them as one practitioner's report of what is possible, not as a benchmark.
| Oldcastle APG | Gurgaon CA firm, as reported | |
|---|---|---|
| Direction | Customer orders in | Supplier invoices in |
| Destination system | Infor M3 | Tally |
| Volume | Roughly 13 million order lines a year | About 2,047 invoices a day |
| Automated without review | 95% of lines in the first two weeks | 94.3% posted without review at launch |
| Human queue | 5% of lines flagged for review | Exception rate near 3.1% after prompt tuning |
The direction is worth noting even so: Oldcastle's pipeline takes customer orders in and enters them; the Gurgaon firm's pipeline, as the consultant reports, takes supplier invoices in and posts them. Same pattern, other direction, Indian scale — as reported, not independently verified. As reported, the two accounts agree on the shape that matters — documents arrive in a folder, a model reads them, a system of record receives them, and a small exception queue is where the humans work. That is the shape the build in the next section copies, at the size of one person's inbox.
This post serves the Business Workflow Automation solution: connecting the tools the business already uses so work flows without manual copying. The order inbox is that solution at its smallest — an email folder, a sheet, and a verify step.
Five steps, one week, and you finish with an inbox that turns emailed purchase orders into checked order rows. Do the steps in order; each states the action and what you should see when it is done. The shape is deliberately different from the last few builds on this blog: no new software to buy, no agent to schedule, no library to curate. The build is a folder, a sheet, and a routine. The reading is done by the AI tools you already have access to; the entering is done by a person, every time, until the test says otherwise.
Open your email. Make a new folder and name it Customer POs. Then make a rule so every email with a purchase-order attachment goes there automatically: in Gmail, that is Settings → See all settings → Filters and Blocked Addresses → Create a new filter, set "Has attachment" and a subject or sender condition that matches your customers' orders, and choose "Apply the label" for the new folder. In Outlook, it is Home → Rules → Create Rule, with the same condition and a "Move to folder" action.
Then tell your customers. Send one short message to the customers who order by email: "Please send all purchase orders to [your orders email address]. Orders sent anywhere else may be missed." This is not politeness — it is the intake working. An inbox only works if every order arrives in one place. Orders that arrive in a salesperson's personal inbox, or as a reply buried in an old thread, are orders the inbox never sees.
Expected result: one folder named Customer POs, filling up on its own, and no customer order arriving anywhere else. If an order still lands outside the folder this week, move it in by hand and ask that customer again — the folder is the intake, and the intake is the whole system.
Open a new spreadsheet and name it Order Inbox. Give it one tab, Extracted Orders, with these columns, in this order:
EXTRACTED ORDERS — columns, left to right
Customer | PO number | PO date | Item | Quantity | Unit price |
Line total | Ship-to | Status
Status is one of: EXTRACTED (read, not yet checked),
VERIFIED (a person confirmed it against the original),
ENTERED (in the billing system), or QUERY (something does not
match — see step 3).Now the reading itself. Open your AI tool of choice — the chatbot or document assistant you already use — and paste the starter prompt below, with the order's PDF attached. The prompt is the whole instruction; paste it exactly, replacing only the bracketed parts.
You are reading a customer purchase order. Extract every line
item into a table with exactly these columns: Customer, PO
number, PO date, Item, Quantity, Unit price, Line total,
Ship-to.
Rules:
- Copy quantities and prices exactly as written. Do not round,
do not convert units, do not guess a missing price — write
MISSING and leave the cell blank.
- Copy the item name exactly as the customer wrote it. Do not
replace it with our product name or code.
- If a line is unclear or unreadable, include it anyway and add
QUERY in a notes column with one sentence saying why.
- Do not add lines, do not drop lines, do not combine lines.Paste the extracted table into the sheet, one row per order line, with Status set to EXTRACTED. Keep the original PDF: save it in a Drive folder named PO Originals, filed by PO number, so the verify step in step 4 can open it beside the sheet.
Expected result: one sheet, one row per order line, every row EXTRACTED, and every original PDF filed where the verifier can find it in seconds. If the extraction drops a line or invents a price on the first order, do not fix the prompt yet — write down what went wrong. That note is the learn step's raw material.
Before any line is verified, match it. Open your price list and your product list — the two documents the business already has — and check each extracted line against them.
The match step is where the document library from yesterday's post on this blog would help if you built it — a current price list in one place, not three versions in Drive — but the inbox does not require it. The match step works with whatever price list you have today; if matching keeps failing because the price list is out of date, that is the price list telling you it needs updating, and the update is the fix.
Expected result: every extracted line either matches your lists or carries a QUERY note saying exactly what does not match. No line reaches the verify step unmatched. A line that cannot be matched is not a failure of the inbox — it is the inbox doing its job, catching the order that would otherwise have been typed in wrong.
This is the step the whole inbox exists for, and it is the one step that never gets automated. Open the sheet and the original PDF side by side — the PO Originals folder from step 2 — and check each line against the original, the way the Oldcastle representative checks each line against ranked suggestions in the dashboard.
When a line checks out, change its Status to VERIFIED. Only VERIFIED lines get entered into the billing system; entering is a separate act, done by the same person, from the verified sheet. When a line fails, change it to QUERY and fix it against the original — never against memory, never against what you think the customer meant.
Expected result: a sheet where every line is VERIFIED or QUERY, and nothing enters the billing system from an EXTRACTED row. The first week, verifying will feel slower than retyping — you are reading twice, once to extract and once to check. That is the point. The verify step is the only thing standing between a misread PDF and a wrong invoice, and it is fast precisely because the extraction did the typing.
Keep a second tab in the sheet, named Corrections. Every time a line needs fixing — a customer name the extractor misreads, a product the customer always calls by a nickname, a price that always arrives in a different format — write it down in one line: what the customer wrote, what it should be, and the date.
CORRECTIONS — columns, left to right
Customer wrote | It should be | Date
Example rows:
"Deluxe 500" | "Deluxe — 500 ml" | 2026-11-21
"Sharma Traders" | "Sharma Traders Pvt. Ltd." | 2026-11-21Then use it. When a repeat order arrives from the same customer, check the corrections log first: if the customer's wording is already in the log, the extraction is already known — paste the corrected row from the log instead of re-reading the PDF line by line. That is the inbox's version of Oldcastle's learn stage, where repeat orders skip the AI step: the correction, once written down, is reused instead of re-derived. The corrections log is simply the sheet where the inbox remembers what it has already learned.
Expected result: a corrections log that grows by a few rows a week and shrinks the extraction work on repeat customers. If the same correction appears three times and was never logged, the log is not being kept — and the inbox is paying the same tax three times.
The inbox is not finished when it is built. It is finished when it is measured — and the measurement uses the answer-key discipline from the earlier post on this blog about testing an AI worker before trusting it. That post is about the testing discipline itself; here the key is one step inside the inbox build, applied to one document type. This test is that discipline, used — not a new invention.
Pick 10 real past typed purchase orders — real ones, from real customers, with the original PDFs still in your email. For each one, write down the right answer first: the correct rows, as they were actually entered into the billing system. That is the answer key. Then run each order through the inbox — extract, match, verify — and count how many lines match the key without correction.
ORDER INBOX — 10-ORDER TEST
Order (PO no.) | Lines | Lines matched without correction | Lines corrected | Notes
---------------|-------|----------------------------------|-----------------|------
1 | | | |
2 | | | |
3 | | | |
4 | | | |
5 | | | |
6 | | | |
7 | | | |
8 | | | |
9 | | | |
10 | | | |
TOTAL | | | |The number that matters is the share of lines matched without correction. If it is high, the inbox is working and the verify step is a quick check. If it is low, read the Notes column: the pattern in the corrections tells you what to fix — usually the starter prompt, or the price list, or the corrections log that was never started. Fix the cause, re-run the same 10 orders, and watch the number move. Do not change the test orders to make the number look better; the test is only useful if the orders stay the same.
Expected result: a completed score sheet with a real number for your business — your own figure, not Oldcastle's 95% in its first two weeks — and a corrections log holding the fixes the test exposed. Run the test again after a month of real orders. If the number has not moved, the inbox is not learning, and the learn step is the place to look.
There is a failure mode in the inbox that the test above will not catch, and it is the most dangerous one: the check itself failing silently. A verify step that stops checking — while looking as though it still works — is worse than no verify step, because the team trusts it.
Owlab — a 15-person agency that reports running five agents on the Claude Agent SDK — reports a failure mode worth stealing as a lesson, according to Owlab. Owlab reports that an SDK update silently stopped calling their permission check. Owlab says they moved the gate into a pre-tool hook and proved it on the live SDK. Owlab reports that in six weeks the gate blocked 89 tool calls that were not allowed. Owlab reports that the figures cover 1 October to 12 November 2026, and describes the system as in daily use — the page does not establish when the system began, so this post makes no claim about that.
The lesson transfers directly to the inbox. Your verify step is a gate, and a gate needs its own test: once a month, deliberately put one wrong line into a test copy of the sheet — a quantity changed, a price altered — and check that the verifier catches it. If the wrong line sails through, the gate has failed silently, and the fix is the same as the one Owlab reports: move the check to a place where it cannot be skipped, and prove it on a live order.
A check that has never been tested is a hope, not a control.
The inbox starts with one document: typed customer purchase orders arriving by email. It earns a second document type only when the first one is measured and stable — the 10-order test passed, the corrections log working, the verify step tested. Then, and only then, consider the next document, in this order of closeness to the pattern.
The closest next step: the same shape — a document arrives, lines are extracted, matched against the order, verified against the original. Oldcastle plans the same extension, to purchase orders and delivery notes in receiving, reusing the same extraction engine.
The other direction — money going out instead of orders coming in — is the Gurgaon pattern, where a consultant reports invoices read from a Drive folder and posted into Tally. It is the same inbox with a different destination system, and it earns its place only after the order inbox is boring.
If your order volume is small — a handful of POs a week — one inbox, run by one person, is the whole system, and it stays that way. The inbox does not need to grow into a pipeline with six named stages and a dashboard. The six stages are the idea; the inbox is the smallest version of it that works. Grow it only when the exception queue — the QUERY lines — grows faster than one person can clear it in a morning.
The boundary holds at every size. Voice notes and photos of handwritten orders never enter this inbox; they belong to the capture routine that converts them to text first. The inbox reads typed documents. That limit is what keeps it simple enough to trust.
No. The inbox is an email folder, a spreadsheet, and a routine — the tools you already have. The reading is done by the AI assistant you already use; the entering is done by a person, every time. The build is one week of setting up the folder, the sheet, and the habit.
Typed customer purchase orders that arrive by email — PDFs, or text in the email itself. Voice notes, photos of handwritten lists, and orders given over the phone are out of scope for this inbox; they belong to the capture routine in the earlier post on this blog about orders machines cannot read, which converts them to text first.
That post sorts incoming supplier invoices before they are paid — money going out, sorted by urgency. This post enters incoming customer purchase orders — money coming in, extracted and matched and verified before entry. Different document, different direction, different job.
That figure is Oldcastle's, measured in the first two weeks of its production system — not a promise for your business. Your number comes from the 10-order test in this post: run 10 real past typed POs through the inbox and count the lines matched without correction. That is your figure, and it is the only one that matters.
A person on your team, every time, before anything is entered into the billing system. The extracted lines are checked against the original PDF, line by line, and only VERIFIED lines get entered. The verify step is never automated — it is the control that makes the rest trustworthy.
It is marked QUERY and never entered silently. The price list is the authority, not the customer's PDF. A price difference is a conversation with the customer, not a correction you make on their behalf.
When the order inbox is measured and stable — the 10-order test passed, the corrections log working, the verify step tested. Delivery notes are the closest next step; supplier invoices after that. If a handful of POs a week is your whole volume, one inbox is the whole system, and it stays that way.
Book a free consultation. We'll show you which of your workflows AI can take over first.