breaking into bots - goto conferencewhy conversation as a platform? “bots are the new apps,”...

23
BREAKING INTO BOTS Introduction to Microsoft Bot Framework & LUIS.ai

Upload: others

Post on 21-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

BREAKING INTO BOTS

Introduction to Microsoft Bot Framework & LUIS.ai

Page 2: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Kevin Leung

ü Microsoft Bot Framework

ü Cognitive Services + LUIS.ai

ü ASP.NET Core

ü Internet of Things

Microsoft Technical Evangelist @KSLHacks

Gabrielle CrevecoeurMicrosoft Technical Evangelist @NoWaySheCodes

ü Node.js + NodeBots

ü Microsoft Bot Framework

ü Azure Logic Apps

ü Cognitive Services

Page 3: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Road Mapü Why Bots – What is CaaP?

ü Microsoft Bot Framework

ü Building our own bot

ü NLP Masters

ü Adding Intelligence

ü Resources

Page 4: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Why Conversation as a Platform?

“Bots are the new apps,” said Nadelladuring a nearly three-hour keynote here that sketched a vision for the way humans will interact with machines. “People-to-people conversations, people-to-digital assistants, people-to-bots and even digital assistants-to-bots. That’s the world you’re going to get to see in the years to come.”

- USA TODAY

“Microsoft CEO Satya Nadella says future belongs to bots”

Page 5: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Connectors and Benefits

■ Connector to Platform Channels– One Bot : Many Channels and endpoints

■ Why restrict yourself to one platform?– Hit them all

■ Half the battle is getting users to download your app.– They already have these installed

Page 6: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Microsoft Bot Framework

■ Supports NodeJS and C# .NET

■ Lead users through conversation– Prompts, Choices, Media, Rich Cards (Displays)

■ Bot Emulator provided for local development/testing

■ Easy to incorporate Natural Language Processing (Cognitive Services)

■ Easily deploy to Azure Cloud Services

Page 7: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

DIALOGS, PROMPTS, INPUT & RICH CARDS

Introduction to the MSFT Bot Framework

Page 8: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Dialogs

■ Take part in a specific portion of a conversation with the intent of resolving a problem.– Conversations have multiple dialogs

Root

Ready Greeting Link

Conversation

Page 9: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Dialogs:

RootReadyGreetingLink

Page 10: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Intents

Ready Dialog

Yes? No

■ Using a function to figure out what is wanted by the user

Page 11: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Ready Dialog

Yes No

Page 12: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Waterfall

Greeting Dialog

What is your name?

Hello Tierney

■ Triggering a function will create a chain of functions to execute.

Page 13: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Waterfall

Greeting Dialog

What is your name?

Hello Tierney

Weather Dialog

What location would you like to find the weather?

How many days are you interested in?

Here is the 5 day forecast for LA

■ Triggering a function will create a chain of functions to execute.

Page 14: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Greeting Dialog

What is your name?

Hello Tierney

Page 15: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Weather Dialog

What location would you like to find the weather?

How many days are you interested in?

Here is the 5 day forecast for LA

Page 16: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Greeting Dialog

What is your name?

Hello Tierney

Weather Dialog

Page 17: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Prompts & Inputs

Page 18: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

CHATBOT BASICS

Builtin Prompts

Page 19: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

CREATING INTELLIGENCE!

LUIS.ai

Page 20: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

LUIS.ai

■ Language Understanding Intelligence Service (LUIS)

■ Natural Language Processing (NLP)– Using artificial intelligence to process natural language■ Extract Intents (meaning of the utterance)■ Extract Entities (items in the utterance that are of value)

■ This is a huge problem developers working with AI or human speech encounter– Cognitive Services: LUIS abstracts this into a training model

Page 21: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

LUIS.ai

Utterance:

‘I want to learn a lot and becoming inspired with Breaking Into Bots at GOTO Conference!’

Entities: sessionTitle | conferenceTitleIntent: becomeInspired

Page 22: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

INCORPORATING INTELLIGENCE

LUIS.ai

Page 23: BREAKING INTO BOTS - GOTO ConferenceWhy Conversation as a Platform? “Bots are the new apps,” said Nadella during a nearly three-hour keynote here that sketched a vision for the

Thanks!

■ github.com/KSLHacks/BotScheduleDemodev.botframework.com

■ luis.ai■ azure.microsoft.com/free ($200 credits)

// Kevin Leung

// Microsoft Technical Evangelist

// Twitter: @KSLHacks

// Github: KSLHacks

// Gabrielle Crevecoeur

// Microsoft Technical Evangelist

// Twitter: @NoWaySheCodes

// Github: gcrev93