Microsoft chatbot build using NLTK-Chatbot and django
- Download Emulator
- Install Emulator
- in command prompt
git clone https://github.com/ahmadfaizalbh/Microsoft-chatbot.git cd Microsoft-chatbot pip install -r requirements.txt python manage.py makemigrations python manage.py migrate python manage.py runserver
Microsoft-chatbot/bot/settings.py
setDEBUG = True
- open another command prompt and execute the following
cd Microsoft-chatbot python manage.py process_tasks
- open Emulator
- Add an endpoint for your bot with Endpoint url
http://localhost:8000/messaging/
and namelocalhost
and save - open chat and start discussing with the bot
- Install postgreSQL follow the instruction in page How to install and use postgresql on ubuntu 14.04
- in shell prompt run
git clone https://github.com/ahmadfaizalbh/Microsoft-chatbot.git
- Go to Azure Portal
- Create a microsoft bot - Follow
- Generate and then update below lines in
Microsoft-chatbot/bot/settings.py
DEBUG = False APP_CLIENT_ID = `<Microsoft App ID>` APP_CLIENT_SECRET = `<Microsoft App Secret>`
- in
Microsoft-chatbot/bot/settings.py
also setALLOWED_HOSTS
with list of domain names - create DB
chatbot
with usernameapp_user
and passwordInfoBotPassword
in postgreSQL or change the credential in settings as per your configurationcreate database chatbot; create user app_user with encrypted password 'InfoBotPassword'; grant all privileges on database chatbot to app_user;
- in shell prompt run
cd Microsoft-chatbot pip install -r requirements.txt python manage.py makemigrations python manage.py migrate
- run
python manage.py process_tasks
in background (put it in/etc/rc.local
with appropriate path to python and manage.py) - configure apache2 config file for this project
- install Let's Encrypt
- restart server