build and explore watson conversation bot · 2017-07-19 · build and explore watson conversation...

16

Upload: others

Post on 07-Jul-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •
Page 2: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

Build and Explore Watson Conversation bot

Rajesh K JeyapaulCloud Solution [email protected] Digital Group

Page 3: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• Cognitive computing is the simulation of human thought processes in a computerized model.

• Cognitive computing involves self‐learning systems that use data mining, pattern recognition and natural language processing to mimic the way the human brain works

Cognitive computing

Page 4: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• Speech2Text and Text2Speech• Natural Language Classifier• Natural Language 

Understanding• Tone Analyzer • Personality Insights• Visual Recognition• Discovery , Retrieve & Rank

Bluemix Watson Services

Page 5: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• Analyze text to extract meta data

• Input :  What would be the Bangalore Weather tomorrow ?• Entity:

• Name : Bangalore• Type : Location

Natural Language Understanding

Page 6: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• Understands natural language as input• Uses Machine Learning to respond• Workspace 

• Container for dialog flow• Training data

Watson Conversation api

Intent Entities

Page 7: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• Intent (verb) – represents the purpose of user input• Define it in workspace• Example:

• #location• #Order_food• #Turn_on

• Where are you located ?

Watson Conversation api

Page 8: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• Entities (noun)– represents a class object / data type that is relevant to users purpose

• Define it in workspace• User defined &• System entities (getting date etc.,)

Watson Conversation apiIntent

Entities

Page 9: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• Stateless – app to maintain it

Watson Conversation api

Nodes and child nodes

Page 10: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

Watson Conversation api

Page 11: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• What is conversation context variables ?

• The dialog context is the mechanism for passing information between the dialog and your application code.

• context": { "my_dessert_string": "ice‐cream", "toppings_array": ["onion", "olives"] }

Conversation Q& A

Page 12: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

How do you extract user input text in Watson Conversation?

• Inside Conversation

• "context": {"number": "< ? input.text.extract('^[0‐9]$', 0) ?>“

}

• Inside API

• var x = context.number

Conversation Q& A

Page 13: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

• How to store dynamic values in Watson conversation context variables ?

{"output": {"text": "An $size pizza. What toppings did you want?"},context": {"size": "@size"} }

• How to get todays date ?• Entities -> System Entities-> enable @sys-date

Conversation Q& A

Page 14: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

Demo

Page 15: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

GIDS – Watson conversation hands on Lab

Application

INTERFACE

Natural Language Understanding

Conversationservice

Hands on github URL ‐https://github.com/WatsonISA/car‐dashboard 

Page 16: Build and Explore Watson Conversation bot · 2017-07-19 · Build and Explore Watson Conversation bot Rajesh K Jeyapaul Cloud Solution Arch jrkumar@in.ibm.com IBM Digital Group •

www.modsummit.com

www.developersummit.com