This project is a simple Python script that uses AI to identify Unimportant emails and delete them from your Gmail account.
- Python 3.10 or later
- Google API Client Library for Python
- Gmail API enabled in Google Cloud Console
- Ollama
- OAuth 2.0 credentials (
credentials.json
)
git clone https://github.com/yorubadeveloper/ai-email-deleter.git
cd ai-email-deleter
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
- Go to the Google Cloud Console.
- Navigate to APIs & Services > Credentials.
- Create an OAuth 2.0 Client ID and download the credentials.json file.
- Place the credentials.json file in the root directory of this project.
Navigate to the Ollama follow the instructions to install Ollama.
ollama pull llama3
python main.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.