An Introduction to Chatbots
Joseph Woolf
Jan 31 · 4 min read
With the rise of Siri, Google Home, Alexa, and Cortana, it’s obvious that there’s a
demand for chatbots. In the past, chatbots were more of a niche technology due to
limited functionality. With recent advancements in computer technology, chatbots have
now become practical for everyday use.
What is a Chatbot?
First, let’s define the term “chatbot.” What exactly is a chatbot?
Think of it like a customer support representative. You contact support, they ask about
the problem, you describe them the problem you’re having, they ask further questions
to pinpoint the problem, and eventually you get a solution.
https://medium.com/@josephwoolf/an-introduction-to-chatbots-d19aa2b65637 1/5
30/08/2019 An Introduction to Chatbots - Joseph Woolf - Medium
Now, replace the person with a computer program, the program being an on-demand
Q&A application. That is a chatbot.
Types of Chatbot
Designing chatbots can be quite complex since you’re dealing with intensive computing
power, immense datasets, and ambiguity of natural language. However, we can derive
two main types of chatbots.
Rule-based Chatbot
In rule-based, a chatbot answer questions based on a series of rules. These rules are
predefined by the developer and depending on the user’s actions, would trigger other
rules.
Rule-based makes developing chatbots simpler as you only need to work in a very
limited context. However, this simplicity also prevent chatbots from getting smarter.
https://medium.com/@josephwoolf/an-introduction-to-chatbots-d19aa2b65637 2/5
30/08/2019 An Introduction to Chatbots - Joseph Woolf - Medium
In the image, our chatbot is geared towards helping users shop on an e-commerce
website. When the user go to the chatbot, the bot will first greet the user. Usually this is
a simple “hello.”
While the options aren’t limited to the ones shown above, the user can ask to place
items into their shopping cart, determine whether an item is in stock, and
understanding the refund policy.
Once the user types in a command, the chatbot will perform various actions depending
on the task. The heavy lifting is done in the background and will notify the user once
the action has completed. The user can either follow up with additional commands or
just end the conversation.
However, the chatbot cannot handle tasks outside its domain like tracking items for
delivery or buying tickets for the movie theater near you.
AI-based
With AI chatbots, you utilize a machine learning model to train your chatbot to handle
user input. Oftentimes, chatbots utilize Deep Learning to derive a model. Additionally,
you can tack on voice to text recognition to provide ease of communication to the user.
https://medium.com/@josephwoolf/an-introduction-to-chatbots-d19aa2b65637 3/5
30/08/2019 An Introduction to Chatbots - Joseph Woolf - Medium
Unlike rule-based, you only supply training data to the model and the model will be
tailored to the dataset. This flexibility allows the chatbot to handle complex sentences.
However, since using Deep Learning is complex, it’s harder to fine-tune the model.
Additionally, utilizing it can be overkill for chatbots that work in simple environments.
1. Computing power — While there were extensive theory on AI methods in the mid-
20th century, the amount of computing power wasn’t sufficient. Due to Moore’s
Law, we have been able to quickly and dramatically speed up processing power.
2. Huge datasets — In the past, there wasn’t a lot of data to be had for training and
utilizing AI models. With the rise of the internet and complex system architectures
need to handle petabytes of data, we know have access to an abundant amount of
data.
Conclusion
While we haven’t seen general AI, we have definitely seen more powerful chatbots
taking hold in our daily lives. In fact, you can find many blog posts on how to build your
own chatbot. It wouldn’t be surprising if chatbots became very human-like in a few
years. Now, whether or not you’ll talk to chatbots more than humans is a discussion for
another day.
. . .