E Book
E Book
Oisin Muldowney
First published 2017 by Curses & Magic, Dublin, Ireland
Text © Curses & Magic 2017
Dewey: 004.019
ISBN: 978-1-9998348-0-7
Contents
Introduction
01 What is a Chatbot? 5
02 A Brief History of Chatbots 6
03 The Future 9
04 Machine Learning, Natural Language Processing, and 14
Artificial Intelligence
05 Customer Service 17
06 E-commerce 20
Conclusion
Introduction
Chatbots are already everywhere. As some of the chapters in this book detail,
they are present in e-commerce, banking, health care, education and libraries.
But still, the really big businesses of the world are only now getting up to
speed with the importance of chatbots. This book is not aimed at them.
They have large budgets and significant IT support staff with whom to
develop chatbots.
Small businesses, however, along with individuals, can also benefit from using
chatbots. And that is what has motivated me to produce this book. In 2017,
we reached a point where anyone, with no coding skills whatsoever, could
create a chatbot. I want to encourage all interested readers to do so.
This book consists of two sections. First of all, I run through the history of
chatbots, some thoughts about the future and instances of how chatbots are
changing cultural activity in all sorts of spheres. The more practical minded
reader might be impatient to get on to Part 2: Building Your Chatbot. But
I would encourage you to at least dip into some of the earlier material.
Naturally, I’m biased, but I think these chapters are both stimulating and fun.
I owe thanks to several people, especially Joe Crawford, Julian Howard and
Chris Knight for their work on the manuscript. Also to Avi Ben Ezra and Henri
Ben Ezra, the founders of SnatchBot. I met Avi and Henri at a Chatbot Summit
and was impressed by their demonstration. In this book I make heavy use of
the SnatchBot platform, because not only does it allow you to make your bot
for free, it’s very intuitive. Thanks both for your patience in responding to what
must have seemed like an endless series of emails.
1
Part 1 Explaining Chatbots
Chapter1: What is a chatbot?
Chatbots exist for hundreds of other reasons, including just for the fun of the
conversation. There is a website with a chatbot, Mitsuku, that claims, ‘you
need never feel lonely again.’ And while Mitsuku is primarily there for the
enjoyment of chatting to her, there is a serious side to this claim. There is
scholarly evidence for the fact that any kind of conversation, including that
with a chatbot, is better for human wellbeing than none at all.
You can encounter chatbots on various different platforms. When you ring an
organisation, for example, and get through to recordings which you navigate
with your response, that’s a kind of voice-based chatbot. Google’s Assistant
and Apple’s Siri are also voice-based types of chatbot. As for text-based chat-
bots, you are likely to see them pop up on websites with increasing fre-
quency. But the real reason for chatbots becoming so pervasive is that
people are spending more and more time messaging each other and less
time browsing websites. Instead of leaving your platform (e.g. Facebook
Messenger) you’ll use chatbots to connect to the vast online world. And the
experience will be more helpful and dialogue driven than navigating on your
own.
2
Part 1 Explaining Chatbots
Chapter 2: A Brief History of Chatbots
Chatbots have had a long history, but now they are really coming into their own.
Photocredit: Zapp2Photo/Shutterstock
App replacement
Among the companies who were quick to use the technology were Uber and
Dominos Pizza. Uber users can now request, track, and pay for an Uber with-
out leaving their Messenger, Telegram, and Slack conversations. Dominos
takes a similar approach, allowing hungry customers to place their order and
monitor its progress within a range of platforms including, but not limited to,
Messenger, Echo, and Android. This type of medium is often referred to as
‘conversational commerce’. Rather than a static purchase process, users
interact and make purchases in a back-and-forth digital conversation.
Moving forward
The future has never been more ripe for chatbot success. Messaging chan-
nels are embracing chatbots and providing them with advanced technical
capabilities. Brands are increasingly more open to the advantages this tech
helps them gain. And there is a dynamic in the current situation that might
well lead to a massive leap forward for chatbots, beyond anything that apps
achieved. Chatbot development platforms like SnatchBot and Chatfuel make
it possible for anyone to create a chatbot. We are swimming in the rising
waters of a tsuami of chatbot creation and should millions of crowdsourced
chatbots be linked in a fashion that allows them to learn from their interac-
tions… well, that would be the basis of a revolution more profound even than
the internet.
5
Part 1 Explaining Chatbots
Chapter 3: The Future
Was 2017 the year of the Chatbot?
Other than the self-driving car, it’s hard to think of a technology that has cre-
ated more buzz than the chatbot. Chatbots, we are told, are set to revolution-
ize everything, but especially, e-commerce, banking, health-care and educa-
tion. Just as the app took online activity by storm and has been adopted by
everyone, the chatbot is going to do the same.
One useful place to start in answering this question is with Microsoft’s Bot
Directory. Here dozens of interesting bots are featured and playing around
with a few really does make you see the possibilities. Although none of them
yet really grab me as essential, I can see the value of most of these bots,
especially those that help in organizing my time and motivating me to exer-
cise. This directory is now closed to new bots and here we get the first hint
that bot development might really be moving at a fast speed: There are too
many new bots for the directory to keep up. Another directory, far more com-
prehensive, can be found here, and again, if you want to get a taste of what’s
possible, it’s fun to play with these. But again, too, this list is already behind
the times. 6
Part 1 Explaining Chatbots
The big companies step up their chatbot activity
It’s the big players who are likely to drive forward the use of chatbots in
modern culture. And where are they on the issue? The answer is, we are now
seeing definite enthusiasm for, and commitment to, chatbot development.
I think it would be fair to say that Apple’s Siri is a voiceactivated chat bot. And
if so, then the support given to Microsoft users, Amazon users and Google
users by Cortana, Alexa and Assistant respectively, show a quantum leap
forward in this kind of software.
Text-based chat bots with a more focused role to assist client engagement
with a library, or health care organization, are spreading like fire on petrol. One
massive stimulus to this was Facebook’s decision to allow bots on Messen-
ger. This saw around 100,000 developers create 100,000 bots for the platform
in the first six months.
So yes, 2017 will be seen as the year of the Chatbot. Not just because the
large companies started using them, but because that was the year it became
truly simple to create your own.
The Future of Chatbots: An Interview With Avi Ben Ezra of SnatchBot.me
8
Part 1 Explaining Chatbots
Back in the 1980s, I took a philosophy exam and answered a question about
whether artificial intelligence was possible or not. Blade Runner had just
come out and as I loved it, I answered ‘yes’ by writing an imaginary conversa-
tion between a human volunteer and a program speaking over the phone. I
didn’t know the word then, but I was writing about a ‘chatbot’.
In 2017, I had the opportunity to talk to Avi Ben Ezra, the Chief Technology
Officer of SnatchBot. Founded in January of 2015 with the goal of making
bot-building easy and accessible, SnatchBot is a fast-growing Israeli com-
pany. Avi is the architect of the platform and the user interfaces.
I brushed up on my interest in the subject of chatbots and asked Avi about his
vision of the future.
I think so, but let’s split this question into two parts: what we can be sure of
and what we can speculate about.
We can be sure that more messaging APIs are opening and as they do there
will be growth in the number of channels supporting chatbots. For instance,
WhatsApp is joining the fun. WhatsApp is the number one messaging plat-
form in the world, yet so far, no one is allowed to build chatbots for it. We
know Facebook (their parent company) is working on this. Expect news very
soon.
Big brands are investing in chatbots, streamlining some of their processes or
simply turning their brand into an approachable conversational experience.
Consumers are more willing to engage with chatbots, providing the chatbots
are entertaining and providing relevant information. Put this all together, and
we see a rapid evolution in chatbot-human interactions. Already, it’s possible
to build chatbots that respond to emotional content (whether the person
sounds cheerful or happy, agreeable or discontented) and tailor the chatbot
response accordingly.
9
Part 1 Explaining Chatbots
Now, to the speculative part. There is a huge discussion about what makes
for consciousness, and my belief is that it will be possible to create fully sen-
tient software. Some physicists believe our universe is a model and so we are
sentient software. Having said that, there is a major tipping point to reach
before we can talk about true AI. The chatbot has to be able to learn and it
has to be immensely more complex. It’s well known that the brain has more
potential pathways than there are atoms in the universe. Currently, chatbot
pathways are extremely crude in comparison.
It could. I think so. There are other paths to AI, of course, but those based on
pure research don’t have the same momentum as chatbots currently do. What
we are trying to do with SnatchBot, for example, is a kind of crowdsourcing of
the creation of chatbots. If thousands, millions even, of chatbots are being
created and linked up you really are harnessing the kind of intellectual energy
that leads to technological revolutions.
And that, to me, is a really important point. Human language and conscious-
ness evolved together over millennia. We can accelerate that process dra-
matically for AI and language, especially if we can contribute to the process in
our millions. Everyone should have a bot and perhaps it’s not too long before
everyone will.
10
Part 1 Explaining Chatbots
Chapter 4: Machine Learning, Natural Language Processing and Artificial
Intelligence
Rapid strides are being made in Machine Learning and AI, which are crucial for successful chatbots.
Photocredit: Zapp2Photo/Shutterstock
All three of these concepts come together in the world of chatbots, because
the chatbot is a machine that responds to human language and tries to do so
intelligently. Clearly, chatbots need Natural Language Processing. But it is
less clear whether they should be constructed with AI or Machine Learning or
both. To some extent the answer depends on the scope of the task for which
a chatbot has been designed. Many chatbots will have a relatively narrow
purpose, let’s say to answer questions from prospective students about
course content. For this task, a machine learning approach would seem ap-
propriate.
No knowledge of the actual college courses or expertise in career guidance
would be needed to improve the chatbot, instead, someone – without needing
any coding skills – would monitor the interactions and make adjustments to
the chatbot’s structure in the light of instances where the conversation did
not lead to the appropriate information being supplied to the student. A col-
lege wouldn’t have to do anything more sophisticated than this, but it is
worth noting that the process of analyzing ‘failed’ conversations could in turn
be automated, as could the process of adjusting the chatbot, creating a more
genuine case of Machine Learning. 12
Part 1 Explaining Chatbots
Let’s suppose the chatbot has been created for a much more open purpose,
to provide advice to researchers utilizing a large, complex archive. Here, the AI
approach would make more sense. Not only will the chatbot need a large
vocabulary and knowledge base, but also the decision-making process for the
chatbot (e.g. whether to refer the client to one archive collection or another)
will have to have been informed by the experience and knowledge of a human
expert. Instead of handling routine queries, the archive chatbot is discussing
in some depth the goals of the researcher and trying to match them to the
appropriate archive. This is a challenge that can be met, but it requires much
more input from humans and improving the outcomes for such a bot will be
much harder to automate. Analysis of where the archive bot goes wrong will
be much more focused on understanding the language and meaning of the
human responses than with the narrower type of role, where the bot has a
more simple task.
Learning for an AI orientated bot takes place in a fashion that is already evi-
dent in Facebook’s new M service. This chatbot refers tasks that it cannot do,
such as make a reservation at a restaurantt, to a human operator. And as the
human carries out the task that the bot was not yet able to do, it learns from
the example. The goal is that in the long run, very little human input is needed
as the chatbot has a comprehensive range of abilities and answers.
It should be evident from these concepts that the kind of runaway super-AI
that has been speculated about and which is a concern for some, is a very
long way off. What this means for chatbots is a much more modest but never-
theless important claim. It is now possible to create chatbots that ‘learn’ in
the sense that they can rapidly become more sophisticated and successful in
their desired roles, even when created and run by people with no coding back-
ground.
13
Part 1 Explaining Chatbots
Chapter 5: Customer Service
Chatbots are the New Kings of Customer Service
Across all customer service businesses and departments, the chatbot repre-
sents the biggest sea-change to the industry since the onset of the outsourc-
ing trend. Chatbots using natural language processing, contextual knowledge
graph-accessing, accessible in AI driven booths or kiosks can act as the front-
line service agent for websites, mobile apps, in stores, and across corporate
offices, and this is only the beginning.
IBM quotes estimates that Chatbots and their successors will save businesses
$8 billion each year by 2020. Many reports suggest cost savings of around
30%, while the time saved for key customer support personnel could be
equally dramatic, allowing them to focus on only essential queries.
The key success metric for Chatbots is not necessarily revenue, or cost. They
are quick, easy and low-cost to install, operate and maintain thanks to Cloud
services. The success metric is time saved. A chatbot can eliminate large
numbers of phone calls being made, emails needing to be read and other cor-
respondence being generated. Their 24/7 nature also allows companies to
14
Part 1 Explaining Chatbots
expand their presence around the clock and maintain some type of support
coverage.
Many businesses already know this, and others are catching up fast thanks to
the proliferation of chatbot creation websites. Everywhere a company has
visibility, a bot can be placed. It is hugely significant that instead of a poten-
tial customer having to leave their favourite messaging platform to search out
a company, the chatbot can interact with the customer where they spend their
time. Chatbots are saving customers time and effort as well as valuable time
for key human resources, allowing human staff to deal with difficult custom-
ers, complex requests or cases that need empathy and so on.
In some areas of customer service, chatbots are already seeing rapid familiar-
ity among consumers. The likes of Domino’s and Pizza Hut can take orders
using Facebook Messenger, with Amazon Alexa and Twitter as alternate con-
tact points.
The trick for the next generation of chatbots is to expand the ecosystem and
intelligence to put the chatbot anywhere, anytime and ability to improve how
it responds to user needs. While chatbots might be tightly focused now, more
conversational chatbots will be needed soon for the travel or tourism industry,
chatbots that can deal with complex requests like, ‘I need a flight to Miami
today, and need to be in China for Monday. Plan my flights.’ Intranet bots
working within a business will need to understand ‘I need a team call at 4PM
EST and message Sarah that I need her figures.’ In order to understand the
meaning of ‘team’ and who is ‘Sarah’, the AI will use directories and user his-
tory, but it had better get it right.
By saving busy people time, and likely money, chatbots will rapidly grow to
become the go-to source for information and interaction. When that becomes
common at the executive level, every business will see the effect trickle down,
helping to replace slower lines of communication or replacing outsourced
services with a dedicated AI bot that will know the company better than any
human.
For now, these two digital creations remain fairly far apart. VPAs live on smart
home or consumer devices. Chatbots largely inhabit browser pages, Facebook
Messenger, or apps. Even those created by the same companies like Google,
Microsoft and others
15
Part 1 Explaining Chatbots
reside in the cloud and are kept distinct (Amazon Lex vs. Amazon Echo and
Alexa, Google API.AI vs Google Home and so on).
This distinction will soon close, however, as business users and consumers
see their needs merge. Siri or Alexa might link to a different cloud service to
provide companies with access to chatbot resources, but we are rapidly head-
ing to a world of voice-chat to increase interaction.
That will allow those AIs to stretch their chops when it comes to measuring
stress or annoyance, which is likely to be one way to get to talk to a human
operator, fast. Translation could be another benefit and greater access to
other data resources will see chatbot’s knowledge potentially grow. The ques-
tion for business is what’s better, a series of chatbots that have narrow fields
of expertise, or one uberbot capable of handling any request? I suspect that
most will stick to the specialized type to allow for fine control and evolution,
but still expect them to be more accessible as the push to be helpful any-
where and everywhere grows.
Any business looking at chatbots should start out small and simple, handling
the most common or regular of requests, before building out chatbot exper-
tise and knowledge to better help the company.
16
Part 1 Explaining Chatbots
Chapter 6: E–Commerce
Chatbots Put the Smile into E-Commerce
There is a trend on many e-commerce websites that is both chilling and excit-
ing. The arrival of a pop-up chatbot enquiring if it can help marks a major
design change. This is a serious move for many websites, with a popular but
often unproven avatar willing to do your company’s business. Chatbots also
appear on mobile apps, Facebook Messenger and other social media plat-
forms, making it the current poster child for customer feedback and interaction.
Bots come in many forms. Fynd’s Fify or Shopify Messenger help make shop-
ping in product-heavy stores simpler. China’s WeChat offers a plethora of ser-
vices, from ordering pizza to hailing a cab, while SnatchBot aims to deliver
free chatbots across multiple platforms on a massive scale.
The key reasons for deploying chatbots include helping a company reduce
costs, automating processes and providing faster, more modern shopping
experiences, especially as chatbots learn what customers like. Chatbots can
also help increase the range and breadth of digital customer engagement,
providing multiple services in one place. As people swap from social media to
websites to apps, it makes sense for the same bot experience to follow them.
Chatbots also allow a company to tailor its branding messages much more
effectively than a static website. The character of the company - dependable,
cheerful, witty, sombre, etc - can be built into the chatbot’s style of communi-
cation. Nuance will be key to the success of bots, especially for fashion and
holiday shoppers. Being able to understand sizing, color or pattern compat-
ibility, or what makes a good family holiday vs. a romantic weekend, and
expressing those sentiments naturally are all part of the challenge of this
growing technology. Perhaps the ultimate end of the bot is as a concierge
service handling multiple needs in one conversation. Bots can also act as a
partial alternative to call-center agents dealing with shopper queries. Or, as a
total help solution if the company, typically a startup, lacks the resources for
traditional customer support, but only as a temporary measure. At best, a
chatbot should be able to hand off to a person and let them know real-world
help is on the way, when it has run out of options.
But, the key focal point is the customer. They need to be aware of what chat-
bots offer, that they are talking to a machine and to understand and appreci-
ate the benefits and to feel that it helps or rewards them in some way. In
e-commerce, chatbots can help customers find the product they are after, can
direct a user to the correct support information, and even take orders and
payments for fast food deliveries. But this is only the beginning, a chatbot
with awareness can remind
18
Part 1 Explaining Chatbots
customers when it is time to buy consumables, or to enquire about customer
satisfaction. Customers need to be educated about this, which is tough if that
first point of interaction is a blunt, ‘Can we chat?’ message on a screen. In
whatever market, the key trait of any good chatbot will be to meet the needs
of the customer. If a chatbot doesn’t know the answer, a boilerplate ‘I can’t
help message’ will not be acceptable. When the bot is starting to struggle,
then human help may be needed, which is why no company should rely on an
all-bot solution, at least not yet.
From the developer’s side, SnatchBot’s Avi Ben Ezra believes, ‘the point is that
humans seem to like the interaction more than just browsing websites. If a
site is going to have a large chatbot attraction splashed across its home
page, then there had better be some value or entertainment to make it worth-
while engaging with.’ He could be right, looking at UK brand Unilever for exam-
ple. their PG TIps beverage advertising puppet monkey managed to raise over
$385,000 for charity thanks to the creation of a mirthladen chatbot on Face-
book Messenger. For brands, putting a smile on a customer’s face will be a
key part of getting them engaged with bots in the future.
Email vs Chatbots? Which are the better e-commerce tools? Photocredit: Blurryme/Shutterstock
19
Part 1 Explaining Chatbots
Email is among the highest performing marketing channels. It regularly out-
paces other mediums, with research showing that email drives customer
acquisitions at a rate 40 times higher than Facebook and Twitter - combined.
Email also ranks near the tip-top for ROI in marketing. Global brands appreci-
ate and understand its effectiveness.
There are numerous similarities between Facebook Messenger chatbots and
email. They are both highly targeted, direct forms of promotion. Whereas tra-
ditional ad mediums like billboards and TV seek to reach the widest possible
audience, email and Messenger send a specific message to pre-selected and
segmented consumers. Also, both seek to not just bring awareness to a prod-
uct or service, but also to link the consumer to where they can make a pur-
chase or complete the sender’s desired outcome.
With these similarities, the question arises: do Facebook Messenger chatbots
provide a superior alternative to email marketing?
In order to overtake email, Messenger bots must first identify either a defi-
ciency in email marketing, a clear superiority in it’s own platform, or both. If a
brand has seen consistently strong results from email marketing, why move
away?
To compare Messenger bots and email, I’ll first examine the technological
capabilities and features of each medium. Why? Because the advancements
in chatbots are what makes this comparison possible. While bots and email
seek to accomplish many of the same goals, they do so through different
structures and features. Whereas emails present all content at once, chatbots
would likely start with a proposition, update, or question. From there, the infor-
mation the customer receives will vary based on their inputs and interactions.
Think of email as a speech, and a Messenger chatbot as an interview. Like a
speech, email is a one-way communication, with all of the information being
presented in one continuous sequence. Messenger is comparable to an inter-
view in that it exists as a series of back-and-forths with one side attempting
20
Part 1 Explaining Chatbots
to gather information (the bot), and the other (the human) providing that infor-
mation based on the questions asked.
Email consists of a single, vertical layout of content. They can contain multi-
ple images, lines of copy, and links. Emails can also present a variety of mes-
sages and CTAs within one communication. Size constraints, however, limit
the capability of email to send larger, more engaging content such as video
and audio. Also, recipients rarely complete a desired action within the email
itself. Rather, the email compels the user to do something and links them to
where they can do it.
Messenger chatbots, on the other hand, are built for a smaller amount of con-
tent. Imagine putting all of the content from an email newsletter into a Mes-
senger chatbot. It would be enormous, nearly impossible, to scroll coherently
through and an utterly awful user experience. A practical application of Mes-
senger would break content down into small, easily digestible bits. The con-
tent, order, and number of these bits is determined by how the recipient inter-
acts with the bot.
To gain a better understanding of how the two mediums compare, let’s exam-
ine a practical application. In this case, a reminder from a car company that
your vehicle is due for a service.
An email is sent that informs the customer that their car is due for a service.
A CTA links to a web page in a browser where the recipient can select their
dealership and see available dates. A date is selected, booked and an email
confirming the appointment is sent.
21
Part 1 Explaining Chatbots
Messenger chatbot
A message is sent that informs the customer that their car is due for a ser-
vice. It asks the recipient a date and time they’re available and sends appoint-
ment times based on that customer’s inputs. The customer selects the one
they want (either through a quick-reply or text input) and the bot confirms the
booking. The bot also configures to send a reminder message a day prior to
the appointment. Ultimately, Messenger is appealing to marketers because it
provides the direct contact and accuracy of email without any of the content
or actionability limitations. Bots can provide a richer, more interactive experi-
ence, and therefore become desirable. The challenge lies in identifying how
Messenger features are beneficial to your customers and incorporating them
into your message.
But, if you’re going to be. ‘reaching consumers where they live’, you had better
make sure you knock first.
Both email and Messenger require that consumers first indicate that they are
interested in receiving promotional messages before a brand can send them.
Messenger chatbots cannot broadcast messages to profiles that have not
already interacted with that bot. Ultimately, this is a good thing for both medi-
ums. The more consumers are spammed, the less likely they are to open real,
quality messages. Tight rules keep the ecosystem clean ensuring that it
remains viable for both users and advertisers.
Messenger requires that broadcast recipients must first interact with that bot.
So, their first experience will most likely not be an email-type message.
Rather, it will be activated by however they stumble upon the bot.
23
Part 1 Explaining Chatbots
This could be:
• A branded Facebook post explaining and encouraging interaction with the bot.
• A social or banner ad linking to the bot.
• An email that explains the bot, it’s benefits and links to it.
As such, first impressions are critical. Within that initial interaction, the chat-
bot must entertain the user to the point that they opt-in to continuing to
receive communications through that medium.
However, have you ever bought something, and while paying, had the cashier
ask you for your Facebook profile? Most likely you have not (unless they’re
looking for a date).
Luckily, e-commerce provides the opportunity get around this and start linking
Facebook profiles to purchases. When consumers buy something online, the
site usually requests an email address, to which a purchase confirmation and
receipt are sent. If this email address was replaced with Facebook, the same
post-purchase information could be sent through Messenger.
This would:
The solution to this issue likely lies in persuading brands that email and bots
are not mutually exclusive. Simply, each has it’s own specialties. Also, many
products have customers across all ages. Going all-in on Messenger would
exclude older customers, while relying solely on email means missing out on
younger, growing audiences.
Deliverability
Messenger and email receive and store messages in very different ways.
Each email is treated as it’s own entity, and kept separate with a distinct sub-
ject line. Some providers such as Gmail go so far as to classify messages into
separate folders such as Promotions and Social.
With Messenger, all messages from a sender are kept in one, continuous con-
versation. This means that sending a new message will bump your previous
conversations further up the screen. If you send too frequently, some mes-
sages will end up pushed to a place where they are unlikely to be read. Also,
bot conversations change in appearance as the consumer proceeds through
them. For example, once a Quick Reply is selected, the other options are no
longer displayed. Bot builders need to understand this, and adjust to the
entirety of their messaging existing in one place.
25
Part 1 Explaining Chatbots
Consistency of appearance
As a result, coding and testing an email so that it displays perfectly across all
combinations is one of the most expensive and time consuming aspects of
email marketing. But, should you choose to skip this step, it’s likely that
images, layout, and links may break when a recipient opens the email on a
setup different than yours.
Messenger is the clear winner over email in consistency. Despite slight differ-
ences, Messenger functions nearly identically across platforms. What you see
on your desktop is virtually the same thing you would see on your mobile
device. This eliminates the time and money email requires to get to market,
while also ensuring that the message appears exactly as it is intended.
Takeaways
At the end of the day, Messenger chatbots and email should be judged for
their merits based on how they match up with your brand’s needs. Your prod-
uct, target market and existing strategies and infrastructure will determine
your uptake and usage of either medium.
At the very least brands should evaluate and test how Messenger chatbots
can take the stress off of their email plan open up new doors to customer
acquisition and retention.
The early bird gets the worm, so get out there and start shaking things up.
26
Part 1 Explaining Chatbots
Chapter 7: Chatbots vs. Apps
In the future, will people access your business via app or chatbot? Photocredit: Zapp2Photo/Shutterstock
The choices for businesses continue to widen when it comes to their digital
footprint. Everyone should have a website, but should they have an app, a
dedicated mobile site or a chatbot?
For most businesses, the terrible reality of apps is that no one will care about
yours. Unless your name is Facebook or Amazon, your app has phenomenally
small odds of seeing much adoption, even among core customers.
If your app mirrors website content, what’s the point of having a separate
product? If it has some cool features or tools built in, how are you going to tell
the world about them? Especially when competing with dozens of other apps
that do the same thing? With thousands of new apps releasing each month,
the chances of yours being a success are vanishingly small, and the chance
of a return on investment is similarly miniscule.
For most businesses, the key reason for an app is to provide information or to
create support or communications tools. However, it would seem logical that
if the likes of Facebook and Skype, and their billion-plus users have already
done the hard work of gathering users together for you, why not build a chat-
bot that leverages that success?
Using a simple and intuitive chat-builder tool, you can greet and guide visitors
to a range of solutions or information through logical steps. Picking up on key
conversational requests, the bot can guide a conversation easily. Not only can
chatbots be useful, but fun and time-saving, with only serious requests for
help being put through to customer service points of contact.
With the chatbot easy to run on multiple platforms, it will take some time to
build one that can address all the queries your business usually comes
across, but the brilliance of a chatbot is that it can be updated to address new
types of requests at any time.
Chatbots vs apps
Having established that it is easier and less costly to create and launch a
chatbot than to do so for an app, there are other reasons to consider a chat-
bot first. IT research types believe that by the start of the next decade, some
85% of computer or smartphone based interaction will start with a chatbot or
AI type interface.
That’s a pretty fast move to adopt technology and every type of business
from retailers to customer-service focused businesses can all see the money
and time saving efforts in having the 75% of minor queries dealt with by a bot.
Important issues can be easily escalated by the bot, and more importantly it
can direct queries to the right people, rather than leaving people addressing
generic customer service email point of contact, or left in, ‘press x to talk to
accounts/retentions/returns/’ loops.
28
Part 1 Explaining Chatbots
While many brands and retailers will continue to rely on their app, for smaller
businesses, the need for the app diminishes as chatbots can deal with most
requests. And, as social media adoption grows, your business may as well
have its chatbot on a Facebook page, website or messaging rather than
buried in a costly dedicated app.
Summary
If you already have an app, consider what it does for the company, and the
business benefits, among the cold hard data like downloads and interactions.
Consider a bot as a friendlier, more accessible option. That is certainly the
case for businesses large and small, and the rise of bots is something that is
taking over many facets of customer interaction. The app, much loathed by
Steve Jobs, may have created many success stories. But increasingly, it is the
chatbot and the rise of AI that represent the future of interaction with custom-
ers. And people are lapping up bots, which are always available, instantly
accessible and can be created with more personality than a hold tone.
29
Part 1 Explaining Chatbots
Chapter 8: Banking
Banks using chatbots are two steps ahead of the field
A close look at how chatbots are shaping the future of banking. Photocredit: TIppaPatt/Shutterstock
Look closely and you’ll see that banks have long been leaders in adapting new
technologies. From SMS balance requests to IVR telephone banking to apps,
a highly competitive environment forces banks to deliver value to their clients
in new ways. Banks typically provide products that are nearly identical to
those of their competitors, leaving innovations in customer service as a main
driver in retention and acquisition. The latest of these innovations lies in chat-
bots and conversational interfaces.
Until recently, bank clients had to rely on physical branches to answer com-
plex questions. Stand-alone banking apps either lacked the functionality to do
so or failed to present it in an understandable manner. Chatbots allow us to
ask the difficult questions that traditionally required a trip to the bank, from
our own devices and our own homes.
A medley of functions
Capabilities vary from each bot, with some offering highly complex investing
and lending features and others focusing on common transactions like check-
ing account balances, paying bills and transferring funds.
30
Part 1 Explaining Chatbots
Potential features include:
Retail banking:
User/account registration, dual factor authentication, branch locator, spend-
ing analysis, contact requests, cheque orders and lost/stolen card cancella-
tion.
Blockchain transactions:
Bitcoin and Ethereum.
Digital Banks
The omnipresence of the internet has enabled the creation of online-only
banks. These banks that exist solely in the digital realm tend to cater to
clients who are looking for basic functionality at a low price. Some are taking
this even further, creating bots that allow you to connect to your existing
bank. K2 Bank, for example, is an independent bot that provides advanced
banking features through it’s own conversational platform. This means that
you don’t have to wait for your bank to catch up and create their own chatbot.
Customer Impacts
Bank Impacts
Less in-branch activity
Operating a physical branch creates infrastructure and human capital costs.
As customers complete more and more transactions through technology
such as bots, the costs operating and staffing physical branches declines.
What’s next?
If you’re a customer, do a little research to find out what kind of bot your bank
provides. Or, if they don’t yet, services like K2 Bank may be what you’re look-
ing for. As for financial institutions, now is the time to take the next step to
cementing a positive client experience. 33
Part 1 Explaining Chatbots
Chapter 9: HealthCare
Chatbots will revolutionise a client’s experience of health care organisations
Image: Chatbots will connect doctors and nurses of the future with their clients and their digital needs.
Photocredit: Gushkenova/Shutterstock
If you've ever had to visit a health care organisation's website to find informa-
tion, you've probably had a frustrating experience. Even the best are hard to
navigate to find the precise information you want. But that's about to change
thanks to the chatbot revolution, as I found when talking to Henri Ben Ezra,
CEO of SnatchBot.me
What would be the first benefit of chatbots for the healthcare industry?
Chatbots are interactive. At the moment most healthcare organisations have
a passive relationship to their clients when it comes to communication. The
client searches the website unaided. There has been some attempt to provide
information via alternate platforms, but this often worsens the problem rather
than improving it because of a lack of inter-operability between applications.
Most organisations, including hospitals and medical practices, have done
little to advance their client communications systems. Often their best effort
is a question and answer page on a website. This is very limiting and patients
are frustrated. Now for the revolution. With a chatbot the conversation goes
back and forth, allowing the client to navigate towards information they want
with great precision. Users and caregivers are made to feel empowered. Using
a chatbot they receive a better and simpler to operate – through speech - infor-
mation provider which works in real time, answering the questions on the spot. 34
Part 1 Explaining Chatbots
This is efficient, responsive and inclusive.
Not only do consumers want quick, easy access to information, they also
want the interaction to be engaging and personal. This is where chatbots
have a real advantage. The user is made to feel that they are included in the
process of their health. Patients who feel included, who are interacting
through chatbots with the healthcare system, will stay with the system, and
that is important for them and the healthcare provider.
Through Chatbots, answers are obtained quickly and efficiently. Who has the
time to be put on hold on the phone or hustled from one department to an-
other? None of us. We want the information as quickly as possible. A chatbot
saves time, freeing patients up for other activities.
They certainly can be. In our case, with the SnatchBot platform, we pre-build
all the security and administration requirements and scalability that the larg-
est enterprises in the world expect. So chatbots built on SnatchBot.me come
with the highest standards of security. The platform also provides a frame-
work so developers can build bots that perform with remarkable consistency
across all chosen channels.
As a matter of fact, SnatchBot exceeds enterprise-grade standards, providing
not only enhanced security but also enabling administrators to retain exclu-
sive oversight of bot distribution and use, including management of software
licenses, user behaviour insights, and deep analytics. SnatchBot supports all
cryptographic security needs to protect an enterprise’s data. 35
Part 1 Explaining Chatbots
Do you see other benefits to Healthcare stemming from chatbots?
Chatbots can have functionality in so many areas it’s mind boggling. For
instance, appointments can be scheduled. Patients can provide information
which their caregiver may use to reduce unnecessary readmissions and
organise post discharge follow-ups. There is a strong safety net in the func-
tionality too. Alerts can be a function of chatbots. A chatbot can signal hospi-
tal staff if patients need assistance and even inform care teams of urgent
changes in a patient’s status or an emergency situation.
Chatbots can also take much of the tedium out of front office healthcare; they
can streamline admissions, discharge and transfer requests, schedule patient
consultation requests and send/receive referrals. They can be programmed to
facilitate collaboration between peers and update record systems with pa-
tients’ medical history, and to send alerts and notifications for prescription
refills. No longer will a patient turn up at a consultation only to find their
notes have not been provided. Chatbots will automatically send relevant train-
ing material, patient history and pertinent data to the necessary parties ensur-
ing the smooth running of the health system. And while it is nearly impossible
to integrate all information sources, chatbots can create a single system of
records by transferring data from legacy systems to new databases, saving
healthcare systems time and money.
In short, chatbots can save thousands of working hours a year for a health-
care organisation, leading to cost savings and/or a better quality of service
for the user.
How do chatbots deal with the sheer number of different ways people search
for information?
Chatbots allow the patient to interact with the healthcare organisation via
their platform of choice. Every day vast amounts of information are being
gathered and stored in the healthcare sector. It is kept in a confusing array of
different systems, applications and data silos. Chatbots will allow safe
access of this information to the relevant patient, regardless of platform, and
allow the exchange of data from disparate health systems. This will unify the
data stream and manage interactions in a way not previously possible.
In the fast-paced modern world with multiple information platforms, chatbots
unite the digital playing field to provide seamless integration regardless of
location, device or time. The chatbot is able to access information and
respond to patient queries over a range of channels. Wherever the user is,
chatbots provide answers in an easy to understand and conversational
manner. 36
Part 1 Explaining Chatbots
37
Part 1 Explaining Chatbots
Chapter 10: Libraries and Archives
Chatbots and Archives: the Next IT Revolution?
Users will navigate catalogues with the help of chatbots. Photocredit: ESB Professional/Shutterstock.
Can you first explain why you believe a chatbot is more useful for users of
archives than a website search?
Has this been done yet? Are there any working examples?
I’m not aware of an archive that has a chatbot, but as new chatbots for Face-
book Messenger alone are appearing at the rate of thirty a day, I couldn’t be
sure about this. One important example I can point to is that of Emma, was
39
Part 1 Explaining Chatbots
piloted at Mentor Public Library, Ohio between 2009 and 2012. Probably
archives, like libraries, receive a lot of routine questions about opening hours,
location, transport, catalogues and basic searches. This is where chatbots are
extremely valuable, accurate and time-saving. Mentor library’s catalogue was
broken down into something like 30,000 catagories and Emma handled gen-
eral questions about the library – forty percent of user queries – catalogue
searches – another forty percent – and conversations about categories – the
remaining twenty percent.
And this was successful?
Very. It gained increased international use of the library catalogue along with
a greater use of the library by teens and young adults. Emma’s creator won an
innovation in technology award.
Is there a danger though, that this kind of chatbot would herald a reduction in
the number of archivists?
That’s a very relevant question in Emma’s case, because the impetus for the
deployment of the chatbot did come from the library being required to cut
costs. But I don’t think the chatbot is the issue. There is a much wider question
of funding for libraries and archives. What the chatbot does is save time. With
routine queries especially being handled by the chatbot, that frees humans to
do something else. In the case of archives, the more complex queries would be
passed by the chatbot to the relevant expert and the archive outputs, in terms
of successful engagements with users, could be increased.
Also, in terms of the evolution and improvement of the chatbot, there will
always be a need for someone with a deep knowledge of the archives to struc-
ture the pathways of the chatbot’s conversation.
Are there other features of chatbots that are relevant to archive use?
Well, many of the reasons why other customer service organizations are using
bots would apply to archives too. Chatbots allow a user to engage with the
organization twenty-four hours a day. And the chatbot never gets impatient! More
seriously, there are many studies that show even though the user is perfectly
aware that he or she is talking to a chatbot not a person, they still can enjoy the
experience. So crafting a polite and helpful style to the chatbot’s conversation is
part of the art of building the bot and one that projects your organization’s char-
acter. One last thought, if the archive takes orders for reproduction and dissemi-
nation of materials and needs to take payments, the chatbot can easily handle
that. First there was the local catalogue, then the online version, then – for some
institutions – apps. It really does seem like the next step taken by IT in archives
will be the deployment of a chatbot and that this will happen in the near future. 40
Part 1 Explaining Chatbots
Chapter 11: Relationships
Chatbots are going to steal your boyfriend!
Jim: Oh, it’s just my girlfriend. Some days she drives me crazy.
If you ever owned a Tamagotchi, you’ll know that it’s very easy to anthropo-
morphize and form a meaningful relationship with a piece of software. And
that’s the interesting thing about chatbothuman relationships. We humans
know we are interacting with very limited software and yet, despite this, we
are capable of taking a meaning from the interactions. In other words, it is not
like a Turing test, where the chatbot is trying to sneak up on us, leading to a
sudden revelation that we’ve been talking to an AI, instead, we know all along
we are dealing with a chatbot.
Even though we are fully aware that the other partner in the interactions is a
scripted bot with no empathy, we still derive emotional benefits from this.
Philip K. Dick’s story, Do Andriods Dream of Electric Sheep comes to mind.
This is the tale that inspired the film Blade Runner. But for the film, they
stripped out entirely the religious aspect of the story, which is that people can
access a religion via technology. You log in via a black box (which is every-
where, like phone booths) to experience the suffering of a being called Wilbur
Mercer.
At first when you read this, you think the story is offering a critique of technol-
ogy and capitalism. How can a genuinely spiritual experience arise from a
mass-marketed religion? But in fact, there is something deep and important to
feel for those who log in, namely, a shared sense of suffering. This begs the
question of whether the characters are all in some kind of hell that they are
unconscious of.
The reason this parallel occurs to me is that it’s an example of how human
empathy is extraordinarily versatile and imaginative. The technology may be
shallow but the feeling of warmth isn’t. And when it comes to bots, the tech-
nology is no longer so shallow. Their sophistication is advancing
exponentially.
42
Part 1 Explaining Chatbots
An important example is Mitsuku, about whom the creators claim, ‘you need
never feel lonely again.’ But this kind of chatbot is going to exist in a massive
crowdsourced fashion, thanks to platforms like SnatchBot.me. Over at
SnatchBot there are simple yet powerful tools to create your own bot. Among
the tools you can use are ready-made interactions to detect the emotions of
the respondent. We don’t have to reinvent the wheel each time we create a
chatbot. Vocabulary analysis already exists to detect if someone is feeling
sad, humorous, frustrated and so on, allowing you to create appropriate
responses from your bot.
SnatchBot also allows the same bot of yours to hook up to variety of chan-
nels, like Skype, Facebook Messenger and Viber. Thus, it can learn from all of
these interactions.
Billions of interactions will take place between humans and chatbots this
year and thanks to platforms like SnatchBot, the numbers of people creating
bots is going to show an explosive growth. Feeding back the analysis of these
to deepen the emotional impact of chatbot conversations is going to lead
very quickly to chatbot interactions of real warmth.
So watch out. Bots are going to soon be able to steal your boyfriend!
A Parentbot would allow you to engage your kids in their message app. Photo: Shutterstock/Asife.
43
Part 1 Explaining Chatbots
It can be hard to keep up with your kids. Even when they are in the same room
as you, they are messaging constantly, perhaps on Snap or Whatsapp or Mes-
senger. Their messaging world, however, is experiencing a revolution in the
form of chatbots. This presents a chance for parents to jump one step ahead
of the curve. It’s time for Parentbot, a chatbot that meets teenagers where
they spend their communication time.
This might sound unexciting, except that chatbots are becoming more and
more sophisticated and can even identify the mood of the person talking
to them.
If you’ve ever used Apple’s Siri, then you’ve dealt with a voice-activated type
of chatbot. And similarly, Cortana, Alexa and Assistant, the chat assistance
for Microsoft users, Amazon users and Google users respectively have devel-
oped rapidly.
Even more relevant to teenagers was the decision by Facebook to allow chat-
bots on Messenger. Within a year, roughly 100,000 developers created
100,000 chatbots for the platform.
Which is what gave me the idea for Parentbot. It has now become trivial to
create a chatbot that can address your teenagers via their favourite messag-
ing app. And what would your chatbot want to talk them about?
Well, it depends. You could set it to issue reminders at certain times. Perhaps,
despite repeated attempts to explain verbally to your Daughter that she needs
to keep Saturday free for dinner with the Grandparents, you feel that you
haven’t gotten through to her. The chatbot conversation might then go some-
thing like this.
44
Part 1 Explaining Chatbots
Parentbot: Hi! Can I speak to you a moment?
Parentbot: I’ll take that as a yes. Did you remember that you have a family
dinner on Saturday?
Daughter: No! How lame. And I told Amy I was coming over.
Parentbot: I’m sorry you forgot. You’ll have to change your plans.
Daughter: ArrgghhhHHH!
Or, you could give your kids a chance to ask you a question. Here’s a possible
logic diagram you might want to use when writing your parentbot.
Have a new guitar? Stay out late on... Have pizza for dinner?
No
You’ve likely gathered that I’m not really serious about chatbots as a parent-
ing tool. But as a bit of fun, they really do work well. It’s surprisingly easy to
inject a certain amount of character or personality into the chatbot, simply by
the way in which it speaks. Your choice of vocabulary and phrasing gives you
the chance to project cynicism, world-weariness, pumped-up, exaggerated
enthusiasm, etc.
45
Part 1 Explaining Chatbots
And the chatbot allows you to enter your kids’ messaging world relatively
unobtrusively. You’re not peering over their shoulder, you’re not even muscling
in on a list of contacts that is otherwise all teenagers.
Rather, your kids know it's a chatbot they are interacting with, not you, but
that you’ve programmed it to deliver certain messages (and at the same time
have a bit of fun with them).
There’s another bonus to this too, which is the kudos of being to the fore in
terms of technology. It’s really only in the last year that it has become possi-
ble to build chatbots painlessly, via simple interfaces. It takes no program-
ming skill at all. Often you can achieve what you want by filling in already-y-
created templates with your own conversation interactions.
Building a chatbot and having it interact with your teenage kids is a chance to
regain that pleasure (which you’ve probably lost) of a younger age, when you
built a toy of some sort together. Chatbots are a new technology for young
and old and they are one that can be explored together.
46
Part 2 Building Your Chatbot
Chapter 12: Getting Started on the SnatchBot Platform
My advice if you are creating a bot for the first time is to start out simple.
Creating too many pathways and options early on could become frustrating,
especially if they don’t work as planned. At least, that was my experience. On
the other hand, once you have a working bot, there is a certain amount of
pleasure to be had in developing it, even if you are building it for purely busi-
ness reasons.
What do you want your chatbot to do? Engage with customers and collect
their emails for your list? Sell products and manage payments? Provide infor-
mation? It’s not too difficult to do any of these and to do so on Facebook
Messenger, Skype, etc. If you concentrate on the core task for your chatbot,
you’ll be up and running relatively quickly. And the great thing about the
recent proliferation of chatbot creation platforms is that you can do this with-
out any background in coding.
Once you have your chatbot carrying out its basic tasks, you can then make
the structure more sophisticated. In fact, it’s not really until the chatbot is
active in public that you’ll get the feedback you need to really accelerate its
development. Once it is live, you’ll have a lot of incoming data to look at. You
will be able to see what people want, what questions they ask, what parts of
the conversation they want to return to and so on. In my case, I created whole
new branches of interactions that I hadn’t even thought of once I saw where
users wanted to take their conversations.
There are several chatbot building platforms out there and it is worth having a
look around to see what the possibilities are. The newer ones tend to be the
easiest to use. This section of the book utilizes the SnatchBot.me platform,
because you can create your bot for free there and the process is very intui-
tive. But a lot of the information in Part 2 – such as connecting to channels
like Facebook Messenger – is transferable to other chatbot building plat-
forms.
To begin the process of creating your own chatbot, you'll need to register on
SnatchBot's website, which only takes a moment. Don’t worry about your
data, their platform uses high-grade security that complies with all regulatory
mandates. Once the verification process and registration is complete, you'll
be able to access your dashboard.
47
Part 2 Building Your Chatbot
When you first log in, you will be taken to the dashboard, which you will use to
see all your chatbot analytics.
Select My Bots from the options in the blue box on the left of the screen and
then click the Create Bot button.
A pop-up will open for you to name your chatbot and choose whether to use a
pre-defined template or not.
48
Part 2 Building Your Chatbot
Next comes the real work. Your bot will communicate with users through
‘interactions’. Interactions come in a wide variety, which give you have a flex-
ible and powerful range of choices for what you want the bot to do, without
requiring any programming skills.
Later you will want to take advantage of the various complex functions and
built-in features such as action buttons, translations, payment processing,
email extraction and many more. All these additional features can be added
without you needing any technical knowledge. But for now choose Interaction
Type and pick the first option, Bot Statement.
49
Part 2 Building Your Chatbot
Tip
Pick names for your interactions that will allow you to distinguish them
from each other. Later, as your bot becomes more complex, you will want
to be able to accurately identify the right interaction to make connections
with. So, ‘Yes to email’ is better than a simple ‘Yes’.
Now, you’ll see editing tools appear on the right-hand side of the page. Start
by filling in the text for the bot’s statement on reaching this interaction. For
example, if this is going to be the starting interaction, your text might read:
‘Hi, I’m a chatbot for the company, would you like to talk to me about our
latest offers?’
50
Part 2 Building Your Chatbot
Now, you’ll see editing tools appear on the right-hand side of the page. Start
by filling in the text for the bot’s statement on reaching this interaction. For
example, if this is going to be the starting interaction, your text might read:
‘Hi, I’m a chatbot for the company, would you like to talk to me about our
latest offers?’
51
Part 2 Building Your Chatbot
Under the heading Bot Structure, you’ll see your interactions listed. Select
one, then click the ‘connect this interaction’ button on the right to make a
connection. Each time you click this button a new connection editing section
opens. You may have to scroll down to see them all.
The connection sections take the form of a logical statement: if x then y. It’s
very straightforward and intuitive, and covers all the possibilities you might
encounter. The best way to learn about your options here is to open the drop-
down menus and look at what is available to you. You’ll see that you can
make connections on the basis of simple responses, but also by using the
Exactly Matches option, you can identify particular phrases in the user’s
response and make a connection to the relevant interaction.
You can also direct the conversation according to what the user hasn’t said.
You’ll spend some time at this stage creating interactions and connecting
them. Note that you do not need to save your bot-in-progress, it is automati-
cally updated as you work.
As you build your bot, you’ll want to test your progress regularly. This is
straightforward. The button you need is in the top right corner of the screen.
52
Part 2 Building Your Chatbot
When you’ve finished the test, just click away from the test page and you’ll
return to your bot.
After configuring your bot, you will want to deploy it for users to access it.
SnatchBot use the term channels for the platforms hosting your bot, e.g.
Facebook, Skype, Email, API and Web Chat.
For information about configuring your bot for a particular channel, see
Chapter 14.
53
Part 2 Building Your Chatbot
Chapter 13: Using a Template from the Bot Store
The quickest way to get started is to use a template or user-created chatbot
from the bot store. Not only does this get you up and running right away, it
also allows you to enjoy the benefits of chatbots that other people have found
to be successful. As this part of the SnatchBot platform is open to users to
submit their bots, it is constantly growing and improving the functionality of
the chatbots on offer.
Let’s suppose you have a restaurant and would like a chatbot to handle your
booking system, freeing busy staff from having to answer the phone and
make the booking (as well as eliminating human error in placing the booking).
There are two ways of finding out if there is a ready-made bot in the store that
might be ideal for your own uses. You can type “restaurant” in the search bar
on the top of the screen, or you can check the categories on the left. Both will,
in this case, lead you to one chatbot in particular, the Restaurant Bot Template.
You can find the SnatchBot Store on their landing page or on your Dashboard
(here).
54
Part 2 Building Your Chatbot
Search for the type of bot you want either using the search option, top right,
or from the category list on the left, then just click anywhere on the chatbot to
access a template that creates a new bot on your account.
Customise your chatbot from the template
To edit the chatbot to make it perform the tasks you need, click on Edit this
Bot. You’ll then be asked to confirm that you want to create a new chatbot
using the template. Say yes and give the new chatbot a name. It will then be
imported into your collection of chatbots. You can view it and edit it in the
usual way by clicking the My Bots option from the menu on the left.
The new bot screen will open automatically for you to rename it and start editing.
Naturally, you’ll want to alter the chat to reflect your business. But that’s a very
easy edit and the basic structure is already in place for you. It’s as simple as that! 55
Part 2 Building Your Chatbot
Chapter 14: Placing your Chatbot on a Website, Facebook Messenger and
other channels
How to deploy your chatbot on a webpage
Placing your chatbot on a webpage is straightforward. Choose your chatbot and
then select Channels from the left-hand column options. There you will see the
option to edit web channel data.
A box will open for you, which has the code you need to add to your website in
order for a ‘Bot’ button to appear in the lower right corner of the page. Click on the
copy button to select this code.
56
Part 2 Building Your Chatbot
It’s that simple and that powerful! Now you have a chatbot on your webpage.
If you’d like to adjust the positioning and look of your chatbot, you can do so by
using the codes in the same window. Scroll down to steps 2 and 3, which allow
you to place the webchat URL where you like and to use your choice of CSS
styles. There are also some further options available for you to customize your
chatbot and how it looks to the user. To do so, click on Customise Webchat.
Now you’ll see options to add in Agent Name, Signature, Contact, Website, Sup-
port Link and Email Link. But the real power in customization comes with click-
ing Advanced Options.
Here, a new page pops up, allowing you to alter the size, colour scheme, greeting
message and more. These are simple to adjust and allow you to create the exact
tone that you want for your chatbot.
Connecting channels
Your chatbot is perfect for handling communications that come to you via popu-
lar platforms. In fact, that’s often the reason you would want to create a chatbot.
It’s very easy to assign a bot to a ‘channel’ e.g. to respond to emails, Facebook
messages, Skype messages, etc. To connect your chatbot to your desired
channel/channels, open your bot editor and click Channels.
57
Part 2 Building Your Chatbot
Each channel has its own way of registering bots, but SnatchBot has made the
process straightforward. Follow the steps on this page of their website and
you’ll connect your chatbot in no time. Note that when you click on the links
they provide, you’ll be taken to the relevant channel websites to put in your
name, login, etc. Basically, what you are doing is registering with the channel
and getting a set of OAuth keys that SnatchBot can use on your behalf.
For example, to connect to Skype, you’ll open a Microsoft window and – assum-
ing you haven’t already done so – create an account as a developer and register
your bot.
58
Part 2 Building Your Chatbot
Once you are done, try sending yourself a message through your channel (e.g.
Facebook Messenger) and you’ll see how powerful a tool this is!
59
Part 2 Building Your Chatbot
Chapter 15: Extracting emails, URLs, addresses and other data
Gathering data such as emails, addresses and phone numbers from your
chatbot’s conversations is quite straightforward. It’s simple to do so once
you’ve set your chatbot up correctly.
You’ll be familiar with the fact that you can choose certain types of interac-
tions in creating your chatbot.
In this case, we’ll take the example of email extraction, but the process is the
same for every kind of data.
Let’s suppose you’ve created a chatbot with an email extraction step and it
has had hundreds of conversations with users. You’ll get an overview of all
these conversations when you click Reports.
60
Part 2 Building Your Chatbot
On the reports pages, you’ll initially be shown all your data. To filter it to just
extracted emails, choose email from the Extracted Data dropdown menu.
This will give you a list of email addresses from across all your chatbots. If
you want to limit the list to just one chatbot, choose it from the bot dropdown
menu.
61
Part 2 Building Your Chatbot
To obtain an Excel file of these emails, simply click the Generate Excel button.
62
Part 2 Building Your Chatbot
Chapter16.Handling payments
How to use a SnatchBot chatbot to manage your customer payments
Much has been written about the abilities of modern chatbots. Among many
other capabilities, their ability to process payments opens many doors for
both brands and consumers. Accepting payments makes it possible for
brands to take many of the functions that previously required standalone
apps and insert them into high-usage messaging platforms like Facebook
Messenger. Doing so greatly increases customer reach and this chapter will
teach you how to enable this game-changing feature in the SnatchBot plat-
form.
Setting up payment information
First, you’ll need to set up the back-end of your payment system. SnatchBot
integrates Paypal for payments. To do this you will need to create an App and
set up a unique Paypal Client ID and a Paypal Secret Key within the Paypal
Developer portal. A guide on this is available here. Once you have that infor-
mation, you’ll need to enter it within the SnatchBot platform. To do this, navi-
gate to your profile by clicking your name along the left-hand menu (second
option from bottom).
Once there, select Payment System, enter your Paypal App ID and Paypal App
Secret, and click Save.
63
Part 2 Building Your Chatbot
Configuring your chatbot
In this case, the payment will be for a gym membership. We’ll begin by creat-
ing an interaction where the payment system will live by creating a Bot State-
ment Interaction. The payment button lives within the Gallery card, which can
be selected from the menu at the bottom of the interaction. Once selected,
click the blue plus button in the middle to create the Gallery card. Next, fill out
the information and image required for the card.
With this info input, click ‘Add Button’, select Payment, and name the button
(‘Purchase’ in this case). Enter the price, as well as the interactions that will
be generated if the payment succeeds or fails (note: you’ll need to create
these as individual interactions) and the size you’d like the window to display
at. Click ‘Add Button’ to complete the card.
Finally, we’ll need to set up the interactions that lead to the Payment card. In
this example, we’ll direct users from the first greeting message. A quick reply
of ‘Membership’ is input, and set up to direct users to the Payment card.
That’s it! Give it a quick test in Facebook Messenger and it should appear like
below.
64
Part 2 Building Your Chatbot
Using the steps above, SnatchBot lets you monetize your chatbot and start uti-
lizing conversational commerce in minutes. This is a crucial function for those
readers who want their chatbot to be a conduit for income generation.
65
Part 2 Building Your Chatbot
Conclusion
Hopefully, you are now up to speed with everything you need to know about
chatbots. Most importantly of all, you should be able to make one for yourself,
even if you have no background in computing. Only a few years ago you’d have
had to either known something about coding or spent a great deal of money to
create a chatbot for your business, say. But as is often the way with our species,
we’ve figured out ways of making tasks easier and more intuitive.
Chatbots have been heralded for some time as the coming innovation that will
change our cultural world. They haven’t done so yet and in fact, a certain
amount of disillusionment has set in. I wrote an article for a tech blog in 2017,
for example, that was rejected, because, ‘I couldn’t get past the idea that chat-
bots are going to spread rapidly.’ This is understandable but mistaken. There’s
often a pattern to the adoption of new technology that often follows the same
path: massive excitement, new buzzwords, new hope, then a decline of interest
and outright public cynicism when technical challenges are seen to continue to
be a major barrier, but then comes a revival of enthusiasm after the problems
are solved and a widespread, game-changing adoption of the new technology.
My belief is that at the time of writing (late 2017), chatbots have reached the
revival point of this pattern. Dozens of companies have answered the challenge
of making chatbot creation simple, intuitive and yet extremely capable of deal-
ing with the tasks allotted to them.
On a longer timeframe, I believe the chatbot road is the more likely one to lead to
AI than the robot building one. In a way, by making chatbot creation so easy
(and for free in most cases) we are crowdsourcing the question of how you get
software to understand meanings from human language. And applying millions
of minds to this task is the right way to create breakthroughs.
66