Skip to content

propadiene-1/TreeHacks-2026

Repository files navigation

MedSec (TreeHacks 2026)

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.

Alt text for the image

Highlights

  • 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!

Quick Start

  1. Clone the repository

    git clone https://github.com/propadiene-1/TreeHacks-2026.git
  2. Install dependencies

    npm install
  3. Set up API keys

  4. 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.
  5. Set up environment variables

    Create a file called .env file 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]
  6. Set up ngrok (instructions here).

    Start ngrok before running the app.

  7. Run the app

    npm start

Tech Stack

  • 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

Project Structure

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

Authors

  • Isita B.
  • Ashita B.
  • Nishka K.
  • Aileen L.

About

A medical assistant that tracks your biomarkers and pain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors