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-deleterpython -m venv .venv
source .venv/bin/activatepip 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 llama3python main.pyPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.