Skip to content

lukasabino/WhatsApp-ChatBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple chatbot for WhatsApp! 🤖💬
GitHub stars GitHub followers

⚈ About & How to use

Disclaimer: this is my first project with chatbot. This will evolve over time. I appreciate any contribution. Thank you!

Quite simply, the program can create an uninterrupted conversation between the computer and the selected person. The program starts by asking for the name of the person or group you want to start a conversation with. Pay attention as it is necessary that the name of the person or group is written exactly as in your WhatsApp application. The program will open a Google Chrome window directly on the page. You must log in as you normally would.
** Gosh, NOTHING HAPPENED **
Easy, easy. You simply need to confirm the login with an Enter in the terminal.

Now wait and ... It will start like magic! err... Sorry, Elon Musk. I mean "Like intense study days".

🚧 Don't forget that it's still in progress... 🚧


⚈ How the bot Works?

The bot uses a selection of machine learning algorithms to produce different types of responses. The responses are stored in a file called db.sqlite3. There are already several different conversations from his database (It is in english, but you can change it easily by accessing https://github.com/gunthercox/chatterbot-corpus). You can delete it if you want to remit the training as another one will be generated automatically.

Specifically in this project, I had already trained, so I turned off the training based on the corpus, so I commented:

from chatterbot.trainers import ChatterBotCorpusTrainer
         trainer = ChatterBotCorpusTrainer (bot)
         trainer = ListTrainer (bot)
         trainer.train ("chatterbot.corpus.english")

I let the listening mode on, where you keep new and different answers. Don't worry, I left this part commented so you know what it is. If you are going to activate one, disable the other.

⚈ Tech Stack

The following tools were used in the construction of the project:

⚈ Bugs

If the program cannot find the contact, it may be far down in the chat list. I still don't know how to solve this. Bringing him into the most recent conversations solves this problem. :)

About

Chat with a smart bot on WhatsApp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%