ai machine vs human
TRANSCRIPT
Human Vs Bot Sasso Carta Forbice
Matteo ValorianiAntimo Musone
MILAN 25-26 NOVEMBER 2016
About USMatteo Valoriani Co-Founder Fifth Ingenum Srls. Community .Net Lombardia Teaching Assistant Politecnico Milano Email:[email protected]
Antimo Musone Co-Founder Fifth Ingenum Srls. IT Manager / Architect for EY - Italy Ing. Informatica II Università di Napoli Email:[email protected]
Target : Rock-Paper-Scissors Bot Game
Routes messagesManage stateBot Directory
Session trackingAPI / SDK
Channels
Prediction algorithms
Game Logic
Bot ConnectorBot
Prediction algorithms
Prediction algorithms
Web Services
Microsoft Azure Bot
Microsoft Bot Framework
Microsoft Azure Function
Azure Machine Learning
Azure Machine Learning
Azure Machine Learning
http://codemotionwebbot.azurewebsites.net/
Intro to Bot Framework & Cognitive Services
MS Bot Frameworkhttps://dev.botframework.com
A bot is a web service that interacts with users in a conversational format.Start conversations with your bot from any channel that you’ve configured your bot to work on Text/SMS, Skype, Slack, Facebook Messenger, and other popular services.
Overview MS Bot Framework
http://docs.botframework.com
Components:• Connect
or • Builder
SDK• Develop
er Portal• Bot
Directory
Bot ConnectorChannels:• Facebook• Email• GroupMe• Skype• Slack• SMS• Telegram• Web• etc...
http://docs.botframework.com/connector/getstarted
Configure: Web Chat https://webchat.botframework.com/Dev/?botId=YOUR-BOT-ID
Configure: Facebook Messenger
https://facebook.botframework.com/Dev/?botId=YOUR-BOT-ID
FB Developer Settingshttps://developers.facebook.com
Configure: Direct Linehttps://directline.botframework.com/Dev/?botId=YOUR-BOT-ID
Bot Builder SDK for C#Features:• Dialogs• AI• LUIS• Stateless• Scalable• FormFlow• GitHub!
http://docs.botframework.com/sdkreference/csharp
To build your bot, the Framework provides a .NET SDK and Node.js SDK. SDKs provide features such as dialogs and built-in prompts that make interacting with usersThe Bot Builder SDK is provided as open source on GitHub ( BotBuilder)
Core Conceptshttp://docs.botframework.com/sdkreference/csharp
AuthenticationThe Bot Connector service uses OAuth 2.0 client credentials for bot authentication.ConversationThe Bot can have a private conversation with a single user, or a group conversation with multiple users including other bots. (not all channels support group conversations)MessagesA conversation is a series of message, each message is an Activity object. When a user sends a message, the channel that they’re communicating on posts the message to your bot (web service). Types of messages:• contactRelationUpdate• conversationUpdate• deleteUserData• Message• Ping• typing
GitHub!https://github.com/Microsoft/botbuilder
Bot Directoryhttps://bots.botframework.com/
DemoStart coding
microsoft.com/cognitive
Microsoft
Cognitive ServicesGive your apps a human side
VisionFrom faces to feelings, allow your
apps to understand images and videoSpeechHear and speak to your users by filtering noise, identifying speakers, and understanding intentLanguageProcess text and learn how to recognize what users wantKnowledgeTap into rich knowledge amassed from the web, academia, or your own dataSearchAccess billions of web pages, images, videos, and news with the power of Bing APIs
Cognitive Services
Cognitive Services
Emotion Speaker Recognition
Speech
Custom Recognition
Computer Vision
Face
Video
microsoft.com/cognitiveSearchSpeech Languag
eKnowledge
Vision
Linguistic AnalysisLanguage Understanding
Bing Spell Check
Entity Linking
Knowledge Exploration
Academic Knowledge
Bing Image SearchBing Video Search
Bing Web Search
WebLM
Text Analytics Recommendations
Bing Autosuggest
Bing News SearchTranslator
Cognitive Services
Emotion Speaker Recognition
Speech
Custom Recognition
Computer Vision
Face
Video
SearchSpeech Languag
eKnowledge
Vision
Linguistic AnalysisLanguage Understanding
Bing Spell Check
Entity Linking
Knowledge Exploration
Academic Knowledge
Bing Image SearchBing Video Search
Bing Web Search
WebLM
Text Analytics Recommendations
Bing Autosuggest
Bing News SearchTranslator
microsoft.com/cognitive
Language Understanding
{“entities”: [
{“entity”:
“flight_delays”,“type”: “Topic”
}],“intents”: [
{“intent”:
“FindNews”,“score”: 0.99853384
},{
“intent”: “None”,“score”: 0.07289317
},{
“intent”: “ReadNews”,
“score”: 0.0167122427
},{
“intent”: “ShareNews”,
“score”: 1.0919299E-06
}]
}
“News about flight delays”
Language Understanding Models
Language Understanding ModelsReduce labeling effort with interactive featuringApplication Integration Deploy using just a few examples with active learningSupports 5 languages (English, Chinese, Italian, French, Spanish)Learning Process :
Define Concepts
ProvideExamples Active LearningDeploy
Language Understanding Models
Let’s get started!https://www.luis.ai/
Adding intents, entities, and labels
Intent:• Name• Utterances• Action
Adding intents, entities, and labels
Entity:• Name• Hierarchical• Composite• Labeling
Train & Publishing a ModelFinal:• Train• Suggest• Review• Publish
DemoStart coding
microsoft.com/cognitive
Serverless Architecture -Azure Function
Mic
roso
ft Az
ure
Func
tion
DemoStart coding
microsoft.com/cognitive
Azure Machine Learning
Azure Machine Learning Studio
Machine Learning Studio
DemoStart coding
microsoft.com/cognitive
Q&A
Matteo ValorianiAntimo Musone