A simple AI-powered health assistance chatbot built using Python. It interacts with users, collects symptoms, and gives preliminary health suggestions. This project is intended for learning and academic purposes.
HealthChatbot is a Python-based conversational system that allows users to input symptoms or health-related queries. The chatbot analyzes the input using predefined logic (or dataset, if added) and provides helpful guidance.
This project demonstrates:
- Basic Natural Language Processing (NLP)
- Conversational logic
- Symptom-based suggestion system
- User interaction through a console/terminal
✔️ Interactive text-based chatbot ✔️ Accepts health symptoms as input ✔️ Provides possible conditions or suggestions ✔️ Rule-based/keyword-based health guidance ✔️ Easy to extend with more data or AI models ✔️ Beginner-friendly Python structure
- Python 3.x
- (Optional) NLTK / sklearn / pandas (depending on your code)
- Simple rule-based chatbot logic
HealthChatbot/
│
├── healthchatbot.py # Main chatbot script
├── env/
├── gitignore/
├── requirements.txt
├── README.md
└── ...
git clone https://github.com/supriya0415/HealthChatbot.git
cd HealthChatbotpython -m venv venvActivate it:
-
Windows
venv\Scripts\activate
-
Mac/Linux
source venv/bin/activate
(Only if you have a requirements.txt file)
pip install -r requirements.txtSimply run the main Python script:
python chatbot.pyThe chatbot will start in your terminal. Type your symptoms or questions and get instant replies.
The chatbot uses:
- Keyword-matching
- Rule-based response generation
- Basic NLP preprocessing (if included)
You can easily expand it by:
- Adding more symptoms/responses
- Integrating Machine Learning models
- Adding a web or mobile UI
This chatbot is NOT a medical professional. It only gives basic health suggestions for educational purposes.
For real medical issues, always consult a certified doctor.
- Add symptom-condition dataset
- Add ML-based prediction (Naive Bayes, SVM, etc.)
- Add a web UI using Flask or React
- Add voice input/output
- Add user profile & history tracking
Contributions are welcome! You can:
- Submit issues
- Suggest features
- Create pull requests
Developed by Supriya Yadav Feel free to reach out for improvements or collaboration.