HealthPal is an intelligent healthcare application designed to track, monitor, and enhance personal health. By leveraging AI-driven recommendations and structured user data, HealthPal provides personalized insights into key health aspects such as sleep, weight changes, mood tracking, and activity monitoring.
HealthPal uses Mistral AI to generate personalized health advice based on user-input data collected through a dynamic Health Questionnaire. Generated insights are securely stored in a database and refreshed whenever new recommendations are requested.
The platform features a comprehensive Dashboard for progress tracking and an integrated AI Chatbot that offers real-time health guidance and answers health-related queries.
Personal health data is often scattered across multiple tools and tracked inconsistently. HealthPal centralizes health inputs and applies AI to transform raw data into meaningful, personalized insights.
This project focuses on:
- Practical AI integration beyond basic chatbot use cases
- Secure handling of sensitive user data
- Building a scalable, full-stack health application with real-world relevance
- π User Authentication: Secure sign-up and sign-in.
- π Health Questionnaire: Collects user health data.
- π€ AI Recommendations: Provides personalized health advice using Mistral AI.
- π Health Tracking: Monitors weight, sleep, activity, and mood changes.
- πΎ Health Records: Stores and updates user health data.
- π Dashboard: Displays health progress and insights.
- π¬ AI Chatbot: Real-time health guidance and instant responses to health queries.
- π° Blogs Section: Offers health-related articles and tips.
- βοΈ Settings: Allows customization of user preferences.
The HealthPal AI Chatbot is designed to provide real-time health insights and answer health-related queries instantly.
Capabilities of HealthPal AI Chatbot:
- π©Ί General health, fitness, and wellness guidance
- π Medication and supplement information (general guidance)
- π Diet and nutrition suggestions
- π€ Sleep improvement tips
- π» 24/7 availability for user queries
The chatbot utilizes Mistral AI to understand user inputs and generate appropriate health recommendations.
- User Registration / Login
- Health Questionnaire Submission
- AI Recommendation Generation (Mistral AI API)
- Dashboard Access & Health Metrics Visualization
- Health Records Management
- AI Chatbot Interaction
- Recommendation History Storage
- Blogs & Health Resources Access
- Clone the repository:
git clone https://github.com/kavanatn/HealthPalAI.git- Navigate to the project directory:
cd HealthPalAI-main- Set up Python Environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
# Copy the example environment file
copy .env.example .env # Windows
# OR
cp .env.example .env # Linux/Mac-
Add your Mistral AI API key:
- Open the
.envfile - Replace
your-mistral-api-key-herewith your actual Mistral AI API key - (Optional) Generate a secure SECRET_KEY:
python -c "import secrets; print(secrets.token_hex(32))"
- Open the
-
Run the Flask application:
python app.py- Access the application:
- Open http://localhost:5000 in your browser.
Security Note: Your API keys are now safely stored in the .env file, which is automatically excluded from Git commits.
- Navigate to the Chatbot section.
- Enter your health-related query.
- Receive AI-generated guidance instantly.
- Supported queries include:
- Diet Plans
- Workout Routines
- Sleep Patterns
- Medication Advice
- General Health Queries
HealthPal is an educational and experimental project. AI-generated insights are not a substitute for professional medical advice. Users should consult qualified healthcare professionals for medical decisions.
- π Integration with Wearable Devices for real-time health tracking.
- π Advanced Data Analytics for better health insights.
- π² Mobile App to enhance user accessibility.
- π₯ Community Forum for health discussions.
- π€ Voice Assistant Support for the AI Chatbot.






