This Flask-based chatbot handles queries related to EdTech courses. Conversations with users are logged in CSV files and stored in Firebase, accessible by the marketing team and admin for future analysis and use.
A user-friendly chat bot where users can input their queries regarding courses.
Integrated frequently asked questions (FAQs) related to courses.
Utilized NLP techniques to understand user queries and extract key information required to provide relevant responses.
If the query is not satisfied using FAQs database then chatbot will fallback to doubt assistant.
After resolving a user query, chatbot prompts the user for feedback on their satisfaction level.
.csv file of every chat is shared to various teams.
Admin can monitor chatbot performance and can download .csv files from the server.
git clone https://github.com/crazykaran/chatbot.git
cd chatbot
pip install virtualenv
virtualenv venv
Mac / Linux:
. venv/bin/activate
Windows:
venv\Scripts\activate
pip install -r requirements.txt
If you get an error during the first run, you also need to install nltk.tokenize.punkt
:
Run this once in your terminal:
$ python
>>> import nltk
>>> nltk.download('punkt')
- Create a Firebase project and initialize storage and database.
- Generate a service account key and save it as
serviceAccountKey.json
. - Update the Firebase configuration in the Flask application.
Run
python train.py
This will dump data.pth
file. And then run
python app.py
This will start a flask website
username : admin
password : admin@123