The document discusses developing chatbots using the Microsoft Bot Framework. It provides an overview of chatbots and their uses. It then outlines the steps to create a bot project in Visual Studio, test it using the emulator, register it with the Bot Framework, and publish it to Azure. Finally, it describes how to connect the bot to Skype and Facebook channels.
Chatbot development with
MicrosoftBot Framework
Md. Mahedee Hasan
Microsoft MVP , Visual Studio and Development Technologies
Senior Software Architect, Leadsoft Bangladesh Limited
Trainer, Leads Training and Consulting Limited
Microsoft Community Contributor
Blog: http://mahedee.net
MVP | Sr. Software Architect | Trainer | Technical Blogger | MCTS
1
2.
MAHEDEE.NET
2
What is Chatbot?
Botis a automated software designed by human
programmers to do tasks
Chatbot is a automated software to talk customer using
messaging apps
3.
MAHEDEE.NET
3
Why Chatbot?
One toone messaging with thousands of customer at a time
Application of chatbot
Order Pizza
HR issues
Customer
Support
Personal Finance
assistant
Schedule
Meeting
Product
Suggestions
Weather
Bank and
Insurance
4.
MAHEDEE.NET
4
What is MicrosoftBot Framework
A platform for building, connecting, testing and
deploying powerful and intelligent bots
Open Source
Connect cross platform with the flip of a switch
5.
MAHEDEE.NET
5
Installation Requirements
• VisualStudio 2015 / 2017
• Download Bot template: Visual Studio Bot Template - C#
• Save the zip file to Visual Studio 2015/2017 template directory
“%USERPROFILE%DocumentsVisual Studio
2017TemplatesProjectTemplatesVisual C#"
6.
MAHEDEE.NET
6
Create Project
• StartVisual Studio 2015/2017
• From the file -> New->Project
• Select Visual C# template
• Select Bot Application
• Click OK
7.
MAHEDEE.NET
7
Test by botemulator
• Download bot emulator
• Install bot emulator
• Test your project
• Type
http://localhost:3979/api/
messages
• Debug your project typing
the following URL
https://your_bots_hostna
me/api/messages in the
emulator.
MAHEDEE.NET
9
Register Bot withMicrosoft Bot Framework
• Go to https://dev.botframework.com/
• My bot -> Create bot (Select Register an existing bot
built using Bot Builder SDK.)
• Generate Microsoft App Id and Microsoft App
Password
10.
MAHEDEE.NET
10
Publish application onAzure again
• Add Microsoft App Id and Microsoft App Password to
bot web.config
• Publish application to azure again
• Now test application using bot tester
11.
MAHEDEE.NET
11
Connect bot withskype channel
• Click Skype channel -> Add to the contact
• Connect to the bot
• Start chatting
• Invite by: https://join.skype.com/bot/61e2a1fc-b72b-41bc-
9f6e-263bd29dc149
12.
MAHEDEE.NET
12
Connect bot withFacebook channel
• Go to https://dev.botframework.com/
• Select My bot -> Select bot (you created)
• Add channel Facebook messenger
– Click Facebook messenger
• Add Facebook messenger credential in dev.botframework.com
from developers.facebook.com
13.
MAHEDEE.NET
13
Add products
• AddProduct -> Add webhooks in developers.facebook.com
• Click Setup
• Select page
• Click subscribe to this topic
• Select and subscribe page
• Add Call Back URL and Verify Token -> Click verify and save
• Add Product -> Messenger
• Edit events
14.
MAHEDEE.NET
14
Complete chatbot withFacebook
• Add a Facebook user in role as tester in
developers.facebook.com
• Now from the user send message to the page and get auto
response