Upload
amazon-web-services
View
246
Download
1
Embed Size (px)
Citation preview
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Vikram Anbazhagan, Amazon AI
November 30, 2016
MAC304
NEW LAUNCH! Introducing
Amazon LexService for Building Voice or Text Chatbots
Amazon Lex
Why did we build Amazon Lex?
What is Amazon Lex?
How do I get started using Amazon Lex?
Q&A
Advent of Conversational Interactions
1st Gen:
Punch Cards & Memory Registers
2nd Gen:
Pointers & Sliders
3nd Gen:
Conversational Interfaces
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
Amazon Lex - Features
Text and speech language understanding: powered by the same technology as
Alexa
Enterprise SaaS connectors: connect to enterprise systems
Deployment to chat services
Designed for builders: efficient and intuitive tools to build
conversations; scales automatically
Versioning and alias support@
Text and Speech Language Understanding
Speech
Recognition
Natural Language
Understanding
Powered by the same deep learning technology as Alexa
Deployment to Chat Services
Messenger
Mobile
Card Description
Button 1
Button 2
Button 3
Card
Description
Option 1
Option 2
Authentication
Rich FormattingOne-click deployment
Amazon Lex
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
AWS Mobile Hub Integration
Authenticate users
Analyze user behavior
Store and share media
Synchronize data
More ….Track retention
Conversational BotsLexAWS Mobile SDKs
AWS Mobile Hub
Enterprise SaaS Connectors with Mobile Hub
Amazon Lex
Mobile App
Mobile Hub
SaaS Connector
Amazon API
Gateway
AWS
Lambda
1: Understand
user intent
Amazon API
Gateway
AWS
Lambda
3: Translate
REST response
into natural
languageMobile Hub
Custom Connector
2: Invoke a SaaS
application or an existing
business application
Business
Application
Firewall
User Input
Amazon Lex – Use Cases
Informational BotsChatbots for everyday consumer requests
Application BotsBuild powerful interfaces to mobile applications
• News updates
• Weather information
• Game scores ….
• Book tickets
• Order food
• Manage bank accounts ….
Enterprise Productivity BotsStreamline enterprise work activities and improve efficiencies
• Check sales numbers
• Marketing performance
• Inventory status ….
Internet of Things (IoT) BotsEnable conversational interfaces for device interactions
• Wearables
• Appliances
• Auto ….
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
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
Utterances
I’d like to book a hotel
I want to make my hotel reservations
I want to book a hotel in New York City
Can you help me book my hotel?
Slots
Destination City New York City, Seattle, London, …
Slot Type Values
CheckIn Date Valid dates
CheckOut Date Valid dates
Slot Elicitation
I’d like to book a hotel
What date do you check in?
New York City
Sure what city do you want to book?
Nov 30th Check In
11/30/2016
City
New York City
Fulfillment
AWS Lambda
Integration
Return to
Client
User input parsed to derive
intents and slot values.
Output returned to client for
further processing.
Intents and slots passed to
AWS Lambda function for
business logic
implementation.
“Book a Hotel”
Book Hotel
NYC
“Book a Hotel in
NYC”
Automatic Speech
Recognition
Hotel Booking
New York City
Natural Language
Understanding
Intent/Slot
Model
UtterancesHotel Booking
City New York City
CheckIn Nov 30th
CheckOut Dec 2nd
“Your hotel is booked for
Nov 30th”
PollyConfirmation: “Your hotel
is booked for Nov 30th”
“Can I go ahead
with the booking?
a
in
Save, Build, and Publish
Save Build
Saving your bot
preserves the current
state on the server
Building your bot
creates versions
that you can test
Publish
Publishing your app will create a
version of your bot and provide
an alias to your clients
Test
Test your bot in a
chat window on the
console
Customer Testimonials: Capital One
“A highly scalable solution, it also offers potential to speed time to market for a new generation of voice
and text interactions such as our recently launched Capital One skill for Alexa.”
“As a heavy user of AWS, Amazon Lex’s seamless integration with
other AWS services like AWS Lambda and AWS DynamoDB is really
appealing.”
Customer Testimonials: HubSpot
“Through Amazon's Lex, we're adding sophisticated natural language processing capabilities that helps
GrowthBot provide a more intuitive UI for our users. Amazon Lex lets us take advantage of advanced A.I.
and machine learning without having to code the algorithms ourselves.”
“HubSpot's GrowthBot is an all-in-one chatbot which helps marketers and sales people be more
productive by providing access to relevant data and services using a conversational
interface. With GrowthBot, marketers can get help creating content, researching competitors,
and monitoring their analytics.”
Amazon Lex Pricing
Text Speech
Price per 1000 requests $0.75 $4.00
Free Tier*
(requests per month)10,000 5,000
*Available for the first year upon sign-up to new Amazon Lex customers
Amazon Lex - Technology
Amazon Lex
Automatic Speech
Recognition (ASR)
Natural Language
Understanding (NLU)
Same technology that powers Alexa
Cognito CloudTrail CloudWatch
AWS Services
ActionAWS Lambda
Authentication
& Visibility
Speech
APILanguage
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
Register for the Preview @
https://aws.amazon.com/lex
Sign-up & whitelist
Build your first bot!
✔✔✔