InsightsTechnical case studies

Technical case study

Process purchase orders faster, more accurately, and at lower cost.

Codex delivered an AWS-native document intelligence capability that extracts, validates and routes purchase orders at scale without changing how customers place them.

Scroll
Industry
Retail, supply chain and consumer goods
Customer objective
Reduce cost and complexity, Improve customer experience, Increase workforce productivity
Accelerators
Intelligent Document Processing
Engagement
8 weeks
Codex services
Data · AI · Cloud
Highlights

Project highlights

  • Platform cost83%lower
  • Extraction accuracyFrom55% up to 95%
  • Customer onboardingFrom 48 hours to under 1 hour
  • Purchase orders inUnder1 minute
The customer

One of Australia and New Zealand’s largest trade and building supplies organisations, supporting thousands of business customers through an extensive branch network.

Situation

Order volume was growing. The process could not scale with it.

  1. The challenge

    A significant proportion of purchase orders arrive via email from customers’ procurement systems, in varying formats, layouts and terminology. As order volumes and document complexity increased, maintaining customer-specific templates and managing exceptions became increasingly resource-intensive.

    The organisation needed a more scalable and reliable approach to order processing that would improve speed and accuracy, increase productivity and free up employees to focus on higher-value tasks.

  2. The use case at a glance
    Input
    Purchase orders submitted by customer email
    Users
    Order-processing and exception-management teams
    Process
    Ingest, extract, validate and route
    Output
    Structured and validated order information
    Scale
    Approximately 9,000 purchase orders each month
    Systems affected
    Customer email, document-processing services and the downstream order workflow
  3. What was holding it back

    Extraction and validation relied on template-based processing and specialist manual intervention. The approach was not designed to adapt to a growing number of customer-specific formats, so each new variation could mean more template maintenance or manual review.

    • 55% extraction accuracy
    • 2–3 days to onboard a new customer
    • High levels of manual handling and exception management
    • Limited workflow visibility and auditability
    • Operational dependence on specialist knowledge
    • Delays in processing and validation
    • Difficulty scaling without proportional growth in effort
  4. What had to stay the same

    Trade customers needed to keep submitting purchase orders through their existing email process.

    Adopting a new ordering channel was not an option.

  5. How success would be measured

    We agreed three areas to measure success against: business value, operational performance, and control and operation. The results are reported against the same three areas.

    • Business value
    • Operational performance
    • Control and operation
The solution

Intelligent document processing with control built in.

Codex designed and delivered an event-driven capability on AWS that receives purchase orders through the customer’s existing email channel, extracts and validates the required information, and routes each order according to its confidence and business rules.

From document to action

  1. Receive purchase orders through the existing customer email channel

  2. Securely store and digitise each document

  3. Extract the required order information from variable formats

  4. Apply field-level confidence scoring, duplicate detection and validation

  5. Route high-confidence orders for downstream processing

  6. Direct exceptions and lower-confidence outputs to people for review

  7. Record workflow state and audit evidence

  8. Monitor performance, failures and operating conditions

Customer outcomes

Lower cost. Greater accuracy. Faster processing.

The production capability improved the economics, performance and scalability of purchase-order processing while preserving the customer’s established ordering experience.

  • 83% lower platform cost compared with the previous software platform
  • Existing customer ordering behaviour retained, avoiding customer-side process change
  • Capacity to support increasing order volume without proportional infrastructure growth

  • Extraction accuracy increased from 55% to 95%
  • New-customer onboarding reduced from two to three days to under one hour
  • High-confidence purchase orders processed in under one minute
  • Approximately 9,000 purchase orders processed each month
  • Reduced manual handling and customer-specific template maintenance

  • Lower-confidence and exceptional purchase orders routed for human review
  • Duplicate detection applied before downstream submission
  • Greater traceability through workflow-state tracking and confidence evidence
  • Improved operational visibility through monitoring and alerting

  • Approximately 35,000 serverless workflow events processed each month
  • Event-driven components scale independently with processing demand
  • Infrastructure defined through AWS CDK for more consistent deployment and change
  • Processing stages separated through queues to support workflow resilience
Solution architecture

From customer email to validated order workflow on AWS.

The serverless, event-driven architecture separates ingestion, extraction, validation and routing. This allows individual components to scale and change without rebuilding the complete workflow, while keeping lower-confidence and exceptional orders within a controlled review path.

  • Automated
  • Augmented
  • Human-led
  • Supporting control
Design decisions

Technical choices connected to customer value.

Behind every solution is a set of deliberate choices. These seven shaped the outcome.

Select a decision to see its trade-off and customer value.

  1. 01

    Preserve the customer’s ordering experience

    Continue accepting purchase orders through the existing email channel.

    Why
    Customers could benefit from faster and more consistent processing without changing how they submitted orders.
    Trade-off
    Document variability is handled inside the solution, not at submission.
    Customer value
    No disruption for trade customers.
  2. 02

    Use schema-guided AI extraction instead of customer-specific templates

    Combine document digitisation with schema-guided AI extraction.

    Why
    Purchase orders varied in format, layout and terminology, so customer-specific templates were increasingly hard to maintain.
    Trade-off
    Variable AI confidence needs validation, thresholds and human review.
    Customer value
    New formats work without a template for every customer.
  3. 03

    Automate according to confidence

    Progress high-confidence orders automatically and send exceptions to people.

    Why
    A single automation rule could not safely cover every document variation and exception.
    Trade-off
    People handle uncertain cases instead of full automation.
    Customer value
    Faster processing, with oversight where judgement matters.
  4. 04

    Use serverless, event-driven processing

    Separate the workflow into asynchronous services using Amazon SQS and AWS Lambda.

    Why
    Processing stages needed to scale with volume and stay observable without continuously running infrastructure.
    Trade-off
    Distributed workflows need explicit state tracking and failure handling.
    Customer value
    Scales with volume, with less infrastructure effort and idle capacity.
  5. 05

    Deliver the infrastructure as code

    Define and deploy the AWS environment through AWS CDK.

    Why
    The solution required consistent, repeatable environments and controlled change.
    Trade-off
    Needs upfront engineering discipline, but cuts manual configuration drift.
    Customer value
    Consistent deployments with clearer control over the infrastructure.
  6. 06

    Validate before progressing

    Apply confidence scoring, duplicate detection and business-rule validation before any order reaches the downstream workflow.

    Why
    Purchase orders vary in format, quality and completeness. Letting unvalidated information progress would create downstream errors, manual rework and reduced trust in the automated pathway.
    Trade-off
    Extra validation steps, and thresholds that need ongoing tuning.
    Customer value
    Orders reaching downstream have already passed confidence, duplicate and rule checks.
  7. 07

    Make the workflow observable and traceable from the start

    Instrument workflow state, structured logging, audit evidence and monitoring as part of the initial build, not after release.

    Why
    An event-driven, serverless workflow spreads processing across independent components. Without deliberate observability, diagnosing failures, tracking the document lifecycle and demonstrating auditability would take significant retrospective effort.
    Trade-off
    A larger first release, accepted to avoid running blind in production.
    Customer value
    Teams monitor performance, trace documents and fix failures with evidence.
Responsibility by design

Automate the routine. Keep people in control of the exceptions.

Confident orders flow through on rules the business has approved. Everything else goes to a person first.

The system decides

Purchase order emails are received, stored and digitised. Order fields are extracted against a defined schema, duplicates are identified, business rules are applied and high-confidence orders are routed to the downstream order workflow.

From use case to production

Assess. Implement. Operate.

Codex worked from the purchase-order workflow and its operating and success measures, then designed, implemented and operationalised the capability on AWS.

Assess

Establish the workflow, measures and controls.

  • Understand purchase-order formats, business rules and exception pathways
  • Confirm what needed to remain unchanged for customers and processing teams
  • Define accuracy, processing, onboarding and operating measures
  • Establish human-review thresholds and target AWS architecture
Implement

Build and validate the production capability.

  • Deliver ingestion, extraction, validation and routing components
  • Integrate Amazon Textract, Amazon Bedrock and supporting AWS services
  • Test extraction quality, confidence thresholds, duplicate detection and exceptions
  • Deploy the infrastructure, monitoring and operational controls
Operate

Monitor performance and improve using production evidence.

  • Track processing, exceptions and failures
  • Monitor accuracy, latency and workflow performance
  • Refine rules and thresholds where production evidence supports change
  • Apply the proven components to additional suitable workflows where separately assessed
Behind the delivery

The people behind the work.

The three people who wrap around the customer, accountable for the relationship, the solution and the delivery.

  • Account

    Adrian Campbell

    Account lead

    Owns the overall relationship with the customer.

  • Solution

    Vikram Niranjanvel

    Solution lead

    Owns the technical decisions and the stack, and how the solution is validated.

  • Delivery

    Abhishek Gandhi

    Delivery lead

    Responsible end to end for delivering the project as agreed in the SOW and to the customer’s expectations.

Have a document-heavy workflow that is difficult to scale?

Codex can help determine whether intelligent document processing could reduce effort, improve accuracy and create measurable value within your existing workflow.