Bridging the gap between health knowledge and actionable habits.
This project was built for the INDIA RUNS Hackathon (Track 3: Everyday AI) and Gen AI Academy Cohort 2.
FitAgent is an autonomous AI health co-pilot designed to transform health knowledge into actionable, daily routines. Recognizing the unique nuances of Indian dietary habits and Ayurvedic principles, FitAgent acts as your personal nutritionist, fitness coach, and daily scheduler all in one. Our mission is to bridge the gap between knowing what's healthy and actually doing it, making well-being a seamless part of your lifestyle.
- Personalized Health Planning: Generates detailed, hour-by-hour 14-hour diet and workout schedules tailored to your profile.
- AI-Powered Nutritional Analysis: Dive deep into the foods you eat with insights blending modern nutritional science and ancient Ayurvedic wisdom.
- Actionable Reminders: Export your routines and sync them natively with your mobile and desktop calendars for timely alerts.
- Autonomous Workflow: Enjoy intelligent decision-making support that adapts to your health goals, dietary preferences, and restrictions.
- Google Cloud Vertex AI
- Gemini 1.5 Flash
- Streamlit
- Python
- Google Cloud Platform (GCP)
git clone https://github.com/CodeHackWithSorif/FitAgent.git
cd FitAgentpython -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activatepip install -r requirements.txtFitAgent strictly utilizes Google Cloud Vertex AI via Application Default Credentials (ADC).
gcloud auth application-default loginstreamlit run app.pyFitAgent allows you to integrate your health plan directly into your daily routine using the Export Reminders page.
- Mobile Users: Download the generated
.icsfile from the app. Open it on your phone to import all your scheduled meals, workouts, and habits directly into Google Calendar or Apple Calendar. Ensure notifications are enabled for your calendar app. - Laptop/Desktop Users: Download the native scheduler script provided on the page.
- Windows: Run the downloaded script to register tasks in the Windows Task Scheduler.
- macOS/Linux: Follow the instructions provided to install the shell script as a
cronjob.
To fully experience FitAgent, follow this 10-step sequence:
- Activate Environment: Ensure your virtual environment is active.
- Authenticate: Run
gcloud auth application-default login. - Launch: Start the app via
streamlit run app.py. - Create Profile: Navigate to the "Create Profile" page and input your health goals, diet, and details.
- Generate Plan: Go to "Health Plan" and let Vertex AI generate your personalized 14-hour routine.
- Review Insights: Navigate to the "Food Nutritional Analysis" page and analyze an Indian dish (e.g., Paneer Butter Masala).
- Create Reminders: On the Health Plan page, click "Create Reminders from Plan".
- Export Schedule: Head to the "Export Reminders" page and download the
.icsfile or Windows/Linux scheduler script. - Test Reminders: Import the
.icsinto your mobile calendar or run the scheduler script on your laptop. - Verify Notifications: Wait for the scheduled time to confirm native OS or mobile alerts are working properly!
FitAgent was built by Team Logic Loopers.
Creator: Code Hack with Sorif
Connect with us and follow our journey: