How daxeshchaudhary/internship_project works
Carly AI is a medical-assistance and appointment-booking platform. A patient chats through the web interface; the client gathers patient details, requests AI-backed medical guidance and specialization matching, finds doctors and available slots, and submits a booking. The backend also supports a doctor portal and appointment notifications. Doctor availability and booking data are represented in repository files, while doctor credentials use SQLite. The README is brief and the server excerpts omit much route implementation, so uncertain subsystem wiring is not shown; the separate FastAPI service is documented as an alternative integration.
Main entry points: server.js HTTP API · index.html Patient Web UI · app.js Conversation And Intake · knowledgeBaseReader.js Doctor Directory
Components 21
Patient Experience
- Patient Web UI
index.html - Conversation And Intake
app.js
Booking Backend
- HTTP API
server.js - Doctor Directory
knowledgeBaseReader.js - Doctor Directory Data
doctors.xlsx - Availability Data
availability.json - Appointment Records
appointments.json - Prescription Records
prescriptions.json
Doctor Portal
- Doctor Login
doctor-login.html - Doctor Dashboard
doctor-dashboard.html - Doctor Route Guard
doctorAuthMiddleware.js - Doctor Authentication
doctorAuth.js - Credential Store
doctor_auth.db
AI And Notifications
- Clinical Dialogues
prompts - Model API
main.py - Email Notifications
emailService.js - WhatsApp Messaging
whatsappService.js
Other components
- Patient
- Doctor
- Gmail SMTP
- Twilio WhatsApp
Connections 21
- Patient → Patient Web UI: uses
- Patient Web UI → Conversation And Intake: loads
- Conversation And Intake → HTTP API: requests guidance and booking
- HTTP API → Doctor Directory: loads doctors
- Doctor Directory → Doctor Directory Data: reads
- HTTP API → Availability Data: checks slots
- HTTP API → Appointment Records: reads and writes
- HTTP API → Prescription Records: accesses records
- HTTP API → Email Notifications: sends appointment notice
- Email Notifications → Gmail SMTP: delivers mail
- Doctor → Doctor Login: signs in
- Doctor → Doctor Dashboard: uses
- Doctor Login → HTTP API: authenticates
- Doctor Dashboard → HTTP API: requests doctor data
- HTTP API → Doctor Route Guard: guards doctor routes
- Doctor Route Guard → Doctor Authentication: verifies token
- Doctor Authentication → Credential Store: reads and updates
- HTTP API → Model API: uses model service
- Model API → Clinical Dialogues: uses clinical material
- HTTP API → WhatsApp Messaging: messaging integration
- WhatsApp Messaging → Twilio WhatsApp: sends messages