AgentStashLab

I Built 10 AI Agents for Real Business Tasks — Here's Where Every Single One Broke

November 9, 2026

The Setup

Over the past year I built ten AI agents for actual paying work — lead qualification, support triage, invoice processing, and more. Every one of them worked in the demo. Every one of them broke in production, usually within the first two weeks. What follows is the honest post-mortem: what failed, what fixed it, and the checklist I now run before anything ships.

developer debugging laptop code
business workflow diagram sticky notes

The Ten Agents, and Exactly Where They Broke

1. Lead Qualification (email parsing)

Broke: The model was too agreeable. It read hopeful phrases like “we're exploring options” as budget signals and scored lukewarm leads as hot. Fix: Forced JSON output where every score must cite the exact sentence it came from, and any missing evidence becomes “unknown” instead of a guess. Anything under a set confidence threshold goes to a human queue. The scores looked less impressive and became far more useful.

2. Support Triage

Broke: It confidently answered questions outside its scope, including a refund policy we don't have. Fix: Retrieval with mandatory citations. If the agent can't point to a source doc, it sends a “let me get a human on this” template instead. The scope guardrail in the system prompt helped far less than the citation rule — instructions alone didn't stop it.

3. Invoice Processing

Broke: Two failures. It couldn't do arithmetic — line items summed wrong on multi-page invoices — and scanned PDFs produced garbled extractions. Fix: The model extracts fields; Python does all math. A vision model handles scans. A validation step compares the extracted total against the computed total and flags any mismatch. Obvious in hindsight, but I lost a weekend to it.

4. Meeting Notes → CRM

Broke: Duplicate contacts everywhere. “Mike Chen” and “Michael Chen” from different meetings became two records, each holding half the history. Fix: The agent never writes directly. It proposes changes, a matching step checks email and phone first (fuzzy name matches only flag for review), and I confirm a diff before anything commits. Slower, but the CRM stopped rotting.

5. Content Drafting

Broke: As the brand-voice prompt swelled past 2,000 words, output quality collapsed — and it once invented a product feature that doesn't exist. Fix: Split the giant prompt into a short voice guide plus a post-generation checklist every draft must pass. Facts come only from an approved fact sheet. Nothing auto-publishes; everything lands in an approval queue.

6. Competitor Monitoring

Broke: A target site redesigned its pricing page, the selectors returned nothing, and the agent “helpfully” retried all night, burning tokens on empty results. Worst part: no alert fired, because “no results” looked like success. Fix: Zero-result runs now trigger alerts, retries are capped, and raw pages get cached so I can re-parse old data when a site changes.

7. Recruiting Screener

Broke: It penalized employment gaps and applied the rubric inconsistently — the same resume scored differently on different runs. That's a legal and ethical problem, not just a bug. Fix: Structured scoring where each criterion requires a quoted reason, with names and dates stripped before the model sees the text, and a human makes every final call. I'd now argue this agent should only summarize, never rank.

8. SQL Reporting Agent

Broke: A wrong join produced a revenue number that was plausible and wrong. It sat in a dashboard for days before anyone caught it. Fix: Read-only database user, schema plus sample rows in context, and the agent must show its SQL and row counts with every answer. A second cross-check query validates headline totals. I also built a set of ~25 known-answer questions and rerun it after every prompt change.

9. Outreach Drafting

Broke: Stale CRM data made for mortifying personalization — a “congrats on your launch” referencing an event two years old. Fix: Draft-only mode with a hard rule: personalization may only use fields verified in the last 30 days, and flattery openers are banned. The agent suggests the hook; the sender owns the send.

10. The Orchestrator

Broke: My most ambitious agent — one brain deciding which tools to call — got stuck in a retry loop between two services, ran 40+ steps, and cost more in one night than a week of normal runs. It also double-executed a write action because retries weren't idempotent. Fix: Hard caps on steps and spend per run, a predefined state machine for known flows (the agent only handles exceptions), and idempotency keys on every write.

The Checklist I'd Give My Past Self

  • Loud failures beat silent wrong answers. Alert on empty outputs, zero matches, and low confidence. My worst incidents were the ones nobody noticed.
  • The model drafts; code decides. Arithmetic, deduplication, matching, and writing to systems of record belong to deterministic code. LLM output is a proposal, not a commit.
  • Structured output with an “unknown” option. Never let a model guess IDs, totals, names, or policies. An admitted gap is cheap; a confident wrong value is expensive.
  • Every write action needs a preview, a confirm, and an idempotency key. Non-negotiable after agent #10.
  • Caps everywhere: max steps, max retries, max dollars per run. Agents don't know when to stop; you have to tell them.
  • Build a 20–30 case test set before launch. Include your ugliest real examples, and rerun it after every prompt change — prompts drift more than code does.
  • Log full prompts and responses. You can't fix a failure you can't replay.
  • One job per agent. Small, chained agents failed less and were far easier to debug than every mega-prompt I tried.
  • Human gates on anything customer-facing until the agent has earned trust on your data — not on a benchmark.

The Real Lesson

Not one of these ten agents failed because the model was too dumb. They failed because I treated a probabilistic system like deterministic software — assuming it would follow instructions, do math, and stop when told. Once I moved judgment to the model and everything else to plain code, the same agents went from fragile demos to tools I actually trust. Fix the interfaces first. The prompts are the easy part.