Building a bot for your website

19
#DNNConnect2016 Building a Bot for your website using the new Microsoft Bot Framework David Rodriguez DNN Corp @davidjrh Joe Brinkman DNN Corp @jbrinkman

Transcript of Building a bot for your website

Page 1: Building a bot for your website

#DNNConnect2016

Building a Bot for your website using the new Microsoft Bot Framework

David RodriguezDNN Corp@davidjrh

Joe BrinkmanDNN Corp@jbrinkman

Page 2: Building a bot for your website

#DNNConnect2016

Please support our valuable sponsors

Page 3: Building a bot for your website

#DNNConnect2016

On this session

• How do you make a bot?• How do you make a bot great?

Page 4: Building a bot for your website

#DNNConnect2016

DEMOMy first DNN Bot

Page 5: Building a bot for your website

#DNNConnect2016

Bot Framework is a Microsoft-operated service and an SDK.

Bot Framework

Bot Framework is one of many tools Microsoft offers for building a complete bot.

www.botframework.comOthers include: LUIS, Speech APIs, Azure, more

Page 6: Building a bot for your website

#DNNConnect2016

Bot Framework Overview

Page 7: Building a bot for your website

#DNNConnect2016

Your conversation logic

Logic

Web service

Your bot

Bot Builder SDK

(Node.js + C#)

LUIS

Page 8: Building a bot for your website

#DNNConnect2016

Bot Connector

Your bot

Bot Connector

Send/receive messagesStore stateTranslationTelemetry

Dev portal

Page 9: Building a bot for your website

#DNNConnect2016

Bot Connector messages

Your bot{ "type": "Message", "id": "68YrxgtB53Y", "conversationId": "DphPaFQrDuZDKyCez4AFGcT4vy5aQDje1lLGIjB8v18MFtb", "language": "en", "text": "You can say \"/order\" to order!", "attachments": [ ], "from": { "name": "+12065551212", "channelId": "sms", "address": "+12065551212", "id": "Ro52hKN287", "isBot": false }, "channelData": { SMS data here }, "botUserData": { your data here }, ...}

Bot Connecto

r

Page 10: Building a bot for your website

#DNNConnect2016

Bot Builder SDKs

C# and Node.js• Dialogs to model a conversation

• Dialogs are reusable• Conversations are scalable to multiple

machines• Dialog state is persisted in Bot Connector

(per-user, per-session, per-user+session)• Type of Dialogs:

• Built-in prompts• Yes/No, String, Number, Choices

• Natural language understanding (LUIS)• Form slot filling (branching, disambiguation,

multi-turn)• Profile (e.g. home address)

Page 11: Building a bot for your website

#DNNConnect2016

DEMOCreating a bot from the Visual Studio templateCreating a bot as a DNN module using the Bot FX

Page 12: Building a bot for your website

#DNNConnect2016

Connecting the bot with the world

Page 13: Building a bot for your website

#DNNConnect2016

Connecting the bot with the world

Page 14: Building a bot for your website

#DNNConnect2016

Connecting the bot with the world

Page 15: Building a bot for your website

#DNNConnect2016

Connecting the bot with the world

Page 16: Building a bot for your website

#DNNConnect2016

DEMOMaking a great bot: LUIS support

Page 17: Building a bot for your website

#DNNConnect2016

Page 18: Building a bot for your website

#DNNConnect2016

Bots talking to other Bots?

Page 19: Building a bot for your website

#DNNConnect2016

Questions?

Please remember to evaluate the session online

Thank you