Skip to main content
All insights

AI agents & automation

Agents in Production: Lessons From Shipping AI Agents

Getting an AI agent into production depends less on the model than on the engineering around it: typed contracts between steps, a plan that can be checked before anything runs, a view of what the agent did, a person who approves actions that matter, and a rehearsal period before real consequences. The lessons below come from agent and automation systems we have delivered for clients, not from benchmarks.

Put a typed contract at every agent boundary

For a marketing automation vendor serving small-business owners, we built a multi-agent system that turns a goal such as “drive trial signups from the existing email list” into a complete campaign. A planner translates the goal into a typed campaign plan, and four specialist agents handle segmentation, creative, channels and optimization.

Each agent had a defined tool surface and a structured output schema, enforced by a typed layer over LangGraph. When the underlying model produced something malformed, the schema rejected it instead of passing it downstream. The first time the planner caught a broken plan before execution, it saved days of debugging that would otherwise have happened in production. Free-form text between agents is where multi-agent systems quietly go wrong.

Build the planner before the workers

We shipped the planner first because it gated everything else. A clean plan format let the executor agents run in dependency order, let us change one agent’s implementation without touching orchestration, and let the planner confirm a campaign was buildable before any agent spent tokens. Starting with the executors would have produced a tangle of interdependencies to unwind later.

Make the agent’s work visible

We added an inspection panel showing each agent’s reasoning and outputs in week eleven, after power users asked to see what the agents were doing. It turned out to be a trust feature rather than an expert feature: customers who never opened it still launched more campaigns because they knew they could. Users can approve or override any step before the plan is committed to the campaign engine.

For a direct-to-consumer brand’s sales assistant, visibility took the form of citations. Every answer was grounded in the live catalog, the help center and the visitor’s session, with links back to product pages. When the assistant lacked confidence, it escalated to human support with the full conversation and its reasoning attached, so the support agent did not start cold. Two lessons stood out: stale catalog data broke trust faster than anything else, and the escalation threshold that looked right on synthetic queries was too eager on real traffic and needed weekly tuning during the first month.

Let a person supervise, and make supervision fast

Not every production system needs full autonomy. On a field service scheduling platform for a regional utilities contractor, an optimizer proposes schedule changes continuously through the day, and dispatchers approve them in bulk or override individual assignments. Replacing the dispatchers would have lost institutional knowledge and failed on the first case the system could not handle. Making them supervisors kept judgement where it was needed.

The meeting notes platform we built for a sales-led SaaS vendor taught the same lesson about review cost. We first scoped per-task review of generated action items, then walked it back to bulk approve with one-click override, because line-by-line review erased the time the system was meant to save. Rollout widened only after the share of action items managers had to edit fell below twenty percent.

Rehearse before actions have real consequences

For a small prop trading desk, we built an execution engine on MetaTrader 5 that runs multiple strategies under a cross-strategy risk manager, which checks every order against desk-wide exposure limits. A per-strategy check alone would have produced safe individual strategies and a dangerous desk. Before going live, the engine ran in paper-trading mode for two weeks alongside the manual desk, and that period surfaced two race conditions in order acknowledgment that development testing had missed.

A pre-production checklist

  • Typed inputs and outputs at every step, validated before the next step runs.
  • A plan or proposal a person can inspect before it is executed.
  • Tool permissions limited to what the task needs, with approval gates on irreversible actions.
  • Escalation that hands over full context, with thresholds tuned on real traffic.
  • A shadow, paper or limited-traffic period before full rollout, with a measurable gate to proceed.
  • Limits that apply across the whole system, not only to each agent.

For more detail, read the multi-agent marketing automation case study or the MT5 trading bot case study. If you are moving an agent from prototype to production, we can review the design with you.

Related to this topic

FREE 30-MINUTE CONSULTATION

Bring the problem.
Leave with a plan.

A reply within one business day.
A written plan and a fixed quote.
100% of the code and IP is yours.
If AI is the wrong tool, we will say so.

Book your free consultation