AI-Healthcare-Chatbot

๐Ÿฉบ AI Healthcare Chatbot

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.


๐Ÿ“š Table of Contents

  1. Features
  2. Tech Stack
  3. Architecture & Design
  4. Installation & Setup
  5. Usage
  6. Configuration
  7. API / Endpoints
  8. Training / Data
  9. Testing
  10. Deployment
  11. Future Enhancements
  12. License
  13. Contributing
  14. Acknowledgments

โœจ Features


๐Ÿ› ๏ธ Tech Stack

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.

๐Ÿงฑ Architecture & Design

User โ†’ Web UI โ†’ Django Views โ†’ Chat Handler โ†’ NLP Module โ†’ Response

โš™๏ธ Installation & Setup

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.


โ–ถ๏ธ Usage

Once running:


๐Ÿ”ง Configuration


๐Ÿ“ก API / Endpoints

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

๐Ÿ“ Training / Data

Currently uses:


โœ… Testing

To test:

python manage.py test

Add unit tests in healthcare_chatbot/tests.py


๐Ÿš€ Deployment

Free Deployment Options:

These platforms support Django and offer free plans.


๐Ÿ”ฎ Future Enhancements


๐Ÿชช License

This project is licensed under the MIT License.
Feel free to use, modify, and share with attribution.


๐Ÿค Contributing

Contributions are welcome!

To contribute:


๐Ÿ™ Acknowledgments


๐Ÿ“Š Dashboards & Screenshots

๐Ÿ  Welcome Page

Welcome Page
Description: Intro page that welcomes users to the chatbot. Clear call-to-action to start consultation.


๐Ÿ  Home Page

Home Page
Description: Clean layout guiding users to chat. Navigation is simple and beginner-friendly.


๐Ÿ—ฃ๏ธ Voice Input Feature

Mic
Description: Allows users to speak instead of typing. Helpful for elderly or visually impaired users.


๐Ÿ“„ File Upload โ€“ Add Files

Add Files
Description: Option to upload reports, prescriptions, or files for context.


๐Ÿ“‚ File Upload Confirmation

File Uploaded
Description: Shows that a file was successfully uploaded and received by the system.


๐Ÿ‘จโ€๐Ÿ’ป Author

Devendra Reddy
๐Ÿ”— GitHub Profile


๐Ÿ“ Repository Structure

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.