Sign in

Image by Computerizer from Pixabay

The past decade has shown a rapid increase in the implementation and use of chatbots by many industries. With the shift to a more digital world and changes in the current economic environment as companies are examining ways to reduce expense, it’s likely that chatbots will continue to replace humans in many areas. From customer service, to scheduling, answering FAQs, and billing, the incorporation of chatbots for these services will become more and more common place.

Although the first chatbot was developed at MIT in the 1960’s, chatbots really started coming into mainstream use in the last decade. The level…

Design of Experiment (DOE) has been around for hundreds of years. I have used it extensively in my career, but I’m always surprised to see marketing departments that don’t fully use DOE or even basic A/B testing (or create A/B tests without understanding the importance of sample size).

One of the earliest known examples of DOE was from the 1700s, when a doctor tried to limit variation and control variables in patients who had scurvy. A couple hundred years later, DOE was brought to the forefront by an English statistician named Ronald Fisher. …

Image by Gerd Altmann from Pixabay

In the previous blog, we were able to create a well performing chatbot with no more than 70 lines of code. In this blog, we are going to cover a slightly more complicated algorithm, although still considerably more simple than a Sequence-to-Sequence (Seq2Seq) model. One thing that differentiates this model from the previous is that it is necessary to have a decent amount of data for the model to be accurate. In our case we are using a file that only has 41 rows, so the accuracy of the model will not be as high due to this.

The file…

Image by Gerd Altmann from Pixabay

In the next few blogs, I am going to be presenting examples of different chatbot methodologies in Python. In these examples we will be using a small list of keywords that would be in a typical chat for an auto dealership. In this blog, the chatbot being developed will be done using one of the most simplistic chatbot algorithms, yet you’ll see that even something as simple as this can be quite effective in communicating with a human.

In the first step, two empty dictionaries will be created, keywords and keywords_dict. With this methodology, it is necessary to put all…

Dave Jacobs

Leader in Digital Marketing Analytics and Data Science. Current focus in Deep Learning and NLP in Python. Visit at

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store