As First, We Know That What Is The Actual Meaning Of Chatbot? So, Let’s Start this with that question.
What Is Chatbot?
A Chatbot is a way of conversation between the user and the computer. As simply as we all know that the Siri, Alexa, and Duolingo are some real-world examples of chatbots.
After knowing what is the Chatbot, so let’s knows the few details of the Evolution of Chatbot:-

- The first chatbot , developed by the MIT Professor Joseph welzenbaum in 1960 and the name is known as ELIZA.
- PARRY
- JABBERWACKY
- DR.SBAITSO
- A.L.I.C.E
- SMARTERCHILD
- SIRI (IOS personal assistant in 2010)
- GOOGLE NOW / GOOGLE ASSISTANT
- CORTANA(Microsoft)
- ALEXA(Amazon)
This is the Evolution of chatbot, as every time it will be modified past one and implement to adding some extra and new features with it.
Machine Learning and Artificial Intelligence are the basic parts to learn and develop the chatbot.
Note: If you are looking for creating Python Chatbot using Microsoft Bot Framework, refer to my post here. Microsoft Bot Framework is recommended for enterprise-level bots.
Let’s Move to the implementation
You Firstly Install Some Libraries In python such as :
pip install chatterbot == 1.0.2

You also use a correct version while installing, otherwise, you have an error in installing the libraries
chatterbot – 1.0.2
chatbot.corpus – 1.2.0
After successfully installing the first library you install the second library
pip install chatterbot_corpus

Let’s Open your Favourite Code editor, and give the file name chatbot.py, and create a python file, we will start importing a chatterbot from chatterbot import chatbot and use the trainer as chatterbot trainer from chatterbot. trainers import ListTrainer That helps us to train our data.
Let’s start the instance of our bot, let’s define my_bot and pass the argument, as next, we use read_only = true which means you can able to learn it. we use the adapters like logic_adapters that use to train the adapters.

Let’s Define Small_talk:-

Let’s define math_talk_1 and math_talk_2:

After that, We used a for loop to learn to communicate, after that we are import chatterbot. trainer which will help to train our bot.

Now, we Can Use corpus_trainer to import chatterbot corpus trainer

After, that we can run it into our compiler, by using the command python chatbot.py

After, compiling successfully we can ready our chatbot :

Conclusion
This Is Just a small illustration of what to Create a chatbot. With the help of python, you can create your own chatbot. You also modify it by applying new languages and algorithms.
Leave a Reply