SlideShare a Scribd company logo
6
Most read
7
Most read
11
Most read
Introduction to
Bot Framework
Taswar Bhatti
@taswarbhatti
http://taswar.zeytinsoft.com
What is a Bot?
• In this context Microsoft Bot Framework, bots are computer
assistants or think of it as just a web api (ASP.NET Web App)
• Bots appear in your favorite messaging app including Facebook
Messenger and Skype
• You use bots for booking flights, hotels, ordering takeaway and much,
much more
• Purchase Request Api to build commerce enabled bot
Not, not this Bot!
Bot Framework Overview
• The Microsoft Bot Framework consists of:
• Bot Builder SDK(.NET, Node.js, REST Api)
• Bot Framework Emulator for Windows, Linux and Mac
• Bot Connector
• Developer Portal (http://dev.botframework.com)
• Bot Directory
High Level view of Bots
Bot Connector
Deep Vision of Bot
An Echo Bot Code
• [BotAuthentication]
• public class MessagesController : ApiController{
• public async Task<HttpResponseMessage> Post([FromBody]Activity activity) {
• if (activity.Type == ActivityTypes.Message) {
• ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl));
• // return our reply to the user
• Activity reply = activity.CreateReply($"Echo {activity.Text}");
• await connector.Conversations.ReplyToActivityAsync(reply);
• } else {
• HandleSystemMessage(activity);
• }
• var response = Request.CreateResponse(HttpStatusCode.OK);
• return response;
• }
• }
Bot Emulator
• The Bot Famework Emulator is a desktop application that allows bot
developers to test and debug their bots on localhost
• It is supported on Windows, Linux and Mac
Bot Emulator Screenshot
Demo Bot Framework
Bot Builder Dialog and Sessions
• Bot builder uses dialogs to manage a bot conversation between a
user
• Session Objects are passed to the dialog handlers
• Session Objects are the primary mechnics between bots and users
Types of Dialogs
• Prompts – Text, Confirm, Number, Time, Choice, etc
• Waterfall dialogs – collection and use sequence of steps
• User Data – Store data of user, conversation (private data) Payload
max is 32k
• Intent Dialog – listen to keywords or phrases using NLP (e.g LUIS)
• Attachments and Cards – For Rich Objects (media or images)
Demo Search Image and Card
• Using cognitive vision api
Guideline for bots
• Don’t send a bot to do a webpages’s job
• Bots are just apps
• Don’t abuse Natural Language Processing
• Sometimes buttons do everything you need
• Its all a matter of User Experience
Resources
• Microsoft Bot Framework Resources (http://aka.ms/botresources)
• LUIS (https://www.luis.ai)
• Azure Trail (https://azure.Microsoft.com/services/bot-services)
• Books (Building Bots with Microsoft Bot Framework PACKT)
• Books (Programming the Microsoft Bot Framework MSPress)
• An introduction to Microsoft Bot Framework
Questions
• Questions?????

More Related Content

What's hot (20)

PDF
Introduction to Chatbots
Daden Limited
 
PPTX
An Overview of Microsoft Teams Architecture | Kushan Lahiru Perera
Kushan Lahiru Perera
 
PDF
カッコいい SharePoint モダンサイトを作ろう
Hirofumi Ota
 
PPTX
Power Automate
Fausto Capellan Jr
 
PDF
Generative AI: Redefining Creativity and Transforming Corporate Landscape
Osaka University
 
PPTX
An Introduction To Chat Bots
Sohan Maheshwar
 
PPTX
ID連携のあるとき~、ないとき~ #エンプラ編
Takashi Yahata
 
PDF
AI Builder with Power Platform
Cheah Eng Soon
 
PDF
Future of Chatbot
OnGraph Technologies
 
PPTX
Chatbot
UTSAB NEUPANE
 
PPTX
AI Agent and Chatbot Trends For Enterprises
Teewee Ang
 
PDF
Microsoft Power Platform: Power BI, PowerApps & Flow
Tracy Van der Schyff
 
PPTX
Chatbot and Virtual AI Assistant Implementation in Natural Language Processing
Shrutika Oswal
 
PPTX
Power Automate Overview
TristanMobbs
 
PPTX
An Introduction to Lightning Web Components
Mikkel Flindt Heisterberg
 
PDF
Foreman Single Sign-On Made Easy with Keycloak
Nikhil Kathole
 
PDF
Microsoft Teams Usage
David J Rosenthal
 
PDF
OpenID Connect のビジネスチャンス
OpenID Foundation Japan
 
PDF
Conversational AI and Chatbot Integrations
Cristina Vidu
 
PDF
RPA Blue Prism Tutorial For Beginners | Introduction To Blue Prism | RPA Trai...
Edureka!
 
Introduction to Chatbots
Daden Limited
 
An Overview of Microsoft Teams Architecture | Kushan Lahiru Perera
Kushan Lahiru Perera
 
カッコいい SharePoint モダンサイトを作ろう
Hirofumi Ota
 
Power Automate
Fausto Capellan Jr
 
Generative AI: Redefining Creativity and Transforming Corporate Landscape
Osaka University
 
An Introduction To Chat Bots
Sohan Maheshwar
 
ID連携のあるとき~、ないとき~ #エンプラ編
Takashi Yahata
 
AI Builder with Power Platform
Cheah Eng Soon
 
Future of Chatbot
OnGraph Technologies
 
Chatbot
UTSAB NEUPANE
 
AI Agent and Chatbot Trends For Enterprises
Teewee Ang
 
Microsoft Power Platform: Power BI, PowerApps & Flow
Tracy Van der Schyff
 
Chatbot and Virtual AI Assistant Implementation in Natural Language Processing
Shrutika Oswal
 
Power Automate Overview
TristanMobbs
 
An Introduction to Lightning Web Components
Mikkel Flindt Heisterberg
 
Foreman Single Sign-On Made Easy with Keycloak
Nikhil Kathole
 
Microsoft Teams Usage
David J Rosenthal
 
OpenID Connect のビジネスチャンス
OpenID Foundation Japan
 
Conversational AI and Chatbot Integrations
Cristina Vidu
 
RPA Blue Prism Tutorial For Beginners | Introduction To Blue Prism | RPA Trai...
Edureka!
 

Similar to An introduction to Microsoft Bot Framework (20)

PPTX
Introduction to Microsoft Bot Framework
Sam Fernando
 
PPTX
Build an Intelligent Bot
Sorin Peste
 
PPT
Building a bot with an intent
Abhishek Sur
 
PPTX
Chatbots - A CMD for Humans (Ort Braude 2018)
Moaid Hathot
 
PPTX
Azure Bot Services - Malaysia
Cheah Eng Soon
 
PPTX
Tokyo azure meetup #8 - Introduction to the microsoft bot framework
Kanio Dimitrov
 
PPTX
Microsoft bot framework
Software Infrastructure
 
PPTX
Build a mobile chatbot with Xamarin
Luis Beltran
 
PPTX
Chatbots - A CMD for Humans (Global Azure Bootcamp 2018, Tel-Aviv, Israel)
Moaid Hathot
 
PDF
3 different flavours of building chatbots with Microsoft
Sammy Deprez
 
PPTX
Clever data building a chatbot from your database
Luis Beltran
 
PPTX
DDD12 - Introduction to Microsoft Bot Framework
James Mann
 
PPTX
Automate Comunication with MS Bot Framework
Stamo Petkov
 
PPTX
Introduction to BOT Framework- Global Azure Bootcamp 2017
Jalpesh Vadgama
 
PPTX
Developing intelligent bots from the beginning
Suthahar J
 
PPTX
Intro to Chatbots using Microsoft bot framework and Azure cognitive services
Rachhek Shrestha
 
PDF
Build a great conversationalist using Azure Bot Service 2018
Radoslav Gatev
 
PPTX
Practical Microsoft Bot Framework for Office 365 developers
Olli Jääskeläinen
 
PPTX
Build intelligent chatbot with bot framework
Puja Pramudya
 
PPTX
Programming the Microsoft Bot Framework
Stefano Tempesta
 
Introduction to Microsoft Bot Framework
Sam Fernando
 
Build an Intelligent Bot
Sorin Peste
 
Building a bot with an intent
Abhishek Sur
 
Chatbots - A CMD for Humans (Ort Braude 2018)
Moaid Hathot
 
Azure Bot Services - Malaysia
Cheah Eng Soon
 
Tokyo azure meetup #8 - Introduction to the microsoft bot framework
Kanio Dimitrov
 
Microsoft bot framework
Software Infrastructure
 
Build a mobile chatbot with Xamarin
Luis Beltran
 
Chatbots - A CMD for Humans (Global Azure Bootcamp 2018, Tel-Aviv, Israel)
Moaid Hathot
 
3 different flavours of building chatbots with Microsoft
Sammy Deprez
 
Clever data building a chatbot from your database
Luis Beltran
 
DDD12 - Introduction to Microsoft Bot Framework
James Mann
 
Automate Comunication with MS Bot Framework
Stamo Petkov
 
Introduction to BOT Framework- Global Azure Bootcamp 2017
Jalpesh Vadgama
 
Developing intelligent bots from the beginning
Suthahar J
 
Intro to Chatbots using Microsoft bot framework and Azure cognitive services
Rachhek Shrestha
 
Build a great conversationalist using Azure Bot Service 2018
Radoslav Gatev
 
Practical Microsoft Bot Framework for Office 365 developers
Olli Jääskeläinen
 
Build intelligent chatbot with bot framework
Puja Pramudya
 
Programming the Microsoft Bot Framework
Stefano Tempesta
 
Ad

More from Taswar Bhatti (19)

PPTX
Get productive with python Visual Studio 2019
Taswar Bhatti
 
PPTX
Nodejsvault austin2019
Taswar Bhatti
 
PPTX
Cloud patterns forwardjs April Ottawa 2019
Taswar Bhatti
 
PPTX
Micrsoft Ignite Toronto - BRK3508 - 8 Cloud Design Patterns you ought to know
Taswar Bhatti
 
PPTX
Managing your secrets in a cloud environment
Taswar Bhatti
 
PPTX
8 cloud design patterns you ought to know - Update Conference 2018
Taswar Bhatti
 
PPTX
Intro elasticsearch taswarbhatti
Taswar Bhatti
 
PPTX
Cloud Design Patterns - Hong Kong Codeaholics
Taswar Bhatti
 
PPTX
Using Vault for your Nodejs Secrets
Taswar Bhatti
 
PPTX
Azure Key Vault - Getting Started
Taswar Bhatti
 
PPTX
Cloud patterns at Carleton University
Taswar Bhatti
 
PPTX
Cloud Design Patterns
Taswar Bhatti
 
PPTX
Devteach 2017 OAuth and Open id connect demystified
Taswar Bhatti
 
PPTX
Devteach 2017 Store 2 million of audit a day into elasticsearch
Taswar Bhatti
 
PPTX
Dev days 1 Introduction to Xamarin Taswar Bhatti
Taswar Bhatti
 
PPTX
Xamarin forms introduction by Taswar Bhatti and Ahmed Assad
Taswar Bhatti
 
PPTX
Docker for .NET Developers
Taswar Bhatti
 
PPTX
Docker for .NET Developers
Taswar Bhatti
 
PPTX
Akka.Net Ottawa .NET User Group Meetup
Taswar Bhatti
 
Get productive with python Visual Studio 2019
Taswar Bhatti
 
Nodejsvault austin2019
Taswar Bhatti
 
Cloud patterns forwardjs April Ottawa 2019
Taswar Bhatti
 
Micrsoft Ignite Toronto - BRK3508 - 8 Cloud Design Patterns you ought to know
Taswar Bhatti
 
Managing your secrets in a cloud environment
Taswar Bhatti
 
8 cloud design patterns you ought to know - Update Conference 2018
Taswar Bhatti
 
Intro elasticsearch taswarbhatti
Taswar Bhatti
 
Cloud Design Patterns - Hong Kong Codeaholics
Taswar Bhatti
 
Using Vault for your Nodejs Secrets
Taswar Bhatti
 
Azure Key Vault - Getting Started
Taswar Bhatti
 
Cloud patterns at Carleton University
Taswar Bhatti
 
Cloud Design Patterns
Taswar Bhatti
 
Devteach 2017 OAuth and Open id connect demystified
Taswar Bhatti
 
Devteach 2017 Store 2 million of audit a day into elasticsearch
Taswar Bhatti
 
Dev days 1 Introduction to Xamarin Taswar Bhatti
Taswar Bhatti
 
Xamarin forms introduction by Taswar Bhatti and Ahmed Assad
Taswar Bhatti
 
Docker for .NET Developers
Taswar Bhatti
 
Docker for .NET Developers
Taswar Bhatti
 
Akka.Net Ottawa .NET User Group Meetup
Taswar Bhatti
 
Ad

Recently uploaded (20)

PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 

An introduction to Microsoft Bot Framework

  • 1. Introduction to Bot Framework Taswar Bhatti @taswarbhatti http://taswar.zeytinsoft.com
  • 2. What is a Bot? • In this context Microsoft Bot Framework, bots are computer assistants or think of it as just a web api (ASP.NET Web App) • Bots appear in your favorite messaging app including Facebook Messenger and Skype • You use bots for booking flights, hotels, ordering takeaway and much, much more • Purchase Request Api to build commerce enabled bot
  • 4. Bot Framework Overview • The Microsoft Bot Framework consists of: • Bot Builder SDK(.NET, Node.js, REST Api) • Bot Framework Emulator for Windows, Linux and Mac • Bot Connector • Developer Portal (http://dev.botframework.com) • Bot Directory
  • 5. High Level view of Bots
  • 8. An Echo Bot Code • [BotAuthentication] • public class MessagesController : ApiController{ • public async Task<HttpResponseMessage> Post([FromBody]Activity activity) { • if (activity.Type == ActivityTypes.Message) { • ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl)); • // return our reply to the user • Activity reply = activity.CreateReply($"Echo {activity.Text}"); • await connector.Conversations.ReplyToActivityAsync(reply); • } else { • HandleSystemMessage(activity); • } • var response = Request.CreateResponse(HttpStatusCode.OK); • return response; • } • }
  • 9. Bot Emulator • The Bot Famework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost • It is supported on Windows, Linux and Mac
  • 12. Bot Builder Dialog and Sessions • Bot builder uses dialogs to manage a bot conversation between a user • Session Objects are passed to the dialog handlers • Session Objects are the primary mechnics between bots and users
  • 13. Types of Dialogs • Prompts – Text, Confirm, Number, Time, Choice, etc • Waterfall dialogs – collection and use sequence of steps • User Data – Store data of user, conversation (private data) Payload max is 32k • Intent Dialog – listen to keywords or phrases using NLP (e.g LUIS) • Attachments and Cards – For Rich Objects (media or images)
  • 14. Demo Search Image and Card • Using cognitive vision api
  • 15. Guideline for bots • Don’t send a bot to do a webpages’s job • Bots are just apps • Don’t abuse Natural Language Processing • Sometimes buttons do everything you need • Its all a matter of User Experience
  • 16. Resources • Microsoft Bot Framework Resources (http://aka.ms/botresources) • LUIS (https://www.luis.ai) • Azure Trail (https://azure.Microsoft.com/services/bot-services) • Books (Building Bots with Microsoft Bot Framework PACKT) • Books (Programming the Microsoft Bot Framework MSPress) • An introduction to Microsoft Bot Framework