A simple Chatbot for Facebook's personal profile that can chat with any of your friends and reply to them. Complete text and video based detailed tutorial link
You will need to register a free account on dialogflow. After that you need to create an agent and train it (how to create and train an agent using dialogflow). After that copy Client Access Token somewhere because we will be needing that later.
Download or Clone the repo, Navigate to the directory containing the files and run
python setup.py install
or if you have different versions of python installed then
python3 setup.py install
to install the dependencies.
Note: If you're facing problems in installation of fbchat in Ubuntu then run the following command.
sudo apt-get --yes --force-yes install libxml2-dev libxslt1-dev libxml2 python-dev python3-dev zlib1g-dev
After running setup.py, open bot.py and plug in your Client Accecss Token, email and password and run the bot. Now you can test the bot by logging into some other facebook account and starting a chat with the account you used to run the bot.
- fbchat
- apiai
- Fork it
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
- Muhammad Ali Zia
This project is licensed under the MIT License - see the LICENSE.md file for details