Skip to content
Shipping AI Builds

Four things that break when moving an AI POC to production

Your weekend prototype worked perfectly on clean data. Here is what happens when real business operations hit it at scale.

An operator at a multi-monitor desk reviewing a flagged data extraction error next to a stack of shipping manifests.
Shreyansh Doshi Founder, Samvara Published Reviewed Read 6 min

What You Need to Know

To move an AI POC to production, you must shift your budget from tweaking prompts to building infrastructure. Production systems require pre-processing pipelines for messy files, human-in-the-loop triage queues for low-confidence outputs, queuing architecture for rate limits, and strict validation layers to catch silent AI errors.

At a Glance

Primary Hurdle
Unstructured B2B file ingestion
Required Architecture
Queues, pre-processors, and HITL UI
Recommended Strategy
Automate 60%, route 40% to humans
Failure Point
Trusting probabilistic outputs without hard validation

Best For

  • Operations directors trying to automate manual data entry workflows.
  • CTOs and engineering leaders transitioning AI prototypes into live B2B environments.
  • Commercial leaders evaluating whether to build or buy operational AI tools.

Not For

  • ×Consumers looking for ChatGPT prompts or personal productivity tools.
  • ×Data scientists focused purely on training foundation models.
  • ×Businesses looking for off-the-shelf, no-code SaaS tools.

Key Takeaways

  • Basic AI prototypes fail in production because they cannot handle unstructured, messy files like nested emails and blurry scans.
  • The most time-consuming part of an AI build is the human-in-the-loop triage interface, not the LLM logic.
  • Production systems require message queues to prevent API rate limits from dropping high-volume data during peak hours.
  • Do not aim for 100% automation; target the cleanest 60% of data first and route the rest to human operators.

You pasted a complex commercial invoice into a web chat interface. You wrote a quick prompt asking the model to extract line items, quantities, and totals. Two seconds later, you received a perfectly formatted JSON object. The proof of concept is a success. Management is thrilled. You estimate you can have this running across your operations by the end of the month, freeing up your data entry team for higher-value work.

Six months later, the project is abandoned in a sandbox.

This is the standard trajectory for most operational AI projects today. Getting a large language model (LLM) to perform a task once on a clean document is trivial. But dropping that capability into a live, high-volume operational environment is a software engineering problem, not a prompting exercise.

If you want to move from a toy script to a production system that processes thousands of transactions a day, you have to anticipate what breaks when theory meets real-world B2B operations. Here are the four walls your proof of concept is about to hit, and what you actually need to build to get around them.

1. The clean data fallacy shatters

When you built your prototype, you likely tested it with a digital-native PDF. The text was selectable, the tables were neatly drawn, and the layout made sense.

Real B2B data is hostile. In live operations, a "commercial invoice" is often a 50-page forwarded email chain. The actual invoice is buried on page 14 as an embedded image. It contains a blurry stamp from US Customs, handwritten notes from a receiving dock in India, and a coffee ring obscuring the purchase order number. Sometimes, the supplier sends an EML file containing a nested ZIP file containing an Excel sheet.

Your prototype assumes structured input. Production demands an aggressive pre-processing pipeline.

Before the data ever reaches an AI model, your system must:

  • Strip email signatures and irrelevant conversational text.
  • Unpack nested attachments (ZIPs, MSG files).
  • Detect file types accurately, regardless of their file extension.
  • Run optical character recognition (OCR) on image-based PDFs or flat JPEGs to extract raw text.
  • Chunk massive 100-page manifests into smaller payloads so they do not exceed the model's context window.

If you do not build this ingestion pipeline, your application will crash constantly. The AI model itself is just the engine; the pre-processing pipeline is the chassis. Without it, you are trying to drive an engine down the highway.

2. The missing fallback UI

A proof of concept usually stops at the output: the script prints the extracted data to a terminal or dumps it into a basic spreadsheet.

But what happens when the model hallucinates a currency code, reading AUD instead of USD? What happens when it extracts a quantity of 100 instead of 1,000 because of a smudge on the document? In a production environment, you cannot afford silent failures that corrupt your core database or send the wrong volume of goods across a border.

This is why internal AI workflow builds stall. Teams realize they need a way to catch edge cases, and that requires an entire user interface they did not budget for.

To safely deploy AI in a B2B setting, you must build a human-in-the-loop (HITL) triage interface. This is a custom application where:

  1. The system calculates a confidence score for its own extraction.
  2. If the score falls below a set threshold (e.g., 95%), the system holds the transaction.
  3. It routes the flagged transaction to a human operator's queue.
  4. The operator sees the original source document side-by-side with the AI's proposed data.
  5. The operator quickly corrects the error, clicks "Approve," and the data moves downstream.

Building this interface often takes more engineering hours than writing the AI logic itself. But it is non-negotiable. If operators have to dig into raw JSON logs to fix a mistake, you have degraded their workflow, not improved it.

3. The latency and rate-limit wall

During a prototype phase, you are making one API call at a time. It takes three seconds, and that feels fast.

In production, Monday morning arrives. Your European distribution center just woke up and forwarded 800 purchase orders into your processing inbox in the span of an hour. Your system tries to process them all simultaneously.

Suddenly, your API provider throws a 429 Too Many Requests error. Your system drops 600 of those orders on the floor because it has no retry mechanism. Meanwhile, the 200 orders that did get through are taking 45 seconds each to process because the model is dealing with massive token counts.

Moving an AI POC to production requires robust queuing architecture. You cannot pipe an active inbox directly into an LLM. You need an event-driven system (like AWS SQS or RabbitMQ) that acts as a shock absorber. When 800 emails arrive, they go into a queue. Workers pull from this queue at a controlled rate, respecting the API limits of your AI provider.

Furthermore, you must implement exponential backoff logic. If the API fails, the worker puts the task back in the queue and tries again in five seconds, then ten seconds, ensuring no data is ever permanently lost due to a temporary network hiccup.

4. Silent drift and model updates

Traditional software is deterministic. If you write a rule that says "extract the 10th character of this string," it will always do exactly that.

AI models are probabilistic. Even with the exact same prompt and the exact same input document, the output can vary slightly. Worse, foundation model providers (like OpenAI or Anthropic) frequently update their models behind the scenes.

You might wake up on a Tuesday to find that a prompt that worked flawlessly for three months is suddenly outputting dates in DD/MM/YYYY format instead of your required YYYY-MM-DD format. If you do not have strict validation schemas in place, this bad data will flow straight into your ERP, breaking downstream financial reporting.

When planning an AI build, you must enforce strict output constraints. Use techniques like structured JSON generation (often called function calling or tool use) to force the model to adhere to a rigid data schema.

Then, add a deterministic validation layer immediately after the AI step. If the AI outputs a date, your code must verify it is a valid date before passing it along. If the validation fails, the system routes the task to the human exception queue. You cannot trust the model to police itself.

How to actually ship the build

If you are serious about replacing manual workflows with custom AI, stop treating it like a magic trick and start treating it like standard software engineering. The core capability is solved. The challenge is building the operations wrapper around it.

For example, when automating B2B sales order entry, do not attempt to automate 100% of your incoming volume on day one. Start by automating the easiest 60%.

Build a pipeline that looks for standard PDFs from your top five, most reliable suppliers. Run those through your extraction logic. If the confidence is high and the validation checks pass, push the data straight into your ERP. For everything else—the messy scans, the weird formats, the low-confidence reads—route it to your human operators just like you always have.

As your team uses the triage interface, you will see exactly where the AI struggles. You can then adjust your pre-processing pipeline, refine your prompts, and gradually widen the aperture.

An AI tool that correctly handles 60% of your volume while safely parking the remaining 40% for human review is a massive operational win. An AI tool that attempts to handle 100% of your volume, fails silently on 5% of it, and requires developers to fix data in the database is an operational disaster.

Build the safety nets first, and the speed will follow.

Useful tool

Try Samvara's Document Readiness Checklist — Export/import docs by mode.

Quick Comparison

Component AI Proof of Concept Production AI System
Input Handling Assumes clean, single PDFs or plain text. Strips emails, unzips files, runs OCR on blurry scans.
Throughput One API call at a time; manual execution. Asynchronous queues with automated retries.
Error Resolution Fails silently or prints raw JSON error logs. Routes low-confidence scores to a human UI.
Data Validation Trusts the LLM to output correct formats. Strict code layers validate schema before saving.

Frequently Asked Questions

Why does an AI model work in testing but fail in production?
Testing usually relies on clean, isolated documents. Production involves messy real-world formats (scans, nested emails), concurrent volume that hits API rate limits, and edge cases that require human intervention.
What is a human-in-the-loop (HITL) interface?
A custom software dashboard where flagged, low-confidence AI outputs are paused so a human operator can review the source document, correct errors, and approve the data before it hits the core database.
How do you handle API rate limits when scaling AI tools?
You must implement an event-driven architecture using message queues (like SQS or RabbitMQ). This absorbs high incoming volume and processes tasks at a controlled rate to avoid errors.

Bottom line

Stop agonizing over the perfect system prompt and start building a human-in-the-loop triage interface. Deploy a pipeline that routes the cleanest 60% of data straight through while handing the messy, low-confidence edge cases to an operator for review.

How Samvara researches this guide

We write for exhibition organisers and import/export operators in Australia, the UK, Europe, the US and India. Guides favour specific, verifiable operational advice over generic tips — grounded in systems we have shipped, client workflows, and current industry practice. We revisit articles as tooling and regulations change.

Written by

Shreyansh Doshi, Founder of Samvara

Shreyansh Doshi is the founder of Samvara Technologies, a product studio building operator software and SaaS products for exhibition, import/export, travel and fitness businesses in the UK and Australia. He writes about product delivery, operations systems, and where AI does and does not belong in a real workflow.

Keep Reading

Popular in Shipping AI Builds

Guides readers open next

Free tool for this guide

Document Readiness Checklist

Export/import docs by mode — open it in your browser, no signup.

Open tool
All tools