Voice AI

AI Voice Agent for Amazon Connect: Architecture and Build Guide

A practical guide to building an AI voice agent on Amazon Connect — the build options, the call flow, what drives cost, and the mistakes that sink pilots.

By Naeem Akhtar · 13 min read

01

What 'AI voice agent for Amazon Connect' actually means

Amazon Connect is the contact-center layer: phone numbers, queues, routing, agent desktops and recording. An AI voice agent is a different layer that answers the call, understands what the caller wants, takes an action in a business system, and either resolves the call or hands it to a person with context. The two are designed to be combined — Connect owns the telephony, and the agent owns the conversation. If you would rather have a team build it, see our AI voice agent development service.

That split is useful when you're scoping. You are not replacing Connect; you are deciding how conversation logic is plugged into a contact flow, and how much of it you build versus configure.

02

Three ways to build it

ApproachBest forTrade-off
Connect native AI featuresStandard FAQ, status and simple self-service flows on a short timelineFastest to launch, least control over conversation logic and tool use
Amazon Lex bot + Lambda fulfilment (Bedrock for reasoning)Structured intents with some free-form understanding; teams already on LexFamiliar tooling, but turn-based; more latency and rigid intent design
Custom speech-to-speech agent (e.g. Nova Sonic) streamed from the contact flowNatural conversations, interruptions, multi-step tasks that call business systemsMost flexible and most natural; you own streaming, state, guardrails and monitoring

If the call is 'check an order status' or 'tell me opening hours', start with the simplest option that works. If the call involves intake, qualification, scheduling or any back-and-forth that depends on what the caller just said, the custom route usually pays for itself — see our write-up of a production deployment in AI Voice Agents with Amazon Connect and AWS Bedrock.

03

The call flow, end to end

  1. The caller dials a Connect number; the contact flow plays a short disclosure that the call is AI-assisted and recorded where required.
  2. The flow hands the audio stream to the agent service and passes caller metadata (number, queue, time, any CRM match).
  3. The agent converses, calling tools for lookups and actions — each tool is a Lambda or API call that validates inputs and returns structured results.
  4. On completion the agent writes structured output (a case record, a booking, a ticket) to the system of record.
  5. On low confidence, a caller request for a person, or a policy trigger, the flow transfers to a queue with the transcript and extracted fields attached.
  6. Recording and transcripts are stored for QA and audit; a sample is reviewed on a schedule.
04

Where the money goes

Cost per call has more moving parts than 'price per model token'. Plan for these line items separately so you can see which one dominates in your own traffic:

  • Connect usage — per-minute voice charges and phone number costs apply whether a human or an agent answers.
  • Model usage — audio or token consumption scales with call length, so verbose prompts and long greetings cost money on every call.
  • Integration layer — Lambda, API gateways, vector or database lookups; usually small, but chatty tool designs add latency as well as cost.
  • Escalations — every transfer consumes human agent time. A well-designed handoff (context passed, caller not asked to repeat themselves) is cheaper than a clumsy one.
  • Evaluation and monitoring — reviewing a sample of calls is an ongoing cost, and the one most often left out of the business case.

Rule of thumb

Don't optimise for containment rate on its own. A call the agent 'resolved' incorrectly costs more than a call it escalated early. Track resolution accuracy alongside containment.
05

Latency, interruptions and the things callers notice

Callers forgive a slightly synthetic voice much faster than a two-second pause. Keep the audio path short, stream rather than wait for full responses, and make sure the agent stops talking when the caller interrupts. Tool calls are the usual hidden source of delay — if a lookup takes longer than a beat, have the agent say so rather than go silent.

Test with real accents, background noise and poor mobile connections. Quiet-office demos hide most of the failures that appear on live lines.

07

Reference architecture, layer by layer

It helps to name each layer, give it exactly one job, and decide in advance how it fails. Most production incidents on voice agents come from a layer doing a second job it wasn't designed for.

LayerTypical AWS serviceResponsibilityPlan for this failure
Telephony and routingAmazon Connect (contact flows, queues)Numbers, IVR entry, queue transfer, recordingAgent service unreachable: flow must fall back to a human queue, not dead air
Audio transportConnect media streaming / Kinesis Video Streams, or a streaming integrationMoves caller audio to the agent and agent audio backPacket loss, jitter and dropped streams on mobile networks
Conversation modelBedrock (e.g. Amazon Nova Sonic for speech-to-speech) or Lex + BedrockUnderstands the caller and produces the responseSlow turns, hallucinated details, wrong language or accent handling
Tool layerLambda, API Gateway, Step FunctionsValidated actions: look up, create, schedule, transferTimeouts and partial failures; duplicate writes on retry
KnowledgeBedrock Knowledge Bases, OpenSearch or pgvectorGrounds answers in policy and FAQ contentStale or contradictory documents producing confident wrong answers
Data and auditS3, DynamoDB or RDS, CloudWatchRecordings, transcripts, structured outcomes, metricsMissing logs for the one call that later gets disputed

Whatever you choose, keep configuration outside the code path where you can: prompts, business hours, transfer destinations and per-client rules should be changeable without a redeploy, and every change should be versioned so a regression can be traced to it.

08

Cascaded pipeline or speech-to-speech?

Voice agents are built one of two ways. A cascaded pipeline chains speech-to-text, an LLM and text-to-speech. A speech-to-speech model handles audio in and audio out in a single model. Neither is universally better; the choice depends on what you need to control.

DimensionCascaded (STT + LLM + TTS)Speech-to-speech
Turn latencyAdds up across three hops; needs streaming at every stage to feel naturalLower by design; one streaming connection
Interruptions / barge-inMust be engineered between componentsHandled by the model's streaming behaviour
Control and inspectabilityHigh: you can read and edit the transcript between stagesLower: less visibility between hearing and speaking, so rely on transcripts and tool logs
Voice and tonePick any TTS voice, including custom brand voicesLimited to the model's available voices
Swapping componentsEasy: change one stage at a timeHarder: the model is the pipeline
Best forRegulated scripts, strict wording control, specialised vocabularyOpen conversation, intake and qualification, natural turn-taking

Model availability, supported languages and regions change quickly. Check current Amazon Bedrock and Amazon Connect documentation for what is available in the region where your contact center runs before committing to an approach.

09

Designing tools the agent can call

The tool layer is where an agent stops being a conversation and starts changing things in your business. Treat each tool like a public API: narrow, validated, idempotent and logged.

  • One action per tool, named for the business outcome (book_appointment, create_intake_case) rather than the technology.
  • Validate every argument server-side; never trust the model to have formatted a date, phone number or ID correctly.
  • Make writes idempotent with a call-scoped key, so a retried tool call can't create two bookings.
  • Return short, structured results and a plain-language reason on failure so the agent can recover gracefully on the call.
  • Enforce permissions and business rules here, not in the prompt. The prompt is advice; the tool is law.
  • Set a firm timeout and a spoken fallback ("One moment while I check that") so latency never becomes silence.
Example tool contract (illustrative)
{
  "name": "create_intake_case",
  "description": "Create a new intake case after the caller has confirmed their details.",
  "input_schema": {
    "type": "object",
    "required": ["caller_name", "callback_number", "matter_type", "summary", "call_id"],
    "properties": {
      "caller_name": { "type": "string" },
      "callback_number": { "type": "string", "pattern": "^\+?[0-9]{7,15}$" },
      "matter_type": { "enum": ["new_matter", "existing_matter", "other"] },
      "summary": { "type": "string", "maxLength": 600 },
      "call_id": { "type": "string", "description": "Idempotency key" }
    }
  },
  "on_error": "return { ok: false, reason } so the agent can ask again or transfer"
}
10

An intake call, turn by turn

Walking one call through the system is the fastest way to find gaps in a design. This is an illustrative after-hours intake call and what happens behind each turn.

TurnCaller saysAgent doesSystem effect
1(Call connects)Greets, discloses AI assistance and recordingContact flow starts stream; call ID created
2Describes the problem in their own wordsListens, asks one clarifying question at a timeTranscript streams to storage
3Gives name and numberReads them back to confirmFields held in session state
4Interrupts to correct a digitStops speaking, fixes the field, resumesState updated, no data loss
5Confirms everything is rightCalls create_intake_caseCase written to the system of record; confirmation returned
6Asks something outside scopeDeclines to guess, offers a human callback or transferEscalation event logged with transcript
7Ends callSummarises next steps and closesRecording, transcript and structured outcome stored
11

Metrics that tell you whether it's working

MetricHow to measure itWhy it matters
Task success rateShare of calls where the structured outcome matches what a reviewer says should have happenedThe real measure of quality; containment alone can hide wrong resolutions
Containment / escalation rateCalls fully handled vs. transferred to humansDrives cost; read it together with task success
Turn latency (p50 / p95)Time from caller finishing to agent starting to speakCallers notice the slow tail more than the average
Abandonment during agent handlingCallers who hang up before completionEarly signal of frustration or a confusing greeting
Tool error rateFailed or retried tool calls per 100 callsPoints at integration problems before callers complain
Reviewer disagreementSampled calls scored by a personCatches drift after prompt or model changes
12

Failure modes we plan for

What goes wrongWhat the caller experiencesMitigation
Noisy line or strong accent misrecognisedAgent repeats the wrong detailRead-back confirmation of names, numbers and dates; easy path to a human
Slow downstream APILong silenceTimeouts, spoken holding phrases, async follow-up
Caller asks something out of scopeConfident but invented answerGrounding in approved content; explicit 'I can't help with that, here is who can' behaviour
Duplicate tool call on retryTwo bookings or two casesIdempotency key per call and action
Prompt or model change degrades qualitySlow decline nobody noticesRegression set of real scenarios, run before every change
Distressed or urgent callerScripted response at the wrong momentEscalation triggers that route straight to a person
13

A staged rollout plan

PhaseScopeExit criteria
1. DiscoveryPick one call type; listen to real calls; define success and escalation rulesWritten success definition and baseline numbers from the current process
2. PrototypeWorking agent on a test number with mocked toolsScripted scenarios pass; stakeholders have heard and approved the voice and wording
3. Integrated pilotReal tools, after-hours or overflow traffic only, every call reviewedTask success and escalation behaviour meet the agreed bar over a meaningful sample
4. Gradual rolloutIncreasing share of live calls, sampled reviewStable metrics at each step; rollback switch tested
5. OperateMonitoring, regression suite, scheduled prompt and knowledge reviewsOwner named; change process documented
14

A pre-launch checklist

  • One call type, one definition of success, and a baseline of how humans handle it today.
  • A tested human fallback with context transfer, reachable at any point in the call.
  • Business rules enforced in code (the tool layer), not just in the prompt.
  • Call transcripts and structured outcomes logged for every call.
  • A scripted regression set of real call scenarios you re-run on every prompt or model change.
  • A staged rollout — a percentage of calls, or after-hours first — with a clear rollback switch.
15

Frequently asked questions

Can Amazon Connect use an AI voice agent?

Yes. Amazon Connect can hand a live call to a conversational AI agent through its built-in AI features, an Amazon Lex bot, or a custom agent that streams the call audio to a speech model. Connect continues to handle telephony, routing and recording while the agent handles the conversation.

Should I use Amazon Lex or a speech-to-speech model for my voice agent?

Lex works well for structured, intent-driven flows with a defined set of tasks. A speech-to-speech model handles open-ended conversation, interruptions and multi-step tasks more naturally, but you take on more engineering for streaming, state and guardrails. Choose by call complexity rather than by novelty.

How long does it take to build an AI voice agent on Amazon Connect?

A narrowly scoped agent for one call type can reach a supervised pilot in a matter of weeks. Timelines grow with the number of integrations, compliance requirements and call types. Starting with a single use case and widening is faster overall than building for every call at once.

What happens if the AI voice agent can't resolve the call?

The contact flow transfers the caller to a human queue with the transcript and extracted details attached, so the person picking up doesn't have to start over. A fallback path should be tested and available at any point in the call.

What is the difference between Amazon Connect, Amazon Lex and Nova Sonic?

Amazon Connect is the cloud contact center: numbers, routing, queues and recording. Amazon Lex is a conversational bot service built around intents and slots. Amazon Nova Sonic is a speech-to-speech foundation model on Bedrock that can hold a spoken conversation. They are often combined, with Connect as the front door and Lex or a Bedrock model providing the conversation.

How do I measure whether an AI voice agent is performing well?

Track task success (did the structured outcome match what a reviewer says should have happened), escalation rate, turn latency at p95, tool error rate and sampled reviewer disagreement. Containment rate alone can hide calls that were 'resolved' incorrectly.

Can an AI voice agent on Amazon Connect integrate with our CRM or booking system?

Yes. The agent calls tools, typically Lambda functions or API calls, that validate inputs and read or write to the CRM, scheduling or case management system. Keep business rules and permissions in that tool layer rather than in the prompt.

In production

See this in production