AIโHealthcareโChatbot is a webโbased intelligent chatbot built using Python and Django. It offers 24/7 medical support, symptom checking, emergency assistance, and general healthcare guidance using Natural Language Processing (NLP). It is designed to improve accessibility, automate patientโchatbot interactions, and enhance digital health experiences.
Layer | Technology |
---|---|
Backend | Python, Django |
NLP / AI | Keyword Matching (optionally NLTK/spaCy) |
Database | SQLite |
Frontend | HTML, CSS, JavaScript (Django Templates) |
APIs / Ext. | (Optional) Infermedica, Medline, etc. |
User โ Web UI โ Django Views โ Chat Handler โ NLP Module โ Response
Follow these steps to run the project locally:
# 1. Clone the repository
git clone https://github.com/devendrareddy2344/AI-Healthcare-Chatbot.git
cd AI-Healthcare-Chatbot
# 2. Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Apply migrations
python manage.py makemigrations
python manage.py migrate
# 5. (Optional) Load seed/sample data
# python manage.py loaddata initial_data.json
# 6. Start development server
python manage.py runserver
Open http://127.0.0.1:8000 in your browser.
Once running:
healthcare_chatbot/views.py
/static/
folder/templates/
This version does not use REST APIs but you can extend with:
Route | Method | Description |
---|---|---|
/ |
GET | Landing page |
/chat/ |
POST | User sends message to chatbot |
/upload/ |
POST | Upload medical reports (optional) |
/voice/ |
POST | Capture speech input |
Currently uses:
To test:
python manage.py test
Add unit tests in healthcare_chatbot/tests.py
These platforms support Django and offer free plans.
This project is licensed under the MIT License.
Feel free to use, modify, and share with attribution.
Contributions are welcome!
To contribute:
Description: Intro page that welcomes users to the chatbot. Clear call-to-action to start consultation.
Description: Clean layout guiding users to chat. Navigation is simple and beginner-friendly.
Description: Allows users to speak instead of typing. Helpful for elderly or visually impaired users.
Description: Option to upload reports, prescriptions, or files for context.
Description: Shows that a file was successfully uploaded and received by the system.
Devendra Reddy
๐ GitHub Profile
AI-Healthcare-Chatbot/
โโโ chatbot-images/ # Project screenshots
โโโ healthcare_chatbot/ # Django app core
โโโ static/ # CSS, JS
โโโ templates/ # HTML pages
โโโ db.sqlite3 # SQLite database
โโโ requirements.txt # Dependencies
โโโ manage.py
๐ Ideal for students, healthcare hackathons, and prototyping real-world AI chatbot solutions.