Back to results for “Lambda & Serverless”
AWS › AWS AI Services (Rekognition, Polly, Lex & Comprehend)

What is Amazon Lex and how does it enable building conversational chatbots?

Intermediate

Answer

Amazon Lex is a service for building conversational interfaces, such as chatbots and voice assistants, using the same natural language understanding and automatic speech recognition technology that powers Amazon Alexa, letting you define intents representing what a user wants to accomplish, along with sample phrases and slots for capturing specific pieces of information needed to fulfill that intent.
aws lexv2-models create-intent --bot-id abc123 --bot-version DRAFT --locale-id en_US --intent-name BookFlight --sample-utterances '[{"utterance":"I want to book a flight"}]'
Real-world example An airline builds a Lex based chatbot that understands when a customer says they want to book a flight, then guides the conversation to collect the departure city, destination, and travel date needed to complete the booking.

Common follow-ups: How does Lex integrate with Lambda to fulfill a recognized intent?;What is the difference between an intent, an utterance, and a slot in Lex?