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:
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
4. Obtain your OpenAI API key from OpenAI and set it as an environment variable:
5. Run the script and enter your first and last name when prompted. Done!