Lex
💡 Definition
Amazon Lex is a service for building conversational interfaces into any application using voice and text. It provides the advanced deep learning functionalities of automatic speech recognition (ASR) and natural language understanding (NLU).
🔑 Key Concepts
- Chatbots: The engine behind conversational bots.
- Powers Alexa: Built on the same technology as Amazon Alexa.
- Intents: What the user wants to achieve (e.g., "BookFlight").
- Utterances: Phrases the user speaks/types (e.g., "I want to fly to NYC").
- Slots: Data needed to fulfill the intent (e.g., Destination, Date).
⚙️ How it Works
You define intents and slots. Lex parses the user's input (voice or text), identifies the intent, asks for missing information (slots), and can trigger a Lambda function to fulfill the request (e.g., update a database).
🎯 Use Cases
- Customer Service Bots: Answering FAQs or routing calls (integrates with Amazon Connect).
- Application Interface: Controlling an app via voice commands.
- Booking Systems: Automated reservation agents.
💰 Pricing Model
- Requests: Charged per speech or text request processed.
📝 Exam Tips (CLF-C02)
- Keyword: "Chatbots", "Conversational Interface", "Alexa".
- Combines ASR (Speech to Text) and NLU (Understanding meaning).