- π Description
- π¨ Problem Statement
- π‘ Solution
- βοΈ Technical Setup
- π§± Tech Stack
- π‘ API Overview
- π¦ Use Cases
- π Future Improvements
- π¨ββοΈ Contact & Contribution
FiltAI is a SaaS platform offering AI-powered APIs to enhance medical service delivery and doctor-patient matchmaking. Admins can:
- Add hospitals and register doctors
- Generate secure API keys
- Use APIs to fetch predictions, recommend doctors, and suggest remedies
- Track API usage, performance, and subscriptions
The healthcare system lacks real-time, symptom-based solutions for patients and hospitals. Finding the right doctor or diagnosis often involves delays and manual effort, which could be optimized with AI-powered APIs.
FitAI offers:
- A fast, secure backend for managing hospitals and doctors
- AI-powered API for disease prediction and doctor matching
- Multi-language support for symptoms
- API key system for integration into any frontend or mobile platform
- Subscription handling and analytics for admins
Here's how an admin can use the FitAI platform step-by-step:
-
π Login to the Platform
- Navigate to the FitAI dashboard.
- Log in using your admin credentials.
-
π Generate API Key
- Go to the API Settings section.
- Click Generate API Key β this is required before any API calls or subscriptions.
-
π₯ Add Hospitals
- Go to the Hospitals section.
- Add a new hospital by providing name, location, head doctor, and contact.
-
π¨ββοΈ Add Doctors under Hospitals
- Select a hospital.
- Add doctors by providing specialization, availability, contact info, etc.
-
π‘ Use API Endpoint
- Now that hospitals and doctors are added, use the AI API:
GET /api/service/AgentResponse?hospitalId=<HOSPITAL_ID> - Pass the API key in the header:
x-api-key: <YOUR_API_KEY>
- Now that hospitals and doctors are added, use the AI API:
-
ποΈ Integrate Into Frontend
- You can now plug this API into any hospitalβs website or frontend.
- Patients enter symptoms β AI suggests doctor + remedy.
-
π³ Subscribe to Premium
- Head over to the Subscription section on the dashboard.
- You must generate an API key before subscribing.
- Choose a plan and complete payment via Cashfree.
-
π Monitor Usage
- View how many API calls have been made.
- Track remaining calls, renew subscriptions, and upgrade plans.
π§ The AI works hospital-wise, so each hospital's doctors are matched separately.
# Go to the backend folder
cd backend
# Install backend dependencies
npm installCreate a
.envfile in the backend root directory and paste the following:
PORT=3000
WT_SECRET=your_jwt_secret
CASHFREE_APP_ID=your_cashfree_app_id
CASHFREE_SECRET_KEY=your_cashfree_secret_key
GEMINI_API_KEY=your_gemini_api_key
GEMINI_ENDPOINT=your_gemini_endpoint_urlnpm run startUse ngrok to expose your local server for webhook testing.
ngrok http 3000Set the webhook URL in your Cashfree dashboard like this:
https://your-ngrok-url/api/cashfree/webhook
Example:
https://abcd1234.ngrok.io/api/cashfree/webhook
| Layer | Technology |
|---|---|
| Frontend | React (Vite), Tailwind CSS |
| Backend | Node.js, Express.js |
| Database | MongoDB |
| Authentication | JWT |
| Payments | Cashfree Gateway |
| AI Engine | Gemini AI API |
| Tools | Postman, Ngrok |
π All secure routes require a JWT token in the header:
Authorization: <JWT_TOKEN>π For diagnosis API calls, use:
x-api-key: <YOUR_API_KEY>| Method | Endpoint | Description |
|---|---|---|
| POST | /api/user/signup |
Register new admin |
| POST | /api/user/login |
Login admin and get JWT |
| GET | /api/user/profile |
View admin profile |
| POST | /api/user/addHospital |
Add a hospital |
| POST | /api/user/adddoctor |
Add a doctor to a hospital |
| POST | /api/service/generate-api |
Generate API key |
| POST | /api/service/subscribe |
Cashfree subscription |
| GET | /api/service/AgentResponse?hospitalId= |
AI-powered diagnosis + doctor match |
GET /api/service/AgentResponse?hospitalId=68026da649ad1088d5a30603
Headers:
x-api-key: d8c4fbbd51cc66878c127e0687ced573252b49317f9e7dbc2d60f63bf1cfce4fSample Response:
{
"message": "API call successful",
"success": true,
"data": {
"predicted_disease": "Migraine",
"remedy": "Rest in a dark, quiet room.",
"doctor": {
"id": "680280e0863bec04d582b0f2",
"name": "Dr. Gourab Das",
"speciality": "ophthalmologist"
}
}
}- β Symptom-based diagnosis & doctor suggestion
- π Smart filtering in search systems
- π Hospital-specific usage analytics
- π Business insights based on API usage
- πΌ Integrate in existing hospital management software
- π² web application support
- π Multi-department queries like Cardiology, Pediatrics, etc.
- Example integartion :

- π Advanced dashboards for hospital owners
- π Location-aware doctor recommendation
- π Growth analytics and trends visualization
- π Custome AI Model support with picture based anyalisis
- π API usage alerts & subscription notifications
- π Integration with EMRs and patient history
- π¬ AI chatbot for first-level support
- Gourab Das
- Sagnik Sarkar
- Dipayan Sinha
Built with β€οΈ to bridge the gap between AI and Healthcare.



