Revamp Your Gmail Experience with AI-Powered Inbox Cleaner

Tired of promotional emails? Let Inbox Cleaner's AI technology transform your Gmail experience!

Inbox Cleaner is a lightweight yet robust Python script that helps manage Gmail by filtering out promotional and non-essential emails using AI.

It uses GPT-3 or GPT-4 models via the OpenAI API to analyze the content of unread emails and determine if they are promotional, such as newsletters, advertisements etc. By automatically marking these less important emails as Read, Inbox Cleaner saves you time and keeps your inbox clutter-free.

The script can be helpful for individuals looking to streamline email workflow. It handles the busy work of filtering so you can focus on meaningful discussions and priorities.

How to use it:

1. Clone the Inbox Cleaner repository from GitHub:

git clone https://github.com/isafulf/inbox_cleaner.git

2. Install required packages:

  • google-auth>=2.23.4
  • google-auth-oauthlib>=1.1.0
  • google-auth-httplib2>=0.1.1
  • google-api-python-client>=2.108.0
  • openai>=1.3.5
cd inbox_cleaner
pip install -r requirements.txt

3. Create Google API access credentials here. Download the JSON file, rename it to credentials.json, and place it in the inbox_cleaner directory.

4. Obtain your OpenAI API key from OpenAI and set it as an environment variable:

export OPENAI_API_KEY=API-KEY-HERE

5. Run the script and enter your first and last name when prompted. Done!

python process_all_unread_emails.py

Leave a Reply

Your email address will not be published. Required fields are marked *