https://github.com/saopayne/tone_messenger_bot
This uses IBM Tone Analyze API to analyze text sent over Facebook messenger and replies given the mood
https://github.com/saopayne/tone_messenger_bot
facebook-messenger-bot ibm-watson python tone-analyzer
Last synced: 2 months ago
JSON representation
This uses IBM Tone Analyze API to analyze text sent over Facebook messenger and replies given the mood
- Host: GitHub
- URL: https://github.com/saopayne/tone_messenger_bot
- Owner: saopayne
- License: apache-2.0
- Created: 2017-10-11T06:20:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-30T22:22:29.000Z (over 4 years ago)
- Last Synced: 2025-04-12T15:13:55.208Z (2 months ago)
- Topics: facebook-messenger-bot, ibm-watson, python, tone-analyzer
- Language: Python
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README #
* Facebook Messenger Chat Bot with IBM Tone Analyze API
#### Quick Summary
The goal is to create an emotional Facebook Messenger chat bot.
Depending on whether the user sends it a positive or negative message, it will gradually get happier or sadder, which will determine its responses.
All the responses are generic and simply visualise the mood of the bot.The bot should also replies with its current mood for a special message "mood".
- Typing `hello, hi, ? and some random greetings` will reply with a default message
- Typing `mood` returns the current mood the bot
- Any other `text` will be analyzed via the IBM tone analyzer api and the tone of the message is decoded which in turn triggers a reply to match the tone.
- The Facebook page is accessible here : https://web.facebook.com/saozillz/##### Version
0.1### How do I get set up? ###
* Using Docker
> docker pull saopayne/tone-messenger-bot:latest
* Configuration
- Setup Python
- Open this project in an IDE of your choiceThe following environment variables must be set:
> WATSON_USERNAME=''> WATSON_PASSWORD=''
> PAGE_ACCESS_TOKEN=''
> PAGE_VERIFY_TOKEN=''
#### Dependencies
- To run, the dependencies in the requirements.txt file have to be installed.
- Run `pip install -r requirements.txt` to install them#### Deployment instructions
- Deployment was done to Heroku
- To run the app `python app.py`
- Open the page 'https://web.facebook.com/saozillz/'
- Type a message in the message part of the Facebook page#### Repo owner or admin
- Ademola Oyewale ([email protected])