Skip to content

SFitz911/Ai_Gmail_ManagerV3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 AI Gmail Manager V3 - Ultimate Edition

Advanced Email Management with AI-Powered Classification

Transform your Gmail inbox into an organized, intelligent email management system! This powerful tool uses artificial intelligence to automatically classify, label, and organize your emails, saving you hours of manual work.

AI Gmail Manager V3 Interface

🌟 What This Tool Does

Imagine having a smart assistant that:

  • 🤖 Reads your emails and understands what they're about
  • 🏷️ Automatically labels them (Business, Freight, Important, etc.)
  • 📁 Organizes your inbox by moving emails to appropriate folders
  • Learns from your starred emails to understand what's important to you
  • 💬 Answers questions about your emails using AI
  • 📊 Shows beautiful charts of your email patterns

🎯 Perfect For

  • Business owners managing multiple types of emails
  • Freight/logistics professionals dealing with shipping emails
  • Anyone who gets overwhelmed by their Gmail inbox
  • Students learning about AI and email automation
  • Professionals who want to save time on email management

📋 Table of Contents

  1. Quick Start Guide
  2. Detailed Installation
  3. Setting Up Gmail
  4. First Time Setup
  5. How to Use
  6. Features Guide
  7. Troubleshooting
  8. Advanced Tips

🚀 Quick Start Guide

Step 1: Download the Code

  1. Click the green "Code" button at the top of this page
  2. Select "Download ZIP"
  3. Extract the ZIP file to your Desktop

Step 2: Install Python

  1. Go to python.org
  2. Download Python 3.11 or newer
  3. IMPORTANT: Check "Add Python to PATH" during installation

Step 3: Setup Gmail

  1. Go to your Google Account Settings
  2. Enable 2-Factor Authentication
  3. Create an "App Password" for this tool

Step 4: Run the Tool

  1. Double-click INSTALL_AND_RUN.bat
  2. Follow the setup wizard
  3. Start organizing your emails!

🔧 Detailed Installation

Prerequisites

  • Windows 10/11 (Mac/Linux users see advanced section)
  • Gmail Account with 2-Factor Authentication
  • Internet Connection
  • Basic computer skills (can download files, extract ZIP)

Method 1: Easy Installation (Recommended for Beginners)

  1. Download this project:

    • Click "Code" → "Download ZIP"
    • Extract to C:\Users\YourName\Desktop\Email_Scraper
  2. Run the installer:

    • Double-click INSTALL_AND_RUN.bat
    • Wait for installation to complete
    • The program will launch automatically

Method 2: Manual Installation (For Advanced Users)

  1. Install Python:

    # Download from python.org and install
    # Make sure to check "Add to PATH"
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python gui/Ai_Gmail_ManagerV3_GUI.py

📧 Setting Up Gmail

Why Do You Need This?

Gmail requires special permission for external apps to access your emails securely. Think of it like giving a house key to a trusted friend.

Step-by-Step Gmail Setup

  1. Enable 2-Factor Authentication:

  2. Create an App Password:

    • In Google Account Security, find "App passwords"
    • Select "Mail" and "Windows Computer"
    • Google will generate a 16-character password
    • SAVE THIS PASSWORD - you'll need it!
  3. What NOT to use:

    • ❌ Don't use your regular Gmail password
    • ❌ Don't share your App Password with others
    • ✅ Only use the App Password for this tool

Gmail Setup Guide


🎯 First Time Setup

When You First Launch the App

  1. The app will open and look like this: First Launch

  2. Enter your credentials:

    • Gmail Address: your.email@gmail.com
    • App Password: the 16-character password from Google
    • Email Count: start with "50" for testing
  3. Choose your settings:

    • Classification Mode: Select "AI" for best results
    • Label Strategy: Choose "create_ai" to start
    • Checkboxes: Leave defaults for now
  4. Test the connection:

    • Click "1. Test Gmail Connection"
    • You should see "✅ Gmail connection successful!"

🎮 How to Use

Understanding the Interface

The app has several main areas:

Interface Overview

  1. Operation Mode (Top):

    • 🔵 Demo Mode: Safe testing (no real changes)
    • 🔴 Live Mode: Real email processing
  2. Gmail Settings (Left):

    • Your email credentials
    • Processing options
  3. AI Operations (Center):

    • Main buttons for AI features
  4. System Output (Bottom):

    • Shows what the AI is doing
  5. AI Chat (Right):

    • Ask questions about your emails

Your First Email Classification

  1. Start in Demo Mode (Blue button - safe!):

    • Click "🔵 DEMO MODE"
    • This won't change your actual emails
  2. Test the AI:

    • Click "2. 📧 Preview Emails"
    • See what emails the AI finds
  3. Learn from your preferences:

    • Click "3. ⭐ AI Learn from Starred"
    • The AI studies your starred emails
  4. Classify your emails:

    • Click "5. 🤖 AI Classify Emails"
    • Watch the AI organize your inbox!
  5. Switch to Live Mode (when ready):

    • Click "🔴 LIVE MODE"
    • Now the AI will actually move your emails

🌟 Features Guide

🤖 AI Email Classification

What it does: The AI reads your emails and decides what category they belong to.

Categories include:

  • 📧 Important: Starred emails, urgent messages
  • 🚛 Freight/Logistics: Shipping, trucking, delivery emails
  • 💼 Business: Work-related correspondence
  • 💰 Financial: Banking, invoices, payments
  • 👥 Social: LinkedIn, networking, personal
  • 📰 Marketing: Newsletters, promotions
  • 🗑️ Spam: Unwanted emails

Classification Results

⭐ Smart Learning from Starred Emails

What it does: The AI looks at emails you've starred and learns what's important to you.

How to use:

  1. Star important emails in Gmail (⭐ button)
  2. Click "AI Learn from Starred" in the app
  3. The AI studies your preferences
  4. Future classifications become more accurate

💬 AI Email Assistant

What it does: Ask questions about your emails and get instant answers!

Example questions:

  • "Do I have emails from Apex?"
  • "Show me emails with API"
  • "What are my most important emails?"
  • "How many unread emails do I have?"
  • "Find freight emails from this week"

AI Chat Example

📊 Visual Analytics

What it does: Beautiful charts showing your email patterns.

Charts include:

  • 📈 Email volume by hour
  • 🎯 Classification accuracy
  • 📊 Email distribution
  • 📅 Daily activity patterns

Analytics Charts

🏷️ Smart Labeling System

Label Strategies:

  • create_ai: Creates new AI-powered labels
  • use_existing: Uses your current Gmail labels
  • both: Combines both approaches

How labels work:

  • AI creates labels like "AI-Business", "AI-Freight"
  • Emails are automatically tagged
  • Easy to find emails later in Gmail

🆘 Troubleshooting

Common Issues and Solutions

"Gmail connection failed"

Problem: Can't connect to Gmail Solutions:

  1. Check your internet connection
  2. Verify your Gmail address is correct
  3. Make sure you're using the App Password (not regular password)
  4. Ensure 2-Factor Authentication is enabled

"AI classifier not available"

Problem: AI features not working Solutions:

  1. Make sure all files downloaded correctly
  2. Check that Python installed properly
  3. Try restarting the application

"GUI won't launch"

Problem: Application doesn't start Solutions:

  1. Right-click Ai_Gmail_ManagerV3_GUI.py → "Open with Python"
  2. Check if Python is installed correctly
  3. Try running INSTALL_AND_RUN.bat as administrator

"Emails not moving"

Problem: Classification runs but emails stay in inbox Solutions:

  1. Make sure you're in "Live Mode" (red button)
  2. Check "Process Emails (Real Actions)" is enabled
  3. Verify Gmail permissions are correct

Getting Help

  1. Check the console output for error messages
  2. Try Demo Mode first to test safely
  3. Restart the application if it seems stuck
  4. Check your internet connection
  5. Verify Gmail credentials are correct

🎓 Advanced Tips

For Power Users

Custom Email Rules

You can modify the AI's classification logic by editing the code:

  • Open gui/Ai_Gmail_ManagerV3_GUI.py
  • Find the classify_email method
  • Add your custom rules

Batch Processing

  • Start with small email counts (50-100)
  • Gradually increase as you gain confidence
  • Use "All Available" only for final processing

Performance Optimization

  • Close other applications while processing
  • Use a stable internet connection
  • Process emails during off-peak hours

For Developers

Code Structure

Email_Scraper/
├── gui/
│   └── Ai_Gmail_ManagerV3_GUI.py    # Main application
├── smart_learning_classifier.py     # AI classification engine
├── requirements.txt                 # Dependencies
└── credentials/                     # Your Gmail credentials

Key Components

  • GUI: Tkinter-based interface
  • AI Engine: Scikit-learn classification
  • Email Processing: IMAP protocol
  • Data Storage: SQLite database

🔐 Privacy and Security

Your Data is Safe

  • No cloud storage: Everything runs on your computer
  • No data sharing: Your emails never leave your machine
  • Secure connection: Uses Gmail's official API
  • Local processing: AI runs locally, not on external servers

What Gets Stored

  • Email metadata: Subject lines, sender info, dates
  • Classification results: What category each email belongs to
  • User preferences: Your starred email patterns
  • No email content: Full email text is not permanently stored

🤝 Contributing

Want to help improve this tool?

  1. Report bugs: Create an issue on GitHub
  2. Suggest features: Tell us what you'd like to see
  3. Share feedback: How did this tool help you?
  4. Contribute code: Submit pull requests

📄 License

This project is open source and available under the MIT License. Feel free to use, modify, and share!


🙏 Acknowledgments

  • Built with Python, Tkinter, and Scikit-learn
  • Uses Gmail's IMAP API for email access
  • AI classification powered by machine learning
  • Charts created with Matplotlib

📞 Support

Need help? Here's how to get support:

  1. Check this README for common solutions
  2. Look at the troubleshooting section
  3. Create an issue on GitHub with:
    • Your operating system
    • Python version
    • Error messages (if any)
    • What you were trying to do

Ready to transform your Gmail experience? Let's get started! 🚀

Remember: Start with Demo Mode to safely test everything before processing your real emails!

About

AI-powered Gmail manager with intelligent email classification, automation, and analytics.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages