Manual Orders Automation with AI
We partnered with a regional food and beverage / CPG distributor to replace a manual purchase order process with an AI system built on solid data foundations.

Meet our LoopStudio Team at Black Hat & DEFCON 2024



CLIENT & CONTEXT
Our client is a regional food and beverage / CPG distributor in the United States, with more than 350 employees, distributing products to retailers across the country. Every day, their business runs on a steady stream of purchase orders arriving by email — around 100 per day — in formats that vary widely depending on who is sending them: PDF, Excel, and different layouts for each client relationship.
CLIENT & CONTEXT
We embedded a small team, an engineering and architecture group, directly with the client’s operations and IT teams. A tech lead and two developers were responsible end to end for planning, client meetings, and the success of the project, working close enough to the client’s daily operation to understand both the technical systems and the people and workflows around them.

CLIENT & CONTEXT
Before this project, the client had 8 people working full time on a single task: reading purchase orders, extracting the fields, validating the data, and loading it manually into internal systems, every single day. It was steady, necessary work, and the only way to keep pace with growth was hiring more people to do the same manual process.
That was becoming harder to sustain. Order volume was growing faster than the team’s capacity to process it, and email had to remain the intake channel: with so many clients sending orders their own way, a shared portal made sense only in theory. Meanwhile, the cost of manual work showed up in real numbers: prices loaded incorrectly, items misidentified, orders stuck waiting on a person to catch up.

OUR APPROACH
Rather than jumping straight into building an AI system, we started by auditing the process end to end. That decision shaped the entire project: roughly 80% of the effort went into analysis, architecture, and specification, with 20% spent on execution. We validated the proposed solution against real client orders before writing the specs and plans to delegate execution to coding agents, following LoopStudio’s AI-native workflow.
The work itself moved at a deliberate pace. The team started with Sprints and moved into Kanban as the project matured, with biweekly demos to keep the client aligned on progress and frequent working sessions during the week to ground requirements while implementation was already underway. The target from the start was a system ready in two months, a tight window that shaped how the team prioritized.
Throughout, we stayed embedded in the client’s operation rather than working at a distance. Together with their team, we documented every payload, every field, and every business rule, validating real orders against the ERP until every edge case was accounted for. The UAT demo was delivered successfully, and the system moved to production from there.




THE CHALLENGE
Roughly 100 purchase orders arrive by email every day, and each client sends them their own way: PDF, Excel, a different layout depending on who is on the other end. Email had to remain the intake channel, given how many clients were already using it that way, which meant the system had to be built to make sense of that variety right at the point of intake.
The client’s ERP (Sage 300) held part of the source data and was accessible through an API. The rest of the information the project needed lived in Snowflake, the client’s analytics base. That meant consuming both sources and unifying them into a single, consistent view, which is where the sync problems showed up: the two systems didn’t always agree on the same records. On top of that, documentation was missing, and the validation logic for items, prices, and clients still needed to be defined.
Before writing a single line of automation logic, the team laid the groundwork: identifying what data actually existed and where it lived, documenting the fields that were missing, building reliable views on top of the ERP data, and defining validation rules together with the client’s own team. This is foundational data engineering work, the layer that made an AI system trustworthy enough to run in production. That sequencing mattered: automating on top of unreliable data tends to fail quietly and expensively.
From day one, the system was designed with a human in the loop: the AI handles the volume, and people step in for the exceptions that genuinely need judgment. Every order is converted into structured data with confidence intervals attached to each field, checked against the client’s own internal sources, and passed downstream. Behind that reliability sits a ground-truth evaluation suite, versioned by prompt and by model, that lets the team measure the impact of every change before it reaches production.


RESULTS & IMPACTS
More than 90% field-level accuracy, measured against a set of real orders manually verified by account managers (ground-truth evals).
Before: reading the document manually, field by field, validating it, and entering it into the processing system took 1 hour per order. Now: the system generates the order in 30 seconds and validates it. A person reviews the validations, and the system loads the order from there. Total time: 10 minutes per order.
A fraction of a cent per document to process.
The system now handles the work that used to occupy 8 people full time. That team’s time has shifted toward strengthening client relationships, work built on judgment and rapport.
WHAT WE LEARNED
The clearest lesson from this project centered on adoption. Working embedded in the client’s organization, in the style of a forward deployed engineer, is what made sure the system got used the way it was designed to be used. The technology performed as expected; success came from being inside the client’s operation, understanding the process and the data alongside the people who deal with them every day.
CURRENT STATE
The project is now in Phase 2: scaling from 50 to more than 500 clients while continuing to improve accuracy. The team is optimizing cost and speed using techniques such as prompt caching and Anthropic’s Batch API, working toward the best balance of precision, speed, and cost efficiency, alongside operational alerts and new features as the product continues to evolve.
AI Integration
Data Engineering
Backend Development
Cloud Architecture
Claude (Anthropic).
NestJS, Prisma.
React.
Microsoft Azure (App Service, Static Web Apps, Application Insights), Auth0, Entra ID.
Snowflake and the client’s ERP API (Sage 300).
If your team is ready to move from manual work to a system that scales, contact us below to get started.