SlideShare uma empresa Scribd logo
1 de 27
The beginning of a new chat-bots ecosystem. Execute
custom code on the server. AWS Lambda, QuickBlox
Cloud Code.
Kharkiv Cloud Buzz #4, 23 Apr 2016 Igor Khomenko @ QuickBlox
CHAT BOTS ARE
NEW APPS
QUICKBLOX
➤ Cloud communication backend - API/SDK/infrastructure to
build own WhatsApp
➤ Platform provides
- chat using XMPP protocol,
- WebRTC signalling for video/voice calling,
- API for sending push notifications
- user management system
- data storage and more
➤ Hosted in the cloud (AWS)
SUMMARY
➤ Chat Bots: overview
➤ A taxonomy of models/techniques that are used to build
conversational agents: Retrieval-Based vs. Generative
➤ How do Chat bots platform works: Facebook Messenger,
Microsoft Skype, Telegram, Slack
➤ Hosting for bots
➤ AWS Lambda as a hosting for bots
➤ CloudCode architecture
CHAT BOTS
OVERVIEW
Chat Bot - a computer program that simulates human conversation, or
chat, through artificial intelligence(?). Typically, a chat bot will
communicate with a real person.
DEFINITION
• How do Chat Bots make our life easier?
• Why they become so popular nowadays?
ASK YOURSELF
HOW DO CHAT BOTS MAKE OUR LIFE
EASIER
“Chat bots aim to make life simpler for its users. Learning
from user behaviour & preferences, chat bots should be
capable of understanding your needs.
Imagine ordering pizza, booking a cab, getting flight
status, reading news, getting stock updates, all within
just one platform? It can save so much space on your
mobile phone, simple UI on a messaging platform which
you already like (one platform, many services).”
WHY THEY BECOME SO POPULAR
NOWADAYS
• Natural: humans always liked interaction that is:
1) instant; 2) natural.
• Accessible: chat apps have billions of users, you’re likely
using one of them on daily basis. New home for chat bots:
Facebook Messenger, Microsoft Skype, Slack, Telegram,
LINE, Kik.
• Light-weight: having to download another app with custom
UI for every pizza shop is not what users want, apparently.
Engaging a bot is as simple as messaging someone or
adding a contact into a group chat.
PARADIGM SHIFT
Messaging = new OS
Bots = new apps
Mobile Apps (2007-2016) -> Messaging OS (2016-…)
LEARNING
TECHNIQUES
•Retrieval-Based model
•Generative models
A TAXONOMY OF MODELS
RETRIEVAL-BASED MODEL
• Use a repository of predefined responses to pick
an appropriate response based on the input and
context.
• These systems don’t generate any new text, they
just pick a response from a fixed set
RETRIEVAL-BASED MODEL: EXAMPLE
GENERATIVE MODEL
• Don’t rely on pre-defined responses. They
generate new responses from scratch
• Based on Machine Translation techniques
https://api.ai
https://wit.ai
https://www.luis.ai/
A TAXONOMY OF MODELS
• Retrieval-based models (easier) vs Generative
models (harder)
• Short-Text Conversations (easier) vs long
conversations (harder)
• Open domain (harder) vs closed domain (easier)
DEMO
https://www.messenger.com/t/hiponcho
HOW DO CHAT
BOTS
PLATFORMS
WORK
HOW TO BUILD A CHAT BOT
• a computer program (no UI)
• need home (hosting)
• blackbox, has API to receive messages (usually via
HTTP web-hooks, rarely - real-time socket
connection)
• use API to send replies
• Bots Stores to discover bots or via web link
HOW TO BUILD A CHAT BOT
CHAT BOTS
HOSTING
HOSTING
1.Virtual server + Web framework
2.Container services:
• AWS Lambda + API Gateway
• Microsoft Azure WebJobs
• Google Cloud (Task Queue)
• Heroku
3.Hosting platforms for bots:
• beepboophq
AWS LAMBDA
AWS Lambda is a compute service where you can upload your code
to AWS Lambda and the service can run the code on your behalf
using AWS infrastructure.
Cloud Code
AWS LAMBDA
DE
MO
CLOUD CODE
LINKS
• Once-in-a-decade paradigm shift: Messaging
https://medium.com/@beerud/once-in-a-decade-paradigm-shift-
messaging-dec665593e49#.7nsjkawml
• AI engines for chat bots: https://api.ai, https://wit.ai, https://www.luis.ai
• How do Chat Bots platforms work: technical overview of Microsoft
Skype, Slack, Facebook Messenger and Telegram bots
https://medium.com/@igorkhomenko/how-do-chat-bots-platforms-work-
technical-overview-of-microsoft-skype-slack-facebook-messenger-
4f3076cee04d#.v4mrlbyv4
• Chat bots deep learning http://www.wildml.com/2016/04/deep-
learning-for-chatbots-part-1-introduction
igor@quickblox.com

Mais conteúdo relacionado

Semelhante a Chat bots are new apps

WDS trainer presentation - MLOps.pptx
WDS trainer presentation - MLOps.pptxWDS trainer presentation - MLOps.pptx
WDS trainer presentation - MLOps.pptx
Arthur240715
 

Semelhante a Chat bots are new apps (20)

Facebook Messenger Platform Framework
Facebook Messenger Platform FrameworkFacebook Messenger Platform Framework
Facebook Messenger Platform Framework
 
Microsoft teams & bot framework - A developer's perspective
Microsoft teams & bot framework - A developer's perspectiveMicrosoft teams & bot framework - A developer's perspective
Microsoft teams & bot framework - A developer's perspective
 
Mobile Backend Apps and APIs meetup London overview of BaaS APIs and discussi...
Mobile Backend Apps and APIs meetup London overview of BaaS APIs and discussi...Mobile Backend Apps and APIs meetup London overview of BaaS APIs and discussi...
Mobile Backend Apps and APIs meetup London overview of BaaS APIs and discussi...
 
Cloud adoption patterns April 11 2016
Cloud adoption patterns April 11 2016Cloud adoption patterns April 11 2016
Cloud adoption patterns April 11 2016
 
X realtime xmp-ptut-pdf
X realtime xmp-ptut-pdfX realtime xmp-ptut-pdf
X realtime xmp-ptut-pdf
 
IBM BlueMix Architecture and Deep Dive (Powered by CloudFoundry)
IBM BlueMix Architecture and Deep Dive (Powered by CloudFoundry) IBM BlueMix Architecture and Deep Dive (Powered by CloudFoundry)
IBM BlueMix Architecture and Deep Dive (Powered by CloudFoundry)
 
Mobilizing your Existing Enterprise Applications
Mobilizing your Existing Enterprise ApplicationsMobilizing your Existing Enterprise Applications
Mobilizing your Existing Enterprise Applications
 
Cloud adoption patterns
Cloud adoption patternsCloud adoption patterns
Cloud adoption patterns
 
ESPC Teams week Microsoft Teams & Bot Framework – a Developer’s Perspective
ESPC Teams week Microsoft Teams & Bot Framework – a Developer’s PerspectiveESPC Teams week Microsoft Teams & Bot Framework – a Developer’s Perspective
ESPC Teams week Microsoft Teams & Bot Framework – a Developer’s Perspective
 
Automatic code generation for cross platform, multi-device mobile apps. An in...
Automatic code generation for cross platform, multi-device mobile apps. An in...Automatic code generation for cross platform, multi-device mobile apps. An in...
Automatic code generation for cross platform, multi-device mobile apps. An in...
 
Build an Intelligent Bot (Node.js)
Build an Intelligent Bot (Node.js)Build an Intelligent Bot (Node.js)
Build an Intelligent Bot (Node.js)
 
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
2015-12-02 - WebCamp - Microsoft Azure Logic Apps2015-12-02 - WebCamp - Microsoft Azure Logic Apps
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
 
IBM Bootcamp - Text to Speech API Lab
IBM Bootcamp - Text to Speech API LabIBM Bootcamp - Text to Speech API Lab
IBM Bootcamp - Text to Speech API Lab
 
Everybody loves Swagger (Massimo Crippa @ Integration Monday)
Everybody loves Swagger (Massimo Crippa @ Integration Monday)Everybody loves Swagger (Massimo Crippa @ Integration Monday)
Everybody loves Swagger (Massimo Crippa @ Integration Monday)
 
#SPSToronto How to do #DevOps with #SPFx and why it matters
#SPSToronto How to do #DevOps with #SPFx and why it matters#SPSToronto How to do #DevOps with #SPFx and why it matters
#SPSToronto How to do #DevOps with #SPFx and why it matters
 
WDS trainer presentation - MLOps.pptx
WDS trainer presentation - MLOps.pptxWDS trainer presentation - MLOps.pptx
WDS trainer presentation - MLOps.pptx
 
SharePoint 2013 Apps and the App Model
SharePoint 2013 Apps and the App ModelSharePoint 2013 Apps and the App Model
SharePoint 2013 Apps and the App Model
 
Beware the monolith
Beware the monolithBeware the monolith
Beware the monolith
 
Everybody loves Swagger
Everybody loves SwaggerEverybody loves Swagger
Everybody loves Swagger
 
Building apps using azure for microsoft teams
Building apps using azure for microsoft teamsBuilding apps using azure for microsoft teams
Building apps using azure for microsoft teams
 

Mais de Igor Khomenko (8)

Chat bots are new apps - flashback
Chat bots are new apps - flashbackChat bots are new apps - flashback
Chat bots are new apps - flashback
 
Use Slack in software development processes
Use Slack in software development processesUse Slack in software development processes
Use Slack in software development processes
 
Создание QuickBlox из сервисной компании
Создание QuickBlox из сервисной компанииСоздание QuickBlox из сервисной компании
Создание QuickBlox из сервисной компании
 
Qmunicate. Как за 2 дня сделать собственный WhatsApp под iOS, Android и Web
Qmunicate. Как за 2 дня сделать собственный WhatsApp под iOS, Android и WebQmunicate. Как за 2 дня сделать собственный WhatsApp под iOS, Android и Web
Qmunicate. Как за 2 дня сделать собственный WhatsApp под iOS, Android и Web
 
Dive into Push Notifications
Dive into Push NotificationsDive into Push Notifications
Dive into Push Notifications
 
Rapid development of backend-based mobile applications
Rapid development of backend-based mobile applicationsRapid development of backend-based mobile applications
Rapid development of backend-based mobile applications
 
Mercurial vs Git
Mercurial vs GitMercurial vs Git
Mercurial vs Git
 
QuickBuilder - how to make your own Android projects builder
QuickBuilder - how to make your own Android projects builderQuickBuilder - how to make your own Android projects builder
QuickBuilder - how to make your own Android projects builder
 

Último

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 

Último (20)

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 

Chat bots are new apps

  • 1. The beginning of a new chat-bots ecosystem. Execute custom code on the server. AWS Lambda, QuickBlox Cloud Code. Kharkiv Cloud Buzz #4, 23 Apr 2016 Igor Khomenko @ QuickBlox CHAT BOTS ARE NEW APPS
  • 2. QUICKBLOX ➤ Cloud communication backend - API/SDK/infrastructure to build own WhatsApp ➤ Platform provides - chat using XMPP protocol, - WebRTC signalling for video/voice calling, - API for sending push notifications - user management system - data storage and more ➤ Hosted in the cloud (AWS)
  • 3. SUMMARY ➤ Chat Bots: overview ➤ A taxonomy of models/techniques that are used to build conversational agents: Retrieval-Based vs. Generative ➤ How do Chat bots platform works: Facebook Messenger, Microsoft Skype, Telegram, Slack ➤ Hosting for bots ➤ AWS Lambda as a hosting for bots ➤ CloudCode architecture
  • 5. Chat Bot - a computer program that simulates human conversation, or chat, through artificial intelligence(?). Typically, a chat bot will communicate with a real person. DEFINITION
  • 6. • How do Chat Bots make our life easier? • Why they become so popular nowadays? ASK YOURSELF
  • 7. HOW DO CHAT BOTS MAKE OUR LIFE EASIER “Chat bots aim to make life simpler for its users. Learning from user behaviour & preferences, chat bots should be capable of understanding your needs. Imagine ordering pizza, booking a cab, getting flight status, reading news, getting stock updates, all within just one platform? It can save so much space on your mobile phone, simple UI on a messaging platform which you already like (one platform, many services).”
  • 8. WHY THEY BECOME SO POPULAR NOWADAYS • Natural: humans always liked interaction that is: 1) instant; 2) natural. • Accessible: chat apps have billions of users, you’re likely using one of them on daily basis. New home for chat bots: Facebook Messenger, Microsoft Skype, Slack, Telegram, LINE, Kik. • Light-weight: having to download another app with custom UI for every pizza shop is not what users want, apparently. Engaging a bot is as simple as messaging someone or adding a contact into a group chat.
  • 9. PARADIGM SHIFT Messaging = new OS Bots = new apps Mobile Apps (2007-2016) -> Messaging OS (2016-…)
  • 12. RETRIEVAL-BASED MODEL • Use a repository of predefined responses to pick an appropriate response based on the input and context. • These systems don’t generate any new text, they just pick a response from a fixed set
  • 14. GENERATIVE MODEL • Don’t rely on pre-defined responses. They generate new responses from scratch • Based on Machine Translation techniques https://api.ai https://wit.ai https://www.luis.ai/
  • 15. A TAXONOMY OF MODELS • Retrieval-based models (easier) vs Generative models (harder) • Short-Text Conversations (easier) vs long conversations (harder) • Open domain (harder) vs closed domain (easier)
  • 18. HOW TO BUILD A CHAT BOT • a computer program (no UI) • need home (hosting) • blackbox, has API to receive messages (usually via HTTP web-hooks, rarely - real-time socket connection) • use API to send replies • Bots Stores to discover bots or via web link
  • 19. HOW TO BUILD A CHAT BOT
  • 21. HOSTING 1.Virtual server + Web framework 2.Container services: • AWS Lambda + API Gateway • Microsoft Azure WebJobs • Google Cloud (Task Queue) • Heroku 3.Hosting platforms for bots: • beepboophq
  • 22. AWS LAMBDA AWS Lambda is a compute service where you can upload your code to AWS Lambda and the service can run the code on your behalf using AWS infrastructure. Cloud Code
  • 25.
  • 26. LINKS • Once-in-a-decade paradigm shift: Messaging https://medium.com/@beerud/once-in-a-decade-paradigm-shift- messaging-dec665593e49#.7nsjkawml • AI engines for chat bots: https://api.ai, https://wit.ai, https://www.luis.ai • How do Chat Bots platforms work: technical overview of Microsoft Skype, Slack, Facebook Messenger and Telegram bots https://medium.com/@igorkhomenko/how-do-chat-bots-platforms-work- technical-overview-of-microsoft-skype-slack-facebook-messenger- 4f3076cee04d#.v4mrlbyv4 • Chat bots deep learning http://www.wildml.com/2016/04/deep- learning-for-chatbots-part-1-introduction