Production Voice AI
What It Actually Takes to Deploy an AI Voice Agent Into a Live Call Center
The architecture, operational constraints, failure modes, and integration decisions that separate a production voice agent from a convincing demo.
Daniel Dayto
Enterprise Account Development at Rubrik · formerly Co-Founder & Technical Lead at Playmaker
- Published
- Reading time
- 14 min read
On This Page
The demo-to-production gap
On This Page
The demo-to-production gap
A convincing voice-agent demo takes a weekend. The agent greets the caller, answers a question about pricing, and books a fake appointment on a fake calendar. Everyone in the room hears it and concludes the technology is ready.
A production voice agent — one that answers a real business's phone line at 2 a.m., talks to a customer with water spreading across their kitchen floor, and books a real technician onto a real schedule inside ServiceTitan — operates under a completely different set of constraints. The model's conversational quality is necessary, but it is nowhere close to sufficient.
I deploy voice agents for home-service businesses at Playmaker, where one production system has handled 1,152 calls, booked 158 appointments end-to-end, and dispatched 139 jobs to technicians. This article is a field report on what actually separates those production systems from demos: the architecture around the model, the failure modes real call traffic produces, and the integration decisions that determine whether the agent creates revenue or operational damage.
The demo-to-production gap
Every gap between a demo and production is a gap between a controlled environment and an uncontrolled one. Four differences do most of the damage:
- Controlled conversations vs. unpredictable callers. Demo scripts follow the flow the builder imagined. Real callers interrupt, change their minds mid-sentence, describe three problems at once, and answer questions that weren't asked.
- Stable demos vs. tool and infrastructure failures. In a demo, the calendar lookup always returns. In production, the CRM API times out while the caller is mid-sentence, and the agent has to keep the conversation alive while deciding what to do about it.
- Generic flows vs. business-specific rules. A demo agent books anything. A real business has service areas, membership tiers, job types it won't dispatch after hours, and pricing boundaries the agent must never improvise across.
- A single successful call vs. repeatable operations. One good call proves capability. Production means every call ends in an explicit, recorded state — booked, callback scheduled, or handed to a human — day after day, without an engineer watching.
These are systems-engineering problems rather than model problems, and they define the rest of this article.
The production architecture
The system runs on two planes. A synchronous, latency-instrumented call path carries the live conversation: telephony, the voice runtime, the orchestration services that enforce business rules, and the CRM writes. An asynchronous plane underneath handles everything that must be durable but must not block a live caller: persisted booking intents, transcripts, recovery workers, and the evaluation pipeline. Every call terminates in an explicit recorded state on both planes.
The layers a demo skips entirely are the ones that carry the risk: the tool layer that makes third-party platforms behave inside a real-time conversation, and the records plane that makes every call inspectable after the fact. Booking writes are persistence-first — the intent is recorded in PostgreSQL before ServiceTitan is called, moves through an explicit state machine, and is recovered by a durable Redis Streams worker if the vendor write fails. The voice runtime itself — Twilio for telephony, OpenAI for reasoning, ElevenLabs for speech — is the most visible part of the stack and, in my experience, the part that needs the least ongoing engineering attention.
Architecture decisions that held up
Every call ends in an explicit state
Booked, callback captured, or human handoff — never "the call just ended." This one invariant makes the whole system measurable and debuggable.
Business rules live in configuration, not prompts alone
Service areas, urgency tiers, and booking criteria are per-customer configuration the orchestration layer enforces. The prompt references the rules; it is not the sole custodian of them.
The agent orchestrator owns tool invocation
FastAPI services decide when to call the CRM, with conversation state in Redis — so retries, fallbacks, and idempotency live in code that can be tested, not in model behavior that can drift.
Latency
Phone conversations have a rhythm. When the agent takes too long to respond, callers assume the line dropped, start talking again, or hang up. We treat response latency as a scored quality dimension: per-turn timings come from ElevenLabs' metrics, tool-related delays count toward them, and calls lose evaluation points past defined thresholds.
The latency that matters is perceived latency: the silence the caller experiences, not the end-to-end processing time. Three practices keep it manageable:
- Stream everything. Response generation and speech synthesis stream, so the caller hears the agent begin speaking before the full response exists.
- Acknowledge before slow work. Tool calls against a CRM are the slowest step in the pipeline. When a lookup is going to take a while, the agent says so — "let me check the schedule" — because a natural acknowledgment buys seconds of silence that would otherwise read as a dead line.
- Know when to wait silently. Constant acknowledgment is as unnatural as silence. Short operations don't need narration; the skill is matching the conversational filler to the actual expected delay.
Interruptions and turn-taking
Real callers talk over the agent. They interrupt the greeting, cut off the confirmation, and correct themselves halfway through an address. A production agent needs turn-taking behavior, not a request-response loop:
- Barge-in. When the caller starts talking, the agent stops. Callers do not tolerate being talked over, and repeated overlap ends calls.
- Partial intent. Interruptions arrive mid-utterance — the system has to decide what the caller meant from an incomplete signal, and whether to abandon or resume what it was saying.
- Caller corrections. "Actually, make that Thursday" must update the booking in flight, not create a second one.
- Long monologues. Some callers narrate the entire history of their HVAC system. The agent has to extract the schedulable problem without cutting the customer off rudely.
- No duplicate actions. The most expensive turn-taking bug: the caller interrupts during a booking confirmation, the flow restarts, and the system books twice. Action state has to survive conversational chaos.
Identity resolution
Before an agent can book anything, it has to answer a question that sounds trivial and isn't: who is calling? Every CRM separates contacts, customers, and service locations, and mapping a live caller onto that model is one of the highest-risk operations in the system.
- Phone-based lookup is the starting point, but the caller may be phoning from a new number, a spouse's phone, or the office line of a property manager.
- Address-based matching is ambiguous: units in the same building, recently sold homes, businesses with multiple locations.
- Existing customer vs. new caller changes the entire conversation — membership status, service history, and pricing all hang on getting this right.
- Contact ≠ customer ≠ service location. A tenant can call about a landlord's account for a property neither of them lives at. The agent has to hold these as separate entities the way a good CSR does.
Getting identity wrong isn't a cosmetic bug. Duplicate customer records pollute the CRM for years. A job booked against the wrong service location sends a technician to the wrong address — a real truck, real fuel, and a real customer still waiting. This is why lookup strategy deserves as much design attention as the conversation itself.
Tool failures
Third-party APIs fail while customers are on the line. The CRM times out, a token expires, a lookup returns data the flow didn't expect, or a write half-completes. The agent's behavior in these moments is where production systems earn their keep.
| Failure mode | Agent behavior |
|---|---|
| Tool timeout | Keep the conversation alive, retry within the turn budget, then degrade to callback capture |
| Authentication failure | No retry loops against a dead credential — degrade immediately and flag for operations |
| Invalid or unexpected data | Never read raw API errors to the caller; fall back to safe, human phrasing |
| Partial success | Reconcile from records — a customer record created without its booking must not strand the caller |
| Repeated failure | Stop attempting, capture a callback with full context, and record the failure category |
Three engineering properties make this tractable. Idempotency: every state-changing tool call carries a key, backed by Redis locks, so a retry after an ambiguous failure can't double-book. Persistence-first intents: the booking is recorded in our own database before the vendor is called, so a mid-call failure is something a durable stream worker recovers later rather than something that vanishes with the call. Safe fallback language: the agent has pre-designed phrasing for every failure class, because improvised model output under error conditions is where the worst transcripts come from.
async def book_appointment(call_id: str, slot: Slot, customer: CustomerRef):
# Idempotency key: a retry after an ambiguous failure
# can never create a second booking for the same call.
key = f"booking:{call_id}:{slot.id}"
try:
return await crm.create_booking(slot, customer, idempotency_key=key)
except CrmTimeout:
booking = await crm.find_booking(idempotency_key=key)
if booking: # write landed; the response didn't
return booking
raise RetryableToolFailure # orchestrator decides: retry or degradeIntent received
The caller wants a technician — the agent has a schedulable request.
Validate identity
CRM lookup
Match the caller to an existing customer and service location, or create a clean new record — never a duplicate.
Validate service area
Confirm the business actually serves this address before offering anything.
Retrieve availability
ServiceTitanFieldRoutes
Real technician availability from the dispatch system — never invented by the model.
Attempt booking
Idempotency key
Confirm details with the caller, then write to the CRM. A retry after an ambiguous failure can never double-book.
Success · retryable failure · unsupported request
Every attempt resolves to one of three states — and each state has a designed next step.
Human transfer or callback capture
Failures and out-of-scope requests end as a warm handoff or a structured callback with full context — never a dead end.
Scheduling and booking
Booking is where the agent stops being a conversation and becomes an operational actor. The sequence looks simple — check availability, confirm, book — but each step has a production constraint attached:
- 01Availability comes from the dispatch system, never the model. The agent reads technician availability from ServiceTitan or FieldRoutes in real time. A voice agent that invents a plausible-sounding time slot is the single fastest way to destroy a customer's trust in the whole deployment.
- 02Service-area validation happens before scheduling. Offering a Tuesday slot to an address the business doesn't serve wastes everyone's time in the most polite possible way.
- 03The customer confirms before the system writes. Job type, address, time window — read back and confirmed, because unwinding a wrong booking costs more than the seconds the confirmation takes.
- 04The booking is confirmed from the system of record. "You're booked" is only said after the CRM write succeeds — not when the request is sent.
- 05Callback capture is the universal fallback. When booking can't complete — no availability, failing tools, an edge case the agent shouldn't handle — the call degrades to a structured callback with full context instead of a dead end.
Human escalation
An agent that never hands off is a liability. The autonomy boundary — what the agent may do alone, and what goes to a person — was one of the first things we defined with each business during discovery, and it is enforced in the orchestration layer rather than left to the model's judgment. Transfers specifically are governed by a deterministic authorization policy the agent must consult; it ran in shadow mode against live traffic, its classifications compared with what humans actually did, before it was allowed to control an outcome:
- Explicit transfer requests. "Let me talk to a person" is honored immediately, without a retention script.
- Unsupported workflows. Billing disputes, complaints, commercial contracts — recognized and routed, not improvised.
- High-risk situations. Emergencies with safety implications follow the business's escalation rules, encoded during discovery.
- After-hours handling. Escalation targets change when the office is closed: on-call staff for genuine emergencies, structured next-morning callbacks for everything else.
- Failed-booking recovery. When the system couldn't complete a booking, the handoff carries everything the caller already said — the customer never starts over.
Observability
You cannot improve a voice agent you can't inspect. Every call produces a reviewable record: the transcript, every tool call with its inputs and outcomes, and the final call state — all in PostgreSQL, surfaced in a dashboard the operations team and I actually read.
- Transcripts answer "what did the agent actually say" — the ground truth for every complaint and every improvement.
- Tool-call logs separate conversation failures from integration failures, which have completely different fixes.
- Outcome tracking classifies every call: booked, callback, handoff, abandoned. Distribution shifts are the earliest regression signal.
- Booking dashboards and revenue attribution connect the system to the number the business owner cares about — appointments on the schedule and the revenue they represent.
- Failure categorization turns individual bad calls into ranked engineering work.
- Regression testing runs the hard scenarios — identity edge cases, tool failures, previously fixed bugs — against every prompt or rule change before it ships, and every production call is scored 0–100 on a weighted quality model. The full pipeline is documented in Building a Regression Testing Pipeline for Production AI Agents.
Post-launch review is a scheduled discipline, not an incident response. Reading production calls every week is where most of the system's real improvements came from — and it's the part of the deployment lifecycle demos never show.
Deployment model
The system ships like any production platform, because that's what it is:
- FastAPI services own agent orchestration and the tool layer, packaged in Docker and deployed on AWS.
- PostgreSQL holds call records, outcomes, and per-customer configuration; Redis holds live conversation state.
- A TypeScript / React (Next.js) dashboard provides call review and operational visibility.
- GitHub Actions runs CI/CD — automated build, test, and deploy, no hand-rolled releases.
- Multi-tenant configuration keeps each customer's service areas, business rules, and integration credentials out of code — onboarding a new business is configuration work, not a fork. This pipeline is what cut our new-tenant deployment time by 80%.
Results
A production deployment is judged by what lands on the schedule, not by demo quality. From one production deployment at Berrett Home Services, a Texas HVAC and plumbing operator, all-time since March 2026:
- 1,152
- Calls handled by AI
- Inbound customer calls answered end-to-end by the production voice agent
- 158
- Appointments booked end-to-end
- Calls where the agent completed the booking workflow directly
- 139
- Jobs dispatched to technicians
- Booked jobs fully assigned to a technician; 19 more awaiting dispatch
The chain is explicit end to end — customer call → AI conversation → appointment created → job in ServiceTitan → dispatched to a technician → job value recorded back to the original booking. That is attribution, not incrementality: the instrumentation proves the AI handled the call and booked the job, not that every dollar was revenue the business would otherwise have lost.
One attribution note, because precision matters more than a bigger number: the close-rate improvement belongs to the RAG copilot that supports human CSRs during live calls — a sibling system in the same platform, covered in its own case study — not to the autonomous voice agent. The voice agent's contribution is coverage and booked revenue: calls answered at hours no one was answering them, ending as jobs on the schedule.
Key lessons
What production voice AI actually taught me
- The model is one dependency, not the whole system. The engineering that determines success lives in telephony, orchestration, integrations, and observability.
- Business rules must be encoded explicitly. Service areas, urgency tiers, and pricing boundaries belong in enforced configuration — a prompt is a reference to the rules, not a home for them.
- Fallback behavior matters as much as the happy path. Callers judge the system by its worst thirty seconds, and the worst thirty seconds always involve a failure the demo never rehearsed.
- Production quality is a review discipline. The system improved because we read transcripts and outcomes every week, not because any single release fixed everything.
- Customer operations knowledge is part of the architecture. The discovery work — sitting with CSRs and dispatchers, extracting how the business actually qualifies and books work — is not a phase before the engineering. It is the engineering.
Conclusion
The models are genuinely good, the synthesis is natural, and a convincing prototype has never been cheaper to build. What hasn't gotten cheaper is understanding a customer's operation deeply enough to encode it, integrating with the systems that actually run the business, and engineering for the failure modes live traffic guarantees. That is deployment and systems engineering: embed in the operation, map the workflow, build the integrations, ship to production, and stay accountable to the business outcome.
The system also has real limitations worth stating. Identity resolution still produces cases that need human review; the autonomy boundary means a meaningful share of calls end in handoffs by design; and the failure taxonomy only covers failures we have actually seen. What makes the deployment trustworthy is not that these problems are solved, but that each one resolves to a recorded, reviewable state instead of disappearing into a dropped call.
About the author
Daniel Dayto
Enterprise Account Development at Rubrik · formerly Co-Founder & Technical Lead at Playmaker
Daniel Dayto works in enterprise account development at Rubrik, focused on cybersecurity and cyber resilience. Before that, he spent seven years in software engineering and technical leadership — most recently as co-founder and technical lead at Playmaker, building production voice AI for service businesses.
Related articles
Thoughts on this one?
I'm always interested in thoughtful conversations about cybersecurity, technology, and the challenges businesses face. If this sparked something — agreement, disagreement, a war story — I'd like to hear it.