Skip to content

MacroMind is an intelligent nutrition assistant powered by Google's Gemini Pro AI that helps users track their daily food intake and receive expert dietary guidance.

License

Notifications You must be signed in to change notification settings

Khushal-Me/MacroMind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MacroMind: AI-Powered Nutrition Assistant 🧠

MacroMind is an intelligent nutrition tracking system powered by Google's Gemini Pro Language Model. It provides real-time nutritional analysis, tracks daily macro goals, and offers AI-powered nutrition consultation.

🌟 Key Features

🍎 Intelligent Food Tracking and Analysis

Screenshot 2025-01-07 at 7 18 46 PM
  • Real-time AI-powered nutritional breakdown
  • Automatic calorie calculation
  • Protein content analysis
  • Running daily totals

📊 Smart Goal Tracking

Screenshot 2025-01-07 at 7 19 20 PM
  • Dynamic calculation of remaining daily allowances
  • Personalized macro tracking
  • Real-time goal updates

📝 Comprehensive Food History

Screenshot 2025-01-07 at 7 20 44 PM
  • Detailed food logging
  • Timestamp tracking
  • Nutritional breakdown history

🧮 Data Management

Screenshot 2025-01-07 at 7 21 04 PM
  • Easy data reset
  • Flexible history management
  • Data persistence

🤖 AI Nutrition Consultant

Screenshot 2025-01-07 at 7 22 20 PM
  • Expert nutritional guidance
  • Context-aware responses
  • Personalized dietary advice

🚀 Technology Stack

  • AI/ML Integration

    • Google Gemini Pro API for natural language processing
    • Advanced prompt engineering
    • Contextual response generation
  • Backend Architecture

    • Python-based system
    • Flask server for Replit hosting
    • Environment variable management
    • Threaded server implementation

💻 Installation

1. Clone the repository

git clone https://github.com/Khushal-Me/MacroMind.git

2. Install dependencies

pip install -r requirements.txt

3. Obtain API Keys

Google Gemini API Key

  1. Visit Google AI Studio
  2. Sign in with your Google account
  3. Click "Create API Key" or "Get API Key"
  4. Copy your generated API key

Discord Bot Token

  1. Go to Discord Developer Portal
  2. Click "New Application"
  3. Name your application "MacroMind"
  4. Navigate to the "Bot" section in the left sidebar
  5. Click "Reset Token" to reveal your bot token
  6. Important: Enable "Message Content Intent" under Privileged Gateway Intents

4. Configure environment variables in .env:

GEMINI_API_KEY=your_gemini_api_key
DISCORD_BOT_TOKEN=your_bot_token

🤖 Commands

  • !add [food] - Add food items with AI nutritional analysis
  • !left - Check remaining daily allowances
  • !history - View food log
  • !clear - Reset all data
  • !q [question] - Ask nutrition questions

🔍 Technical Implementation

AI Features

  • Natural language food analysis
  • Nutritional content extraction
  • Smart response generation
  • Error handling and validation

Data Management

  • User-specific tracking
  • Daily reset functionality
  • Persistent storage
  • History management

Server Architecture

  • Flask-based web server
  • Threading for optimal performance
  • Continuous operation
  • Error recovery systems

📌 Deployment

Optimized for Replit deployment with:

  • Flask server implementation
  • Automatic error handling
  • Environment variable management
  • 24/7 uptime configuration using uptimerobot.com

🤝 Contributing

Contributions are welcome! Feel free to submit Pull Requests.

📝 License

This project is licensed under the MIT License.


Note: MacroMind is an AI-first application focusing on intelligent nutritional analysis and expert guidance.

About

MacroMind is an intelligent nutrition assistant powered by Google's Gemini Pro AI that helps users track their daily food intake and receive expert dietary guidance.

Topics

Resources

License

Stars

Watchers

Forks

Languages