Like coffee? Or just want to build a bot that can take your order? Come learn how to build a chatbot using Amazon Lex and AWS Lambda. And if you’re up for it, bring a cable and a mobile device so you can see how easy it is to make a real app that talks back using AWS Mobile Hub.
4. Amazon Lex – Use Cases
Informational Bots
Chatbots for everyday consumer requests
Application Bots
Build powerful interfaces to mobile applications
• News updates
• Weather information
• Game scores ….
• Book tickets
• Order food
• Manage bank accounts ….
Enterprise Productivity Bots
Streamline enterprise work activities and improve efficiencies
• Check sales numbers
• Marketing performance
• Inventory status ….
Internet of Things (IoT) Bots
Enable conversational interfaces for device interactions
• Wearables
• Appliances
• Auto ….
5. Amazon Lex Benefits
High quality text and speech language
understanding
Built-in integration with the AWS platform
Seamlessly deploy and scale
Easy to use
Cost effective
6. Developer Challenges
Conversational interfaces need to combine a large number of
sophisticated algorithms and technologies
Speech
Recognition Language
Understanding
Business Logic
Disparate
Systems
Authentication
Messaging
platforms
Scale Testing
Security
Availability
Mobile
7. Lex Bot Structure
Utterances
Spoken or typed phrases that invoke
your intent
BookHotel
Intents
An Intent performs an action in
response to natural language user
input
Slots
Slots are input data required to fulfill
the intent
Fulfillment
Fulfillment mechanism for your intent
9. “Coffee Bot”
Order Small
Mocha
“I’d like to order a small
Mocha”
Automatic Speech
Recognition
CafeOrderBeverage
Small Mocha
Natural Language
Understanding
Intent/Slot
Model
UtterancesCoffee Bot
Type Mocha
Size Small
Temperature Hot
“Your mocha will be
available soon!”
Polly
Confirmation: “Your mocha
will be available soon!”
a
“You’d like a small
mocha, is that right?
11. Versioning and Alias Support
AliasVersioning
• Supported for Intents, Slots, and Bots
• Enables multi-developer environment
• Rollback to previous versions
• Deploy different aliases to different platforms
• Run different stacks for dev, stage and prod environments
• Target different user groups with different aliases
v1 v2 v3 latest
v1 Dev
v2 Stage
v3 Prod
12. Amazon Lex - Technology
Amazon Lex
Automatic Speech
Recognition (ASR)
Natural Language
Understanding (NLU)
Same technology that powers Alexa
Cognito CloudTrail CloudWatch
AWS Services
Action
AWS Lambda
Authentication
& Visibility
Speech
API
Language
API
Fulfillment
End-Users
Developers
Console
SDK
Intents,
Slots,
Prompts,
Utterances
Input:
Speech
or Text
Multi-Platform Clients:
Mobile, IoT, Web,
Chat
API
Output:
Speech (via Polly TTS)
or Text
13. AWS Mobile Hub Integration
Authenticate users
Analyze user behavior
Store and share media
Synchronize data
More ….
Track retention
Conversational Bots
LexAWS Mobile SDKs
AWS Mobile Hub