AWS · Machine Learning
Amazon Lex
Build conversational chatbots and voice bots with natural language understanding and speech recognition.
What it is and what problem it solves
Amazon Lex (V2) builds conversational interfaces for text and voice. You define intents (what the user wants), slots (the details to collect) and sample utterances; Lex handles speech recognition and natural language understanding, and calls Lambda for business logic. It integrates with Amazon Connect for contact centres.
When to use it
- Customer service chatbots and voice assistants in contact centres.
- Self-service flows such as booking, order status or password resets.
When to avoid it
- Open-ended conversations without defined intents: generative AI assistants may fit better.
- Text-to-speech only: Polly.
Cost model
What you pay for
Billed per text or speech request processed, with separate rates for streaming conversations.
Where it is cost-efficient
High-volume, well-defined self-service flows that replace agent time.
Where costs grow
Very long voice conversations.
Cost controls and common surprises
Keep flows short and hand off to people when needed.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Encryption in transit and at rest, IAM permissions on every API, and VPC endpoints for private access.
What you configure
Grant least-privilege access, encrypt inputs and outputs in S3 with KMS where required, and review how data you send may be used, including any opt-out settings that apply to your organisation.
Logging and monitoring
CloudTrail records API calls; CloudWatch metrics show usage and errors.
Related security services
IAM, KMS, S3, VPC endpoints, Organizations (AI services opt-out policies).
Shared responsibility
AWS runs and secures the models and service. You control the data you send, who can call the service, and how results are used.
Common service combinations
Lambda fulfilment, Amazon Connect contact centres, Polly voices.
Business application examples
- A bank's phone line uses Lex to authenticate callers and answer balance questions before routing to agents.
Exam cues and common confusions
- Chatbot or voice bot with intents: Lex. Text to speech: Polly. Speech to text: Transcribe.
Related
Courses and lessons
- AI and machine learning services · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- AWS Lambda · Service
- Amazon Polly · Service
- Amazon Transcribe · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.