Oldcastle APGResearch Archive

Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3

ManufacturingUnstructured purchase order parsing, customer/material matching, manual review, and ERP writing for manufacturing and building materials enterprisesProduction deploymentManufacturingERPInfor M3Document intelligenceHITLOrder automationAmazon Bedrock

English original · AI translation and compilation · AI implementation (FDE not disclosed)

In-depth case · Case quick read

Case Overview

Business Problem

Multi-format orders consume about 4 hours of manual entry per CSR per day, and errors propagate to fulfillment and invoicing.

Publicly disclosed AI solutions

English original · AI translation and compilation. Oldcastle APG sends orders in emails, PDFs, scans, and other formats to Bedrock for extraction, then uses Aurora to fuzzy-match customers and materials; CSRs verify line by line before writing to Infor M3 with an audit trail retained. In the first two weeks of launch, …

Core Engineering Findings

Engineering Analysis by This Library

The order agent should stop at candidate extraction; ERP writing is handled by the state machine.

If extraction errors are written directly to the ERP, they propagate to fulfillment and invoicing.

Engineering analysis · View basis

Technical Architecture

Public solution summary

SES and Power Automate receive orders, S3 stores attachments, Bedrock/Claude extracts fields, Aurora PostgreSQL fuzzy-matches customers and materials, CSRs confirm at the verification console, and then the data is automatically written to Infor M3 with an audit trail retained; confirmed duplicate orders can bypass the …

View the complete architecture and reference data flow

Key engineering trade-offs

Engineering Analysis by This Library

Layered model extraction, master data matching, CSR verification, idempotent writing, and auditing.

Retain about 5% manual review and master data maintenance in exchange for traceable production writes.

In-depth Technical Analysis

Outcomes and Verification Boundaries

Production deployment

More than 10,000 order lines in the first two weeks; 95% fully automated; less than USD 0.04 per page; delivered in 8 weeks (disclosed by the project party).

Original text checked · Public cases · Benefits not independently accepted

Production results come from a co-authored article by AWS and the customer; field-level accuracy, order exception distribution, manual review time, and independent acceptance are not disclosed. This library did not run the system.

Complete results criteria and applicable boundaries
In-depth Technical Analysis Architecture, Trade-offs, and Transfer Conditions
01

Business Background and Process

Research Analysis

Multi-format orders consume about 4 hours of manual entry per CSR per day, and errors propagate to fulfillment and invoicing.

Role
More than 200 CSRs, the order processing team, ERP architects, AWS Solutions Architects, and business leads.
Reproduction scope
In the first stage, process only high-frequency order types; ERP writing must be controlled by verification status and idempotency keys.
  1. 1Receive emails and attachments and persist the original text.
  2. 2The model extracts order headers and line items.
  3. 3Fuzzy-match customers, addresses, SKUs, and prices using enterprise master data.
  4. 4CSRs verify low-confidence items and candidates line by line.
  5. 5After confirmation, write to Infor M3 and retain audits and corrections.

Engineering Problems and Transferable Lessons

Key Engineering Insight
Engineering ProjectionNot yet executedinsight
Special Issues
The readability of multi-format orders and the determinism requirements for customer and material master data differ.
Why Ordinary Architecture Is Not Enough
If extraction errors are written directly to the ERP, they propagate to fulfillment and invoicing.
Key technical choices
Layered model extraction, master data matching, CSR verification, idempotent writing, and auditing.
Costs and trade-offs
Retain about 5% manual review and master data maintenance in exchange for traceable production writes.
Failure conditions
Block automatic creation when there is no unique match, template drift, or a duplicate order.
Transferable experience
First run a read-only shadow evaluation with 50–100 orders.

Public materials support the problem background; technical supplements are engineering inferences by this library. Related original text:

Original disclosureSource verifiedarchitectureOriginal disclosureSource verifiedhitlOriginal disclosureSource verifiedautomation
03

Technical Architecture and Data Flow

Original text / solution listed separately

Original architecture summary

SES and Power Automate receive orders, S3 stores attachments, Bedrock/Claude extracts fields, Aurora PostgreSQL fuzzy-matches customers and materials, CSRs confirm at the verification console, and then the data is automatically written to Infor M3 with an audit trail retained; confirmed duplicate orders can bypass the model.

The six-stage process, specific AWS services, Infor M3, human review, and skipping AI for duplicate orders are disclosed in the original text; fields, states, and acceptance are recommendations from this library.

Suggested Architecture for Reproduction

The following is the research design and does not represent the complete implementation of the enterprise's internal system.

  1. 1
    Receiving and deduplication

    Idempotent input is established using email and attachment hashes.

  2. 2
    Model extraction

    Generate only field candidates, confidence, and original text locations.

  3. 3
    Master data matching

    Rank candidates using customer/material data within the validity period.

  4. 4
    Manual verification

    Low-confidence or rule-conflict items must be confirmed line by line.

  5. 5
    ERP write

    Orders can be created only in the verification-passed state, and the audit is retained.

Suggested Data and System Interfaces

Business ObjectJoin key / criteriaSuggested SourcesPurpose in the process
Original order textmessage_id、attachment_hash、page_no、languageSES/Power Automate/S3Retain immutable input.
Order fieldscustomer、po_no、ship_to、sku、quantity、price、confidenceBedrock extraction resultsGenerate structured candidates.
Enterprise master datacustomer_id、product_id、uom、price_rule、effective_atAurora/Infor M3Deterministic matching and writing.
Verification recordsreviewer、before、after、reason、approved_atVerification console/audit repositoryHITL and improvement.
04

Key design trade-offs

Research Analysis

When is the model skipped?

Suggested choice:Reuse stable mappings for confirmed templates and duplicate orders.

Basis for judgment: Reduce cost and randomness.

Costs and boundaries: Template drift detection must be maintained.

How is the ERP protected?

Suggested choice:Extraction results are not written directly; they must pass master data validation, manual confirmation, and idempotency checks.

Basis for judgment: Erroneous orders affect fulfillment and invoicing.

Costs and boundaries: Retain a certain manual cost.

Engineering Failure Conditions

Exceptions and Degradation

No unique match for customer or SKU

Show candidates and route to CSR; do not guess.

Order template drift

Degrade to manual entry and enter new template review.

Duplicate emails or retries

Block duplicate creation using attachment hashes and PO numbers.

When it is suitable for adoption, and how value is measured

Research Recommendations by This Library
Data and Organizational Prerequisites
Order samples, customer/material master data, ERP test environment, verification roles, idempotency, and auditing.
Division of labor among AI, rules and humans
The model handles multi-format extraction; retrieval/rules handle matching; humans handle exception confirmation.
Conditions not recommended for adoption
Automatic writing is not advisable when master data quality is low, the ERP has no test interface, or the original text cannot be traced.
Investment and Ongoing Costs
Continuously handle template drift, master data updates, exception classification, and manual review load.
Value and evaluation criteria
Jointly observe field correctness, straight-through rate, manual minutes, write errors, and per-page cost.
Suggested First Step
Run a read-only shadow evaluation with 50–100 orders.
Research Appendix Complete evidence, metric criteria and research materials
02

Original disclosure and evidence boundaries

Original text checked

Original title: How Oldcastle APG Automates 13 Million Order Lines with Amazon Bedrock

Original summary: English original · AI translation and compilation. Oldcastle APG sends orders in emails, PDFs, scans, and other formats to Bedrock for extraction, then uses Aurora to fuzzy-match customers and materials; CSRs verify line by line before writing to Infor M3 with an audit trail retained. In the first two weeks of launch, it processed more than 10,000 order lines, and the page reports that 95% of order lines are fully automated.

Oldcastle APG's automated order entry solution is in production; in the first two weeks it processed 1,100 orders and more than 10,000 order lines.

Original location: lines 258–266 ↗

The process receives mail via SES/Power Automate, stores in S3, extracts with Bedrock, fuzzy-matches with Aurora, writes to Infor M3 after CSR verification, and retains an audit trail.

Original location: lines 228–250 ↗

CSRs confirm customers and ranking candidates line by line at the verification console; remaining low-confidence order lines are routed to manual review.

Original location: lines 242–249, 266 ↗

The page reports that 95% of order lines are fully automated, and the remaining 5% go to CSR review.

Original location: lines 264–267 ↗

The page reports a processing cost of less than USD 0.04 per page.

Original location: lines 264–270 ↗

2 developers and 1 architect delivered the solution in 8 weeks.

Original location: lines 216, 268 ↗
Metric Definitions

More than 10,000 order lines in the first two weeks; 95% fully automated; less than USD 0.04 per page; delivered in 8 weeks (disclosed by the project party).

Disclosure Boundaries

Production results come from a co-authored article by AWS and the customer; field-level accuracy, order exception distribution, manual review time, and independent acceptance are not disclosed. This library did not run the system.

Delivery process

AI implementation (FDE not disclosed)

The main text discloses that Oldcastle collaborated with AWS Solutions Architects and does not use the term Forward Deployed Engineer; FDE should not be inferred from support roles. Delivery method basis

Delivery process verification for this case has not yet been supplemented. Existing delivery method description: The main text discloses that Oldcastle collaborated with AWS Solutions Architects and does not use the term Forward Deployed Engineer; FDE should not be inferred from support roles.

Metrics and Measurement Definitions

Retain original criteria

"Source verified" only means the public disclosure can be located; it does not mean business results have undergone independent third-party acceptance. Unknown items remain "not disclosed in the original text."

Order lines processed in the first two weeks of production

Adoption/deployment scale

>10,000 Order lines

Original disclosureSource verifiedproduction
Baseline
Manual entry
Comparison Period
First two weeks of production
Measurement Scope
1,100 orders
Limitations
Self-reported by the project party; no independent acceptance materials provided.
Source:lines 258–266

Share of fully automated order lines

Results reported by the source

95 %

Original disclosureSource verifiedautomation
Baseline
Fully manual entry
Comparison Period
First two weeks of production
Measurement Scope
Oldcastle order lines; the remaining 5% go to CSR review
Limitations
Self-reported by the project party; no independent acceptance materials provided.
Source:lines 264–267

AI processing cost

Results reported by the source

<0.04 USD/page

Original disclosureSource verifiedcost
Baseline
Not disclosed in the original text
Comparison Period
Not disclosed in the original text
Measurement Scope
Order page processing; whether manual and operations costs are included is not disclosed
Limitations
Self-reported by the project party; no independent acceptance materials provided.
Source:lines 267–270

Delivery cycle

Results reported by the source

8 weeks

Original disclosureSource verifieddelivery
Baseline
Not disclosed in the original text
Comparison Period
Solution delivery period
Measurement Scope
2 developers, 1 architect; scope boundaries not disclosed
Limitations
Self-reported by the project party; no independent acceptance materials provided.
Source:lines 216, 268

Annual manual order line volume

Adoption/deployment scale

about 13,000,000 order lines/year

Original disclosureSource verifiedproduction
Baseline
More than 200 CSRs, about 4 hours per person per day
Comparison Period
Business baseline before project launch
Measurement Scope
Oldcastle APG order entry
Limitations
Self-reported by the project party; no independent acceptance materials provided.
Source:lines 219, 223–225
Research Verification Materials

Engineering Verification Status

Type, scope, and execution are recorded separately

Verification has no automatic progression; passing limited synthetic samples does not prove the model, the complete system, or customer production acceptance. Public business outcomes are shown only according to the original evidence.

This section is an engineering reference design, and there is no end-to-end execution record in this library yet.

Test Plan · Not yet executed

Verification scope
In the first stage, process only high-frequency order types; ERP writing must be controlled by verification status and idempotency keys.
Input Data
Synthetic, public, or authorized data; specific experimental inputs are still to be prepared.
Expected output
Key fields such as amount, quantity, and SKU meet business thresholds.;No unreviewed order enters the write queue.;Duplicate orders and erroneous master data are blocked.
Actual output
Not yet executed, no actual output
Execution Time
Not yet executed; collection time is not used as a substitute
Limitations and failure notes
Phased reproduction and evaluation are planned and cannot be used to prove that an actual system is already running.
05

Phased reproduction path

The complete solution has not yet been executed

Use synthetic, public or authorized data. The following is a follow-up plan; if there is a rule check above, it only proves the samples it explicitly lists and does not mean complete reproduction has been completed.

  1. 1

    Offline extraction

    Freeze the order sample and master data, and align field by field with the original text.

    Planned deliverables:Field-level gold standard, confidence, and error types.

    Suggested acceptance conditions:Key fields such as amount, quantity, and SKU meet business thresholds.

  2. 2

    Shadow verification

    Runs in parallel with manual entry but does not write to the ERP.

    Planned deliverables:Straight-through rate, review time, and candidate ranking.

    Suggested acceptance conditions:No unreviewed order enters the write queue.

  3. 3

    Restricted write

    Release only one customer group and order type.

    Planned deliverables:Idempotency, rollback, and audit reports.

    Suggested acceptance conditions:Duplicate orders and erroneous master data are blocked.

06

Evaluation and Failure Handling

Proposed Solution to Be Verified

The evaluation targets are recommended thresholds and need to be adjusted based on risk and baseline; there are currently no measured results.

MetricsMeasurement MethodSuggested Judgment Conditions
Field-level accuracyMeasure separately by customer, SKU, quantity, and price.Key field thresholds are set by the business.
Straight-through rateCount order lines that require no manual modification.The disclosed 95% value cannot be used directly as local acceptance.
ERP write safetyCheck idempotency, permissions, audit, and rollback.Zero writes in unverified states.

Questions to confirm in the next round

  • Is the 95% automation measured by order line, by order, or by field?
  • Does the per-page cost include manual verification and operations?
  • How is template drift detected when duplicate orders skip AI?

Verification Records and Items to Be Confirmed

2026-11-14

First formal entry: check the production stage, architecture, HITL, and five categories of metrics.

The main text co-authored by AWS and Oldcastle has been checked; there is no independent acceptance.

  • AWS Solutions Architects are not equivalent to FDEs.
  • 95% is recorded by order line and is not rewritten as field accuracy.
  • Cost and delivery cycle retain undisclosed boundaries.
View all assertions · 7 items
Original disclosure · Source verified · web-7527860a6552efe4e56b832e:production

Complete assertion: Oldcastle APG's automated order entry solution is in production; in the first two weeks it processed 1,100 orders and more than 10,000 order lines.

Verification method
Original materials verification
Last Verified
2026-11-14
Applicable boundaries
Co-authored by AWS and the customer; no independent acceptance or raw logs provided.
Related cases
Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3
Source location:lines 258–266
Original disclosure · Source verified · web-7527860a6552efe4e56b832e:architecture

Complete assertion: The process receives mail via SES/Power Automate, stores in S3, extracts with Bedrock, fuzzy-matches with Aurora, writes to Infor M3 after CSR verification, and retains an audit trail.

Verification method
Original materials verification
Last Verified
2026-11-14
Applicable boundaries
Services and processes are disclosed in the official main text; configuration, permissions, and failure retry details are not disclosed.
Related cases
Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3
Source location:lines 228–250
Original disclosure · Source verified · web-7527860a6552efe4e56b832e:hitl

Complete assertion: CSRs confirm customers and ranking candidates line by line at the verification console; remaining low-confidence order lines are routed to manual review.

Verification method
Original materials verification
Last Verified
2026-11-14
Applicable boundaries
95% automation does not equal 95% field accuracy; the manual handoff criteria are not further broken down.
Related cases
Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3
Source location:lines 242–249, 266
Original disclosure · Source verified · web-7527860a6552efe4e56b832e:automation

Complete assertion: The page reports that 95% of order lines are fully automated, and the remaining 5% go to CSR review.

Verification method
Original materials verification
Last Verified
2026-11-14
Applicable boundaries
Production data is disclosed by Oldcastle; the sample period is explicitly only the first two weeks, and the statistical criteria are not public.
Related cases
Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3
Source location:lines 264–267
Original disclosure · Source verified · web-7527860a6552efe4e56b832e:cost

Complete assertion: The page reports a processing cost of less than USD 0.04 per page.

Verification method
Original materials verification
Last Verified
2026-11-14
Applicable boundaries
Not disclosed whether cloud resources, manual review, and operations are all included.
Related cases
Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3
Source location:lines 264–270
Original disclosure · Source verified · web-7527860a6552efe4e56b832e:delivery

Complete assertion: 2 developers and 1 architect delivered the solution in 8 weeks.

Verification method
Original materials verification
Last Verified
2026-11-14
Applicable boundaries
Scope start and end, prior data preparation, and AWS support hours are not disclosed.
Related cases
Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3
Source location:lines 216, 268
Engineering Projection · Not yet executed · web-7527860a6552efe4e56b832e:insight

Complete assertion: Unique engineering finding: the model is responsible only for multi-format semantic extraction, while customer/material master data matching, manual verification, and ERP writing form deterministic boundaries; duplicate orders can reuse confirmed results to skip the model.

Verification method
Original materials verification
Last Verified
2026-11-14
Applicable boundaries
This is a research judgment by this library, not a complete internal architecture replication.
Related cases
Oldcastle APG: A manual-verification closed loop from multi-format orders to Infor M3
Source location:lines 234–255

Review record: web-7527860a6552efe4e56b832e:audit:initial · Full-library review records

Original research judgment and attribution

Oldcastle's distinguishing feature is the clear boundary of "semantic extraction—master data matching—human review—ERP write," plus the use of confirmed duplicate orders to reduce subsequent model calls.

Research compilation and solution analysis: Zuren Zhao · AI-assisted compilation. Original case delivery belongs to the original enterprises and service providers.