31
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Shankar Ramachandran, Solutions Architect, AWS and Elaine Tsai, Product Manager, Twilio December 1, 2016 Building Serverless Bots on AWS - Botathon DCS205

AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Embed Size (px)

Citation preview

Page 1: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

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

Shankar Ramachandran, Solutions Architect, AWS and Elaine Tsai, Product Manager, Twilio

December 1, 2016

Building Serverless Bots on AWS

- Botathon

DCS205

Page 2: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

What to Expect from the Session

What is How to

build

Amazon

LexBotathon

Page 3: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Bot or Not

Page 4: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Bot

Classification

Not a Bot

Page 5: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Bot

Classification

Not a Bot

Page 6: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Bot

Classification

Not a Bot

Page 7: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Types

Text Chatbots Voice Chatbots Many more types...

Page 8: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Anatomy of a Bot

Conversations,

Bot Logic,

Deployment Platform,

Page 9: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Anatomy of a Bot

Hello, I am the MARS Rover.

Welcome to Mars!

What a fine day to be in

the Red planet!

Conversations,

i.e what does the bot say

Bot Logic,

i.e compute logic

associated with

the actions

Deployment Platform,

i.e, where is the bot deployed

Page 10: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Lifecycle of building a Bot

Build Conversations

1

Build Bot logic

2

Deploy the Bot

3

Monitor

4

Page 11: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Amazon Lex

Page 12: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Amazon Lex

Easily build a voice/text interface into your mobile, IoT,

gaming, or web applications to provide a conversational

experience for your customers.

Page 13: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Amazon Lex

Build Conversations

1

Build Bot logic

2

Deploy the Bot

3

Monitor

4

Amazon Lex

Page 14: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

App Developer Challenges

• Speech or text input requires integration with multiple

APIs across speech recognition and language

understanding

• Deployment across multiple platforms increases app

complexity

• Testing for accuracy prior to deployment

Page 15: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

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

Page 16: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Amazon Lex Demo

Page 17: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)
Page 18: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)
Page 19: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Bot Use Cases

Page 20: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

“Choose your

own adventure”

News

Page 21: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Route Customer Requests

Page 22: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Route Customer Requests

Page 23: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Let’s build a Concierge Bot

Page 24: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Demo

Page 25: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

AWS LambdaAmazon Lex

Page 26: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Lex-Powered Twilio App

Serverless

Automated

Determine intent

Holds conversational context

Page 27: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Botathon

Page 28: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Botathon

Choose among the 4 bot themes:

Informational, Social, Transactional, DevOps

Progress from Basic (30 min) to Advanced (30 min).

Code, instructions, and guidance.

Page 29: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Bot Themes

Informational

Social

Transactional

Devops

Botathon

Sample conversation

When was the movie Avatar released?

What are people saying about Avatar on Twitter?

I need 4 tickets to Avatar this evening.

What’s the spot price of compute optimized in

Virginia?

Page 30: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Thank you!

Page 31: AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS205)

Remember to complete

your evaluations!