We are building a chat bot for the KOSS Fb page to automate messages. Work in progress.
Follow this link : https://blog.hartleybrody.com/fb-messenger-bot/
APIAI_CLIENT_ACCESS_TOKEN = client access token from api.ai
FB_ACCESS_TOKEN = Facebook app access token
PAGE_ACCESS_TOKEN = The page access token of your facebook page
VERIFY_TOKEN = The verification token made while making a webhook
- If the message contains
gsoc
orgoogle summer of code
it replies with metakgp wiki link of gsoc. - If the message contains
dc
andhub
andadd
it replies with the current Hit Hi Fit Hai dc hub address. - From the menu you can choose
Facing development issues
and then enter your query and bot will reply with search results from stackoverflow.
Make sure you have python2 in your system. If the default python you use is python3 ie. when you type python --version
in the terminal and it shows "python 3.x.x" then install python2 specifically by sudo apt-get install python2
. After that use virtualenv
to make sure that everytime you are in a terminal session, python
refers to python2
for all its dependencies rather than python3
.