build and explore watson conversation bot · 2017-07-19 · build and explore watson conversation...
TRANSCRIPT
Build and Explore Watson Conversation bot
Rajesh K JeyapaulCloud Solution [email protected] 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
• Speech2Text and Text2Speech• Natural Language Classifier• Natural Language
Understanding• Tone Analyzer • Personality Insights• Visual Recognition• Discovery , Retrieve & Rank
Bluemix Watson Services
• Analyze text to extract meta data
• Input : What would be the Bangalore Weather tomorrow ?• Entity:
• Name : Bangalore• Type : Location
Natural Language Understanding
• Understands natural language as input• Uses Machine Learning to respond• Workspace
• Container for dialog flow• Training data
Watson Conversation api
Intent Entities
• 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
• 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
• Stateless – app to maintain it
Watson Conversation api
Nodes and child nodes
Watson Conversation api
• 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
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
• 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
•
Demo
GIDS – Watson conversation hands on Lab
Application
INTERFACE
Natural Language Understanding
Conversationservice
Hands on github URL ‐https://github.com/WatsonISA/car‐dashboard