Scaling Order Processing Automation Using Modular LLM Architecture

choco · E-commerce · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: food distributor order automation

Choco needed to automate distributor order intake from unstructured channels such as email, voicemail, SMS, WhatsApp, and fax, while still identifying customer-specific products accurately enough to sync orders into ERP systems.

Constraints:

Architecture

Choco AI consolidates incoming orders into a review UI, uses multiple LLMs and ML models for task-specific steps such as transcription, correction, extraction, and product matching, displays predicted order details beside the raw input, lets distributors correct mispredictions, and feeds user/customer-success/internal-labeling corrections back into evaluation and improvement loops.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  A["Order channels"] --> B["Unified order interface"]
  B --> C["Task-specific LLM pipeline"]
  C --> D["Product matching models"]
  E["Distributor catalog"] --> D
  D --> F["Human review UI"]
  F --> G["ERP sync"]
  F --> H["Evaluation pipeline"]
  I["Internal labeling tools"] --> H
  H --> C
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Order channels Email, voicemail, SMS, WhatsApp, fax, and other unstructured order inputs. Unified order interface
Unified order interface Displays incoming orders and predicted details for review. Order channels, Task-specific LLM pipeline, Human review UI
Task-specific LLM pipeline Performs transcription, correction, and information extraction through focused model calls. Unified order interface, Product matching models
Product matching models Map extracted order details to the correct distributor catalog products and quantities. Task-specific LLM pipeline, Distributor catalog, Human review UI
Distributor catalog Customer-specific catalog and preference context used for product matching. Product matching models
Human review UI Lets customers review, edit, accept, and generate correction data. Unified order interface, Product matching models, ERP sync, Evaluation pipeline
ERP sync Writes accepted structured orders into distributor ERP systems. Human review UI
Evaluation pipeline Uses labeled examples and production-like metrics to test individual components and end-to-end changes. Human review UI, Internal labeling tools, Task-specific LLM pipeline
Internal labeling tools Collect expert labels and corrections for test datasets and model improvement. Evaluation pipeline

Data flow

Orders enter from email, voicemail, SMS, WhatsApp, or fax; the system transcribes or extracts text, identifies details such as customer, product, and quantity, matches them to distributor catalog items, presents predictions in a review UI, accepts edits, syncs approved orders to ERP, and stores corrections/labels for evaluation and future improvement.

3 supporting quotes
“Choco AI consolidates this process by directing all incoming orders into a unified interface.”article, stated
“incoming orders are displayed on the left, while our system’s predicted order details are displayed on the right.”article, stated
“Distributors can quickly review and edit mispredicted entries before clicking “Accept order” to seamlessly sync orders to their ERP system.”article, stated

Why this architecture

Choco split the workflow into narrow model responsibilities because modularity made the system easier to evaluate, debug, optimize, and scale than a single multimodal call over the whole order.

3 supporting quotes
“Breaking down problems into the smallest possible components simplifies assessment, maintenance, and scalability.”article, stated
“we chose to break this into multiple distinct model calls, each with a specific, testable responsibility—such as transcription, correction, and information extraction.”article, stated
“This modular approach allowed us to track exactly how each component contributed to the overall output”article, stated

Models used: multiple LLMs · speech-to-text models · custom ML product matching models · GPT-4o

Scale

Alternatives considered (roads not taken)

One-step multimodal model for voicemail orders

Rejected because: Choco preferred separate testable responsibilities for transcription, correction, and extraction.

“processing a voicemail order could have been handled in one step with a multimodal model. However, we chose to break this into multiple distinct model calls”article, stated

Outsource ground-truth labeling broadly

Rejected because: External agencies lacked domain expertise and produced unreliable labels for ambiguous distributor orders.

“Initially, we outsourced the task to an external agency, but the lack of domain expertise often led to unreliable results.”article, stated

Use LLMs to replace human judgment and labeling

Rejected because: Evaluator/generator automation still requires oversight and labeled-data evaluation; Choco prioritized the primary task first.

“We’ve refrained from using LLMs to replace human judgment and labeling in this area so far.”article, stated

Patterns

tool-use-orchestration (application-architecture)

Multiple model and integration steps are orchestrated to transform unstructured orders into ERP-ready structured entries.

“Our system integrates multiple LLMs and ML models, each tailored for specific tasks, to generate these predictions.”article, stated

human-in-the-loop-gate (quality-control)

Customers review and correct predicted order entries before ERP sync, especially during initial learning.

“This is why we designed our product with a human review interface for the first initial orders. Borrowing the tomato example from earlier, this review UI teaches Choco AI which tomatoes Andrea expects from the 40 different varieties the distributor offers.”article, stated

eval-driven-development (evaluation)

Component and end-to-end test datasets drive model changes, including rapid GPT-4o evaluation.

“Thorough evaluation is the cornerstone of a successful AI system deployment. Whether referred to as tests, validations, evals or evaluations, having robust test datasets for each AI or ML task has been non-negotiable for us.”article, stated

context-engineering (context-management)

The system uses personalized distributor/customer context to disambiguate vague orders like tomato requests.

“leveraging personalized data and contextual understanding to accurately identify and predict the exact product the customer expects”article, stated

Tradeoffs

Model architecture

Chose modular multi-step LLM/ML pipeline over single end-to-end multimodal model call.

Rationale: Modularity made responsibilities independently testable and easier to optimize.

“Instead, separating tasks into focused steps allowed each part to be independently optimized. In Choco AI’s case, processing a voicemail order could have been handled in one step with a multimodal model.”article, stated

Evaluation strategy

Chose large labeled test datasets and offline evaluation over online evaluation alone.

Rationale: Online evaluation was too slow or costly to rely on exclusively for iteration.

“While online evaluations can provide insights, they’re often too slow or costly to rely on exclusively. Instead, our upfront investment in accurate labeling has accelerated our ability to experiment, iterate, and improve the system’s overall performance.”article, stated

Improvement loop

Chose productized user corrections plus internal tools over manual AI-engineering intervention for every failure.

Rationale: Self-service corrections reduce disruptions as new distributors onboard weekly.

“Through building a productized feedback system (our review UI), internal labeling and training interfaces, and thorough observability, we built “self-service” error resolution and improvement mechanisms into the product, minimizing disruptions.”article, stated

Gotchas (what bit them)

Ambiguous natural-language orders need customer-specific context.

Root cause: A phrase like “2 kilos of tomatoes” can map to many brands, packages, and customer expectations.

Resolution: Use distributor catalogs, customer preference context, and product matching models.

“with 40 tomato brands and various packaging options in the distributor’s catalog, identifying the exact product can be complex.”article, stated

Labeling without domain expertise produced unreliable ground truth.

Root cause: Ambiguous speech, regional accents, and distributor-specific operations require expert judgment.

Resolution: Shift labeling toward internal Customer Success teams and internal tools.

“Today, we rely more on our internal Customer Success teams to provide us with ground truth data, as they work hand-in-hand with our customers and thus have a deep understanding of their specific operations and needs.”article, stated

Every model failure could become an engineering support ticket.

Root cause: New distributors and edge cases generate ongoing correction needs.

Resolution: Build self-service review, labeling, training, and observability mechanisms into the product.

“Without these systems, each failure could have turned into a support ticket for the AI Engineering team.”article, stated

Evaluation

Choco evaluates individual tasks and end-to-end order quality with labeled test datasets, task-specific metrics such as WER, Day-0 performance, learning-curve metrics, and customer-level edit reduction.

Metrics: word error rate · correct prediction rate · Day-0 performance · learning curve · edits required per order · manual order entry time

“For example, evaluating the transcription task for voicemail orders using metrics such as word error rate (WER) gives us a way to assess how our system may be able to process voicemail orders overall.”article, stated
“we measure two critical aspects: the ‘Day-0 performance’—the system’s baseline accuracy upon deployment’—and the ‘learning curve,’”article, stated

Outcomes

The article is a Choco engineering/product story and reports strong operational results; it is still grounded in production customer workflow rather than an independent benchmark.

“Within six months of its launch, Choco AI had not only been embraced by our customers but also became the main driver of our new revenue growth.”article, stated
“That way, we confirm that it offers measurable benefits without undermining the system's overall reliability, empowering AI engineers to deploy changes confidently.”article, stated