SlideShare a Scribd company logo
Bot. You said bot? let build bot then!
A developer introduction to a new world of apps
Laurent Ellerbach
laurelle@microsoft.com
Technical Evangelist Lead
Microsoft Central and Eastern Europe
https://blogs.msdn.com/laurelle
https://github.com/ellerbach
Many thanks to our sponsors & partners!
GOLD
SILVER
PARTNERS
PLATINUM
POWERED BY
What are bots?
Bots are not
Bots are not: Artificial Intelligence (AI)
• Bots can be simple task automation utilities
• Example: Password reset bot. There’s no AI here. Just
ask a couple of security validation questions, then
reset the password
• They may have AI as well, if the scenario applies
Bots are not: Natural language only
• The more your bot depends on natural language, the riskier the user
experience becomes. Typing isn’t always the best option.
• Move away from natural language as quickly as possible in the
navigation.
• “Drive” the user as much as you can (menus, choices, etc)
• Typing a lot on a mobile device: Bad experience
• Example: AzureBot “stop vm1” is a command, not natural language.
Less typing = better
Bots are not: Text interfaces only
• Bot channels are evolving quickly to support richer
experiences: Media, buttons, custom controls. These are
coming. Text is not the best experience for everything,
sometimes all you want is a button, or an image, or a
link…
• Examples:
• Skype allows audio and 3D bots as well.
• Slack, Facebook and Skype have buttons/custom UIs
So… what are bots?
Bots are apps. Really. That’s it.
Bots are apps
• They solve problems, like apps
• They are cross platform, you can run them anywhere, on
any device
• They are actually easier to build and deploy across
platforms than apps
• Very similar capabilities: Push notifications? Check.
• You can publish your bot instantly on Facebook, Skype,
Slack, Kik, email, custom hardware devices, anything.
Where to start?
• https://dev.botframework.com/
• One platform for multiple channels
• Same code, can be specific per
channel as well
• Fully REST API
Demo
Creating my first bot
• Hello world with a bot in C#
Demo
BrickBot: a real Lego bot
https://brickbat.azurewebsites.net
Architecture
How do we build great bots?
1. Start by asking what problem are we trying to solve. Refine until it
looks like a tangible problem and not “magic”
2. Ask how a bot will be a better experience. User experience is
EVERYTHING
3. Avoid too much natural language. Careful with unrealistic
expectations. Natural language recognition is limited. Menus work
great. Commands work great. Buttons, etc.
4. Collect data. Pump it to Azure. Use the same architecture you would
use with IoT scenarios (IoT hub, stream analytics, power BI, etc). You
can only analyze and improve your bot if you’re collecting metrics
for it
5. Iterate, improve
Demo
What about authentication?
• Every channel generate a unique encrypted ID per
user (for web, context lost when browser closed)
• Authentication can be done thru any method using
external webpage and calling back the bot thru web
API
– Example available on Github
• Objects are serialized so context data stored per user
A concrete example: my house
A raspberry in the garden
• RPi v2 running Linux with Mono +
Atmega328
• Posting info on a Windows Gateway
• Connected to Azure IoT Hub
The Sprinkler board v3
• Raspberry Pi 2
• Windows IoT Core
• Code ported from
.NetMF
• Not that straight forward
(web server, UWP concept)
• Offer much simpler and
modern development
• Added connection to
Azure IoT Hub
Overall architecture of the garden
433MHz
receiver
ATmega328
sensors
SQL
Azure
Azure
Event
Hub +
Stream
Analytics Web App
+
Javascript
Browser
sprinkler
Netduino running .NET Microframework
Gateway
App
IaC – Azure Resource Manager json
deployment
Recommen-
dation
workflow
Automation and
Machine Learning
APIs
The bot architecture: example with email
Raspberry PI running
Linux and node.js
Azure IoT Hub
Message
(picture)
SQL Azure
Blob storage
Web App, Bot framework
Bot providers
Natural language recognition
• Part of Azure Cognitive
services
• Natural language
recognition
• Few native languages
supported so far
• http://www.luis.ai
Integration of external services
• Magic of API
• Netatmo connected thermostat, getting temperature,
programs, changing presence mode
• Endless possibilities of integration (my next steps: wine cellar
inventory, weight…)
Demo
http://blogs.msdn.com/laurelle
http://github.com/ellerbach
http://dev.botframework.com
www.InternetofYourThings.com

More Related Content

PDF
PhoneGap in a Day
KEY
Phonegap 2.x
KEY
Falsy Values - Warsaw 2011
KEY
TxJS 2011
PPTX
Build your first Chatbot
PPTX
Using Machine Learning and Chatbots to handle 1st line Technical Support
PPTX
Writing code for others
PPTX
SharePoint Fest DC 2019 - Bot Framework and Microsoft Graph - Join The Revolu...
PhoneGap in a Day
Phonegap 2.x
Falsy Values - Warsaw 2011
TxJS 2011
Build your first Chatbot
Using Machine Learning and Chatbots to handle 1st line Technical Support
Writing code for others
SharePoint Fest DC 2019 - Bot Framework and Microsoft Graph - Join The Revolu...

What's hot (20)

PDF
Bug Hunting Safari
PDF
PhoneGap at JSConf
PPTX
Evaluation Question 6
PPTX
Write Better JavaScript
PPTX
Help et phone home, building bots with Microsoft Bot Framework 4.
PPTX
Conversational UI Bot Framework
PPTX
Lessons Learned From Applications That Kicked Titanium's Ass
ZIP
Titanium @ Minnebar
PPTX
Microsoft Bot Framework
PDF
Setting up your development environment
PDF
Developer Efficiency
PDF
Joomlaplatform en
PPTX
Core Java
PPTX
What is a computer program
KEY
iPhone App from concept to product
PDF
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 09)
PPTX
The front end toolkit
PDF
Keynote- We're going wrong: Choosing the web's future. Peter Paul Koch
PDF
Clever data: building a chatbot from your database
Bug Hunting Safari
PhoneGap at JSConf
Evaluation Question 6
Write Better JavaScript
Help et phone home, building bots with Microsoft Bot Framework 4.
Conversational UI Bot Framework
Lessons Learned From Applications That Kicked Titanium's Ass
Titanium @ Minnebar
Microsoft Bot Framework
Setting up your development environment
Developer Efficiency
Joomlaplatform en
Core Java
What is a computer program
iPhone App from concept to product
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 09)
The front end toolkit
Keynote- We're going wrong: Choosing the web's future. Peter Paul Koch
Clever data: building a chatbot from your database
Ad

Similar to Bot. You said bot? Let build bot then! - Laurent Ellerbach (20)

PPTX
Mat Velloso - Bots in the real world
PPTX
Global Azure2021 Verona.pptx
PPTX
Intro to Chatbots using Microsoft bot framework and Azure cognitive services
PPTX
Using Chatbots in Extension Programming
PDF
Lessons learned from building a commercial bot development platform
PPTX
Chatbot ppt
PPT
Building a bot with an intent
PPTX
Making IoT LINE Bot with Azure, obniz, Ngrok
PPTX
An introduction to Microsoft Bot Framework
PDF
Bot design AIsatPN 2018
PDF
Create a Bot with Delphi and Telegram - ITDevCon 2016
PPTX
Ai chatbot ppt.pptx
PPTX
PDCConf2021 - Serverless WhatsApp Chatbot with Azure AI.pptx
PDF
Introduction to Facebook Messenger, Conversational UI & NLP
PPTX
The Software Challenges of Building Smart Chatbots - ICSE'21
PPTX
conversional ai.pptx adaqwerqREQWRW3RWETRFWE
PPTX
Introduction to BOT Framework- Global Azure Bootcamp 2017
PDF
Building an Open Source iOS app: lessons learned
PDF
[TechWorldSummit Stockholm 2019] Building Bots for Human with Conversational ...
PPTX
Microsoft teams & bot framework - A developer's perspective
Mat Velloso - Bots in the real world
Global Azure2021 Verona.pptx
Intro to Chatbots using Microsoft bot framework and Azure cognitive services
Using Chatbots in Extension Programming
Lessons learned from building a commercial bot development platform
Chatbot ppt
Building a bot with an intent
Making IoT LINE Bot with Azure, obniz, Ngrok
An introduction to Microsoft Bot Framework
Bot design AIsatPN 2018
Create a Bot with Delphi and Telegram - ITDevCon 2016
Ai chatbot ppt.pptx
PDCConf2021 - Serverless WhatsApp Chatbot with Azure AI.pptx
Introduction to Facebook Messenger, Conversational UI & NLP
The Software Challenges of Building Smart Chatbots - ICSE'21
conversional ai.pptx adaqwerqREQWRW3RWETRFWE
Introduction to BOT Framework- Global Azure Bootcamp 2017
Building an Open Source iOS app: lessons learned
[TechWorldSummit Stockholm 2019] Building Bots for Human with Conversational ...
Microsoft teams & bot framework - A developer's perspective
Ad

More from ITCamp (20)

PDF
ITCamp 2019 - Stacey M. Jenkins - Protecting your company's data - By psychol...
PDF
ITCamp 2019 - Silviu Niculita - Supercharge your AI efforts with the use of A...
PDF
ITCamp 2019 - Peter Leeson - Managing Skills
PPTX
ITCamp 2019 - Mihai Tataran - Governing your Cloud Resources
PDF
ITCamp 2019 - Ivana Milicic - Color - The Shadow Ruler of UX
PDF
ITCamp 2019 - Florin Coros - Implementing Clean Architecture
PPTX
ITCamp 2019 - Florin Loghiade - Azure Kubernetes in Production - Field notes...
PPTX
ITCamp 2019 - Florin Flestea - How 3rd Level support experience influenced m...
PPTX
ITCamp 2019 - Emil Craciun - RoboRestaurant of the future powered by serverle...
PPTX
ITCamp 2019 - Eldert Grootenboer - Cloud Architecture Recipes for The Enterprise
PPTX
ITCamp 2019 - Cristiana Fernbach - Blockchain Legal Trends
PPTX
ITCamp 2019 - Andy Cross - Machine Learning with ML.NET and Azure Data Lake
PPTX
ITCamp 2019 - Andy Cross - Business Outcomes from AI
PDF
ITCamp 2019 - Andrea Saltarello - Modernise your app. The Cloud Story
PDF
ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...
PPTX
ITCamp 2019 - Alex Mang - I'm Confused Should I Orchestrate my Containers on ...
PPTX
ITCamp 2019 - Alex Mang - How Far Can Serverless Actually Go Now
PDF
ITCamp 2019 - Peter Leeson - Vitruvian Quality
PDF
ITCamp 2018 - Ciprian Sorlea - Million Dollars Hello World Application
PDF
ITCamp 2018 - Ciprian Sorlea - Enterprise Architectures with TypeScript And F...
ITCamp 2019 - Stacey M. Jenkins - Protecting your company's data - By psychol...
ITCamp 2019 - Silviu Niculita - Supercharge your AI efforts with the use of A...
ITCamp 2019 - Peter Leeson - Managing Skills
ITCamp 2019 - Mihai Tataran - Governing your Cloud Resources
ITCamp 2019 - Ivana Milicic - Color - The Shadow Ruler of UX
ITCamp 2019 - Florin Coros - Implementing Clean Architecture
ITCamp 2019 - Florin Loghiade - Azure Kubernetes in Production - Field notes...
ITCamp 2019 - Florin Flestea - How 3rd Level support experience influenced m...
ITCamp 2019 - Emil Craciun - RoboRestaurant of the future powered by serverle...
ITCamp 2019 - Eldert Grootenboer - Cloud Architecture Recipes for The Enterprise
ITCamp 2019 - Cristiana Fernbach - Blockchain Legal Trends
ITCamp 2019 - Andy Cross - Machine Learning with ML.NET and Azure Data Lake
ITCamp 2019 - Andy Cross - Business Outcomes from AI
ITCamp 2019 - Andrea Saltarello - Modernise your app. The Cloud Story
ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...
ITCamp 2019 - Alex Mang - I'm Confused Should I Orchestrate my Containers on ...
ITCamp 2019 - Alex Mang - How Far Can Serverless Actually Go Now
ITCamp 2019 - Peter Leeson - Vitruvian Quality
ITCamp 2018 - Ciprian Sorlea - Million Dollars Hello World Application
ITCamp 2018 - Ciprian Sorlea - Enterprise Architectures with TypeScript And F...

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Cloud computing and distributed systems.
“AI and Expert System Decision Support & Business Intelligence Systems”
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Review of recent advances in non-invasive hemoglobin estimation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Big Data Technologies - Introduction.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
Cloud computing and distributed systems.

Bot. You said bot? Let build bot then! - Laurent Ellerbach

  • 1. Bot. You said bot? let build bot then! A developer introduction to a new world of apps Laurent Ellerbach laurelle@microsoft.com Technical Evangelist Lead Microsoft Central and Eastern Europe https://blogs.msdn.com/laurelle https://github.com/ellerbach
  • 2. Many thanks to our sponsors & partners! GOLD SILVER PARTNERS PLATINUM POWERED BY
  • 5. Bots are not: Artificial Intelligence (AI) • Bots can be simple task automation utilities • Example: Password reset bot. There’s no AI here. Just ask a couple of security validation questions, then reset the password • They may have AI as well, if the scenario applies
  • 6. Bots are not: Natural language only • The more your bot depends on natural language, the riskier the user experience becomes. Typing isn’t always the best option. • Move away from natural language as quickly as possible in the navigation. • “Drive” the user as much as you can (menus, choices, etc) • Typing a lot on a mobile device: Bad experience • Example: AzureBot “stop vm1” is a command, not natural language. Less typing = better
  • 7. Bots are not: Text interfaces only • Bot channels are evolving quickly to support richer experiences: Media, buttons, custom controls. These are coming. Text is not the best experience for everything, sometimes all you want is a button, or an image, or a link… • Examples: • Skype allows audio and 3D bots as well. • Slack, Facebook and Skype have buttons/custom UIs
  • 9. Bots are apps. Really. That’s it.
  • 10. Bots are apps • They solve problems, like apps • They are cross platform, you can run them anywhere, on any device • They are actually easier to build and deploy across platforms than apps • Very similar capabilities: Push notifications? Check. • You can publish your bot instantly on Facebook, Skype, Slack, Kik, email, custom hardware devices, anything.
  • 11. Where to start? • https://dev.botframework.com/ • One platform for multiple channels • Same code, can be specific per channel as well • Fully REST API
  • 12. Demo
  • 13. Creating my first bot • Hello world with a bot in C#
  • 14. Demo
  • 15. BrickBot: a real Lego bot https://brickbat.azurewebsites.net
  • 17. How do we build great bots? 1. Start by asking what problem are we trying to solve. Refine until it looks like a tangible problem and not “magic” 2. Ask how a bot will be a better experience. User experience is EVERYTHING 3. Avoid too much natural language. Careful with unrealistic expectations. Natural language recognition is limited. Menus work great. Commands work great. Buttons, etc. 4. Collect data. Pump it to Azure. Use the same architecture you would use with IoT scenarios (IoT hub, stream analytics, power BI, etc). You can only analyze and improve your bot if you’re collecting metrics for it 5. Iterate, improve
  • 18. Demo
  • 19. What about authentication? • Every channel generate a unique encrypted ID per user (for web, context lost when browser closed) • Authentication can be done thru any method using external webpage and calling back the bot thru web API – Example available on Github • Objects are serialized so context data stored per user
  • 21. A raspberry in the garden • RPi v2 running Linux with Mono + Atmega328 • Posting info on a Windows Gateway • Connected to Azure IoT Hub
  • 22. The Sprinkler board v3 • Raspberry Pi 2 • Windows IoT Core • Code ported from .NetMF • Not that straight forward (web server, UWP concept) • Offer much simpler and modern development • Added connection to Azure IoT Hub
  • 23. Overall architecture of the garden 433MHz receiver ATmega328 sensors SQL Azure Azure Event Hub + Stream Analytics Web App + Javascript Browser sprinkler Netduino running .NET Microframework Gateway App IaC – Azure Resource Manager json deployment Recommen- dation workflow Automation and Machine Learning APIs
  • 24. The bot architecture: example with email Raspberry PI running Linux and node.js Azure IoT Hub Message (picture) SQL Azure Blob storage Web App, Bot framework Bot providers
  • 25. Natural language recognition • Part of Azure Cognitive services • Natural language recognition • Few native languages supported so far • http://www.luis.ai
  • 26. Integration of external services • Magic of API • Netatmo connected thermostat, getting temperature, programs, changing presence mode • Endless possibilities of integration (my next steps: wine cellar inventory, weight…)
  • 27. Demo