Your AI-powered medical assistant!
Enter your number and MedSec will call you, ask about your pain, and create a check-up schedule. Long-term, it will collect and analyze your symptoms-- including pain history, day-to-day health status, and any long-term patterns.
This project was made for TreeHacks 2026.
Devpost: devpost.com/software/th26
- Long-term symptom tracking --- through personalized follow-ups
- Agentic scheduling pipeline --- internally creates a check-in schedule based on your first meeting
- Live biomarker analysis --- tracks shaky voice, pauses, tone, etc.
- Custom pain recalibration --- adjusts for daily physical changes & long-term habituation
- Clean & intuitive UI --- just add your number!
-
Clone the repository
git clone https://github.com/propadiene-1/TreeHacks-2026.git
-
Install dependencies
npm install
-
Set up API keys
- Visit OpenAI and get your API key.
- Visit Chroma Cloud and get your API key.
-
Set up Twilio
- Make a Twilio account and follow these instructions to add phone numbers.
- Add a source number which MedSec will use to call you (TWILIO_PHONE_NUMBER).
- Add all client numbers that MedSec should call.
-
Set up environment variables
Create a file called
.envfile in the root directory:OPENAI_API_KEY=[YOUR API KEY] PORT=3000 TWILIO_ACCOUNT_SID = [YOUR ACCOUNT SID] TWILIO_AUTH_TOKEN = [YOUR AUTH TOKEN] TWILIO_PHONE_NUMBER = [SOURCE PHONE NUMBER] CHROMA_API_KEY= [YOUR API KEY] CHROMA_TENANT= [YOUR TENANT CODE] SERVER_URL= [YOUR SERVER URL]
-
Set up ngrok (instructions here).
Start ngrok before running the app.
-
Run the app
npm start
- Backend: Node.js, Express
- Voice Processing: Twilio Voice API with real-time speech-to-text
- Natural Language: OpenAI GPT-4o (conversational AI + function calling)
- Vector DB: ChromaDB (semantic search)
- Scheduling: node-cron with adaptive recurrence logic
- Analytics: Custom pain recalibration algorithm + biomarker analysis
- Frontend: HTML, JavaScript, CSS
TreeHacks-2026/
├── public/ # frontend
│ ├── index.html # main page
│ │ dashboard.html # user data
| | schedule.html #schedule page
| | schedule.js
│ │ script.js # frontend functions
| | style.css # UI
├── package.json # dependencies
| server.js # backend logic
├── openai-calls.js # api calls
| pain-correction.js # pain correction algorithm
├── .env # environment variables
└── README.md
- Isita B.
- Ashita B.
- Nishka K.
- Aileen L.
