Upgrade to Pro — share decks privately, control downloads, hide ads and more …

BotConference2017, Woody Borraccino (AWS) Serverless bots on AWS

BotConference2017, Woody Borraccino (AWS) Serverless bots on AWS

Carlo Perassi

April 13, 2017
Tweet

More Decks by Carlo Perassi

Other Decks in Technology

Transcript

  1. © 2016, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Woody Borraccino, AWS Solutions Architect @woodyborraccino April 13, 2017 Serverless Bots on AWS
  2. 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
  3. 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 @
  4. Deployment to Chat Services Facebook Messenger Mobile Card Description Button

    1 Button 2 Button 3 Card Description Option 1 Option 2 Authentication Rich Formatting One-click deployment Amazon Lex
  5. Versioning and Alias Support Alias Versioning •  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
  6. AWS Mobile Hub Integration Authenticate users Analyze user behavior Store

    and share media Synchronize data More …. Track retention Conversational Bots Lex AWS Mobile SDKs AWS Mobile Hub
  7. 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 language Mobile Hub Custom Connector 2: Invoke a SaaS application or an existing business application Business Application Firewall User Input
  8. 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. 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?
  10. Slots Destination City New York City, Seattle, London, … Slot

    Type Values CheckIn Date Valid dates CheckOut Date Valid dates
  11. 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
  12. 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.
  13. “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 Utterances Hotel Booking City New York City CheckIn Nov 30th CheckOut Dec 2nd “Your hotel is booked for Nov 30th” Polly Confirmation: “Your hotel is booked for Nov 30th” “Can I go ahead with the booking? a in
  14. 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
  15. 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 ….