ZenZoneBot is a Flask-based AI chatbot designed to assist users in understanding their emotional state, detecting potential mental health concerns, and providing helpful resources. The chatbot uses sentiment analysis, disorder keyword detection, and intent prediction to generate meaningful responses.
- Sentiment analysis to detect user emotions.
- Disorder keyword detection to identify potential mental health concerns.
- Intent prediction to understand user needs (e.g., seeking advice, resources, or emotional support).
- Context-aware conversation flow.
- Provides helpful self-care tips and resources for mental health support.
Make sure you have the following installed on your system:
- Python 3.7+
- Flask
- Joblib
- Required Python libraries
- Clone the repository:
git clone https://github.com/your-repo/ZenZoneBot.git cd ZenZoneBot - Install dependencies:
pip install -r requirements.txt
- Run the Flask application:
python app.py
After starting the Flask application, open your browser and go to:
http://127.0.0.1:5000/
This will open the chatbot interface where you can interact with ZenZoneBot.
ZenZoneBot/
│── templates/
│ ├── index.html
│ ├── about_us.html
│ ├── chatui.html
│── keyword1.py # Disorder keyword matching
│── text_sum1.py # Text summarization module
│── int.py # Intent prediction module
│── sent.py # Sentiment analysis module
│── app.py # Flask application
│── requirements.txt
- Endpoint:
/ - Method:
GET - Description: Renders the home page.
- Endpoint:
/about_us - Method:
GET - Description: Renders the About Us page.
- Endpoint:
/chatui - Method:
GET - Description: Renders the chatbot UI.
- Endpoint:
/process_input - Method:
POST - Description: Processes user input, detects sentiment, identifies disorder-related keywords, predicts intent, and provides appropriate responses.
- Request Body:
{ "user_prompt": "I feel really anxious about my exams." } - Response:
{ "message": "We all face worries. What's been on your mind recently?" }
- Sentiment Detection: Identifies user emotions such as joy, fear, anger, sadness, etc.
- Disorder Detection: Detects keywords related to mental health conditions like depression, anxiety, PTSD, ADHD, and eating disorders.
- Intention Detection: Determines whether the user is expressing distress, asking for resources, or seeking advice.
- Confirmation Response: Provides final reassurance and additional resources if needed.
This project is licensed under the MIT License.
For questions or suggestions, feel free to reach out at mridulchawla20@example.com.