ductt-1167 / Chatbot_Facebook_Classify_Question

Public for Project III

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook Chat Bot Application


Requirement

edit config

  • please edit config database information and app details in index.js, config.json, middleware/mysqlconnector.js, ManagerChatBox/Database/DatabaManager.cs (view information in mysql in your pc and https://developers.facebook.com/apps/)

  • Create database in myQSL with file db_creator.spl in folder Database/

Dependencies

1. webhook-server

  • socket.io
  • nodemon
  • express
  • mysql
  • nconf
  • uuid
  • request
npm install --save socket.io
npm install --save nodemon
npm install --save express
npm install --save mysql
npm install --save nconf
npm install --save uuid
npm install --save request

2. io_server

  • socket.io
  • nodemon
  • express
npm install --save socket.io
npm install --save nodemon
npm install --save express

3. ManagerChatBox

4. PythonNLP

  • numpy
  • pandas
  • sklearnp
pip install numpy==1.19.3
pip install pandas
pip install scikit-learn
pip install scikit-learn --upgrade

runing python to preprocessing NLP

cd PythonNLP py main.py

Running Instruction

cd webhook-server
npm run start

Enable socket.io server

cd io_server
npm run start

Now we need to make application accessible from Internet

cd ..
./ngrok authtoken [your_authtoken]
# Get your authtoken at https://dashboard.ngrok.com/get-started/setup (need to sign in)
./ngrok http 14337 # Tunnel with port 14337

Read the Forwarding IP (with https protocol) => Add setup webhook url with random string VERIFY_TOKEN.

About

Public for Project III


Languages

Language:C# 46.1%Language:JavaScript 33.2%Language:Python 20.7%