Post on 16-Apr-2017
Gisela Torres | Cloud Solution Architect @Microsofthttps://www.returngis.net | @0GiS0
¡Únete a la rebelión de los bots y la AI!
¿Quién soy yo?
Agenda¿Pero qué son los bots?PlataformasMicrosoft Bot FrameworkDemoHands on labs (Tu primer bot con QnA maker)¿Algo más real?¿Algo más inteligente?Preguntas
¿Pero qué son los bots?Es una aplicación que se comunica con otros usuarios a través de Internet vía IM, IRC o cualquier interfaz web capaz de contestar preguntas y realizar tareas a través de lenguaje natural.
Las redes sociales están potenciando el número de botspor m2.
Plataformas
Web chat / Client chat
Facebook’s bot platform
Skype developer platform
Telegram Bot Platform
Slack bot platform
WhatsApp bot platform
¿Problema?
We don’t forget
Microsoft Bot Framework• Conexión cross platform• Un solo bot para múltiples
plataformas
Flujo
BotBot
FrameworkPortal
Skype Messaging
Bot API service (SMBA)
Skype appSkype Chat Service
Bot Microsoft Bot Framework Skype
Bot API
Skype - Rich cardsHero Thumbnail Carousel
Receipt
Sign inVideo, audio, animated GIF
For more details see https://docs.botframework.com/en-us/skype/getting-started/#navtitle.
DEMO//Maleta extraviada
Arquitectura bot – MS Airlines
DEMO//WTM bot
Hands on labs //Tu primer bot con QnA maker
2. Crear un nuevo servicio
3. Elige un nombre y busca unas FAQs
http://help-es-es.desigual.com/app/answers/list/c/11
Hang tight
4. Revisa las preguntas y las respuestas
5. Save and retrain
6. Test
7. Save and retrain… again!
8. Publish
9. Y Publish again
10. ¡Victoria!
C#: https://qnamaker.ai/Documentation/ApiReference
¿Editor para Nodejs?
Notepad Notepad++ Atom Visual Studio Code
12. Let’s write some code! app.jsvar restify = require('restify');var builder = require('botbuilder');var cognitiveservices = require('botbuilder-cognitiveservices');
var server = restify.createServer();server.listen(process.env.port || process.env.PORT || 3978, function () { console.log('%s listening to %s', server.name, server.url); }); var connector = new builder.ChatConnector({ appId: process.env.MICROSOFT_APP_ID, appPassword: process.env.MICROSOFT_APP_PASSWORD});var bot = new builder.UniversalBot(connector);server.post('/api/messages', connector.listen());
var recognizer = new cognitiveservices.QnAMakerRecognizer({knowledgeBaseId: ’KB_ID', subscriptionKey: ’YOUR_Ocp-Apim-Subscription-Key'});
var basicQnAMakerDialog = new cognitiveservices.QnAMakerDialog({ recognizers: [recognizer],defaultMessage: 'No match! Try changing the query terms!',qnaThreshold: 0.3});
bot.dialog('/', basicQnAMakerDialog);
https://www.returngis.net/2017/01/ensena-a-tu-bot-las-faqs-de-tu-empresa-con-qna-maker/
KB_ID y YOUR_Ocp-Apim-Subscription-Key
13. Configura el proyecto y los módulosnpm init
13. Configura el proyecto y los módulosnpm install --save botbuilder restify botbuilder-cognitiveservices
13. node app… and run!
13. Emulador
https://emulator.botframework.com/
14. Conecta tu bot con el emulador
15. Pregunta, pregunta…
16. ¿Algo más real?
17. ¿Qué necesito?1. Alojar mi bot en un sitio web2. Tener habilitado HTTPs (¡es obligatorio!)
Microsoft Azure: Start Free!
https://azure.microsoft.com/en-us/free/
¿Algo más inteligente?
https://www.microsoft.com/cognitive-services/en-us/apis
¿Preguntas?
RecursosMicrosoft Bot Framework
Cognitive Services
Nodejs
Visual Studio Code
Microsoft Azure
return(GiS);
Gisela Torres | Cloud Solution Architect @Microsofthttps://www.returngis.net | @0GiS0
¡Únete a la rebelión de los bots y la AI!