build and explore watson conversation bot · 2017-07-19 · build and explore watson conversation...
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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/1.jpg)
![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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/2.jpg)
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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/3.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/4.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/5.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/6.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/7.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/8.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/9.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/10.jpg)
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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/11.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/12.jpg)
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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/13.jpg)
• 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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/14.jpg)
•
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 •](https://reader031.vdocuments.mx/reader031/viewer/2022013003/5f2af7b08a75cc078854f9cb/html5/thumbnails/15.jpg)
GIDS – Watson conversation hands on Lab
Application
INTERFACE
Natural Language Understanding
Conversationservice
Hands on github URL ‐https://github.com/WatsonISA/car‐dashboard