Machine Learning
Amazon Lex
On the radar· Amazon Lex V1 is no longer supportedService for building conversational interfaces (chatbots) using voice and text. It combines speech recognition and natural language understanding to recognize the user's intent and fulfill it, for example by invoking an AWS Lambda function.
Exam phrases that point here
«build a voice or text chatbot with a conversational interface»
Amazon Lex is used to build bots that understand what the user says or types and hold a conversation to complete a task.
When not: If you only need to convert text to speech, the answer is Amazon Polly; if you only need to convert audio to text, Amazon Transcribe. Lex is for dialogue, not for a standalone conversion.
«recognize the user's intent and ask for the missing information»
In Lex, each action is an intent that is triggered by sample utterances, and the required data are slots that the bot asks for with prompts over several turns.
When not: If there is no conversation and you only want to classify a text (sentiment, entities), Amazon Comprehend is the fit.
«a contact center with interactive voice response that understands natural language»
Lex bots integrate into Amazon Connect Customer (formerly Amazon Connect) flows: the customer says or presses what they need, and the bot interprets it to resolve it or route the call.
When not: The contact center itself is Amazon Connect Customer; Lex provides the bot. If the requirement is to analyze calls that have already been recorded (sentiment, issues), think of Amazon Transcribe Call Analytics.
«run business logic when the conversation completes»
Lex invokes an AWS Lambda function to validate what the user says and to fulfill the request, for example saving a reservation.
When not: Lex can also return the intent and slots to the client so that the application does the work. And if the process has many steps with waits and retries, orchestration usually belongs in AWS Step Functions.
«publish the same bot on Slack, Facebook Messenger, or SMS»
A Lex bot can be published on messaging services and in mobile apps.
When not: For Alexa devices you need an Alexa skill. Exporting the bot schema to a skill was a Lex V1 feature, which stopped being supported on September 15, 2025.
Often paired with
- AWS Lambda