KEMBAR78
Chatbot development with Microsoft Bot Framework | PPTX
Chatbot development with
Microsoft Bot 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
MAHEDEE.NET
2
What is Chatbot?
Bot is a automated software designed by human
programmers to do tasks
Chatbot is a automated software to talk customer using
messaging apps
MAHEDEE.NET
3
Why Chatbot?
One to one 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
MAHEDEE.NET
4
What is Microsoft Bot Framework
A platform for building, connecting, testing and
deploying powerful and intelligent bots
Open Source
Connect cross platform with the flip of a switch
MAHEDEE.NET
5
Installation Requirements
• Visual Studio 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#"
MAHEDEE.NET
6
Create Project
• Start Visual Studio 2015/2017
• From the file -> New->Project
• Select Visual C# template
• Select Bot Application
• Click OK
MAHEDEE.NET
7
Test by bot emulator
• 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
8
Publish bot to Microsoft Azure
MAHEDEE.NET
9
Register Bot with Microsoft 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
MAHEDEE.NET
10
Publish application on Azure again
• Add Microsoft App Id and Microsoft App Password to
bot web.config
• Publish application to azure again
• Now test application using bot tester
MAHEDEE.NET
11
Connect bot with skype 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
MAHEDEE.NET
12
Connect bot with Facebook 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
MAHEDEE.NET
13
Add products
• Add Product -> 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
MAHEDEE.NET
14
Complete chatbot with Facebook
• 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
• My blog site: http://mahedee.net
• TechNet Profile:
https://social.technet.microsoft.com/profile/mahede
e/
• Github Profile: https://github.com/mahedee
• Slide Share http://www.slideshare.net/mahedee19
MAHEDEE.NET
15
Q&A
• Email: mahedee.hasan@gmail.com;
Mahedee_hasan@leads-bd.com
• Tag me in facebook group post
• https://www.facebook.com/groups/techinfo.bd
MAHEDEE.NET
16
Q&A
• Me in Facebook:
https://facebook.com/mahedee19
• Me in Linkedin:
https://www.linkedin.com/in/mahedee
MAHEDEE.NET
17
Q&A
18

Chatbot development with Microsoft Bot Framework

  • 1.
    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.
  • 8.
  • 9.
    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
  • 15.
    • My blogsite: http://mahedee.net • TechNet Profile: https://social.technet.microsoft.com/profile/mahede e/ • Github Profile: https://github.com/mahedee • Slide Share http://www.slideshare.net/mahedee19 MAHEDEE.NET 15 Q&A
  • 16.
    • Email: mahedee.hasan@gmail.com; Mahedee_hasan@leads-bd.com •Tag me in facebook group post • https://www.facebook.com/groups/techinfo.bd MAHEDEE.NET 16 Q&A
  • 17.
    • Me inFacebook: https://facebook.com/mahedee19 • Me in Linkedin: https://www.linkedin.com/in/mahedee MAHEDEE.NET 17 Q&A
  • 18.