Amazon Connect has evolved from a cloud contact centre into a full customer engagement platform — and with Amazon Lex V2 natively integrated, deploying conversational AI for first-line support is now a configuration exercise, not a science project. This guide walks through the architecture we use when helping clients stand up an AI support agent that handles chat and async messaging before escalating to humans.
The reference architecture
At a high level, the pattern looks like this:
- Inbound channel — Connect chat widget, SMS, or WhatsApp (via third-party connector) routes into a Connect contact flow
- Lex V2 bot — handles intent recognition, slot filling, and FAQ responses from a structured knowledge base
- Lambda fulfilment — executes lookups (order status, account balance) and decides whether to resolve or escalate
- Connect agent queue — receives warm handoffs with full transcript and customer context
Step 1: Map intents before you build
Before touching Lex, pull six weeks of support tickets and chat transcripts. Cluster them into 15–25 intents. In our experience, 80% of volume typically sits in fewer than ten — password resets, order tracking, billing enquiries, appointment changes. These become your Lex intents; everything else routes to a catch-all that escalates immediately.
Genesys and Webex deployments follow the same discipline: intent mapping upfront saves rework when the bot goes live and customers ask questions you didn't anticipate.
Step 2: Configure Lex V2 with Connect integration
Create a Lex V2 bot in the same AWS region as your Connect instance (critical for latency in APAC — use ap-southeast-1 for Singapore-based deployments). Enable the bot for Connect channels under Channels and communications.
For each intent, define:
- Sample utterances (at least 10–15 per intent, including Singlish and common typos for APAC audiences)
- Slot types for entities you need to collect (order ID, email, phone)
- Fulfilment: Lambda for dynamic lookups, or returning a static response for FAQs
Step 3: Build the Connect contact flow
The contact flow is where routing logic lives. A typical AI-first flow:
- Set contact attributes (customer ID from CRM if available via Lambda)
- Invoke Lex bot block — pass session attributes for context
- On
LexBotMatchwith high confidence → return response to customer - On
LexBotNoMatchtwice → transfer to agent queue with transcript - On explicit "speak to agent" intent → warm transfer with whisper to agent
# Lambda: escalation decision (simplified)
def lambda_handler(event, context):
intent = event['sessionState']['intent']['name']
if intent == 'SpeakToAgent' or event.get('escalation_flag'):
return close_with_escalation(event)
return fulfil_intent(event)
Step 4: Shadow mode before go-live
Run the bot in parallel for two weeks: customer messages go to both the AI and a human agent, but only the agent's response is sent. Compare resolution rates and identify intents where the bot would have failed. AWS Connect's contact search and Lex conversation logs make this analysis straightforward.
This is the same shadow-mode pattern we document in our AI Support Agent Quickstart use case — it de-risks go-live more than any amount of pre-launch testing.
Step 5: Tune and measure
After go-live, track:
- Containment rate — % of conversations resolved without agent
- Escalation rate by intent — which intents need more training data
- Customer effort score — post-chat survey on AI-handled sessions
- Average handle time delta — for escalated contacts, did the transcript help agents?
Plan a fortnightly tuning cycle for the first quarter. Lex V2's built-in analytics surface utterances that missed — add them as training data.
Common pitfalls
- Region mismatch — Lex bot in us-east-1, Connect in ap-southeast-1 adds 200ms+ latency per turn
- Over-automation — forcing the bot to handle complaints or billing disputes erodes trust fast
- No agent desktop context — agents who receive a cold transfer without transcript will disable the bot
- Static knowledge only — FAQs go stale; connect Lex to a live knowledge source via Lambda
What's next
Once tier-1 deflection is stable, layer in Amazon Q in Connect for agent assist, or Connect Cases for async follow-up. The architecture scales horizontally — you're not rebuilding, you're extending.
Need help scoping this for your environment? Our AI Support Agent Quickstart is a 5–7 week engagement built on exactly this pattern.



