KEMBAR78
Deploying Your First Chat Bot | PPTX
DEPLOYING
YOUR FIRST CHATBOT
Josh Somma
@joshsomma
Why have Chatbots gotten so big
all of a sudden?
Deploying your first chatbot @JoshSomma
Deploying your first chatbot @JoshSomma
Why have Chatbots gotten so big all
of a sudden?
BIG
DATA
MACHINE
LEARNING
BETTER
CHATBOTS
The maths…
Deploying your first chatbot @JoshSomma
Source: https://medium.com/intercom-inside/the-end-of-app-stores-dd379e754033#.4941x6vbk
Top 10 Apps – Globally
Deploying your first chatbot @JoshSomma
1. Facebook
2. WhatsApp
3. Messenger
10. Twitter
6. Viber
7. Kakao Talk
4. Instagram 9. We Chat
8. Clash of Clans
5. Line
微信
(Weixin - WeChat)
Deploying your first chatbot @JoshSomma
The case of WeChat –
“Chat as platform”
has been proven as
a business model
ChatOps
Deploying your first chatbot @JoshSomma
Deploying your first chatbot @JoshSomma
SO YOU WANT TO
BUILD A BOT…
OPTION 1: Make a Fauxbot
Deploying your first chatbot @JoshSomma
OPTION 2: build a bot
Deploying your first chatbot @JoshSomma
SDKs available in a variety of languages
Step 1
Develop the bot, application and server
Step 2
OPTION 3: Develop a bot using…
Deploying your first chatbot @JoshSomma
AIML
&
AlaaS
What is AIML?
Deploying your first chatbot @JoshSomma
A.rtificial
I.ntelligence
M.arkup
L.anguage
AIML Categories
<category>
<pattern>WHAT IS YOUR NAME</pattern>
<template>My name is John.</template>
</category>
Deploying your first chatbot @JoshSomma
<template>
What the bot replies
<pattern>
Matches what the user says
AIML Context
<that/>&<topic>
Deploying your first chatbot @JoshSomma
<category>
<pattern>
* SMART PHONE *
</pattern>
<template>
Do you have a smartphone?
</template>
</category>
<category>
<pattern>YES</pattern>
<that>DO YOU HAVE A
SMARTPHONE</that>
<template>Do you have Apple or
Android?
</template>
</category>
AIML Learning
<learn/>&<learnf>
Deploying your first chatbot @JoshSomma
<category>
<pattern>THE SKY IS BLUE</pattern>
<template>I will remember that the sky is blue
<learn>
<category>
<pattern>WHAT COLOUR IS THE SKY</pattern>
<template>The sky is blue</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>THE SKY IS BLUE</pattern>
<template>I will remember that the sky is blue
<learnf>
<category>
<pattern>WHAT COLOUR IS THE SKY</pattern>
<template>The sky is blue</template>
</category>
</learnf>
</template>
</category>
Pandorabots Playground
Deploying your first chatbot @JoshSomma

Deploying Your First Chat Bot

Editor's Notes

  • #2 Who am I Why i’m giving the talk What I’ll be talking about
  • #3 Headlines - FB messenger bot store; MSFT “conversation as platform” (Tay, Xioaice); Kik opening a bot store – change slide Digital Assistants - Siri, Cortana, Alexa Chatbots have been around a long time What’s driving the growth and interest in chatbots?
  • #4 Headlines - FB messenger bot store; MSFT “conversation as platform” (Tay, Xioaice); Kik opening a bot store Digital Assistants - Siri, Cortana, Alexa Chatbots have been around a long time What’s driving the growth and interest in chatbots?
  • #5 Machine learning and neural networks are producing much more sophisticated bots AI is beating chess grandmasters and winning at “Go” Sophistication of language recognition software is increasing Big data analysis of billions of emails, text messages and search queries to determine language patterns
  • #6 Mobile is the internet Whole generations and geographies skipping desktop as a UI Apps own the mobile experience Many of the top apps are chat based messaging services Chatbots integrate seamlessly into chat apps
  • #7 Started as a messaging app but has now extended to become a full-fledged platform Users make hotel reservations, split bills, make doctor appointments, buy movie tickets, and shop via text message. 20 milion companies using the platform as a key commerce and marketing channel Originally had humans responding to text messages but are now replacing with bots to handle the interactions Western tech companies are looking to emulate this success Integrated with a payments system, bot based interactions are driving huge revenues
  • #8 #Slackbot Hipchat @Squiz Hubot
  • #10 Citymapper gobot Refactor UI of existing applications to use a chat interface Not a true bot experience but a good way to experiment with your users
  • #11 github/hubot Microsoft/BotBuilder
  • #13 About AIML A type of weak A.I. know as pattern matching AIML is a form of XML that defines rules for matching patterns and determining responses. Developed by Richard Wallace and open source community between 1995 – 2002 Specification 2.0 came in 2014 Similar to a scripting language Supports variables, conditions, loops, arrays and key values pairs Can return HTML and JavaScript
  • #14 AIML bots are collections of files Example of category 3 basic types of categories Atomic Default Recursive
  • #15 Can use <that> tag to refer to the last template the bot responded with Can group categories under topics Like programming languages or movies
  • #16 <learn> tag can teach the bot categories within the conversation but the bot forgets the category <learnf> writes a new aiml file with categories that can be accessed by other users