Welcome to the repository for the Email Cleanup Agent, an AI-driven workflow that helps you automate and declutter your email inbox. This project uses n8n for workflow automation and OpenAIβs GPT-4o mini model to intelligently classify and clean up emails.
This n8n workflow:
- Connects to your email inbox (e.g., Gmail or IMAP-based account).
- Fetches unread or all recent emails.
- Uses an AI model to classify each email as:
- Useful (e.g., personal, job-related, documents, security alerts)
- Not Useful (e.g., promotions, social media, app notifications)
- Archives or deletes not useful emails automatically.
- Leaves important emails untouched for your attention.
All classification logic is defined and handled via GPT-4o-mini (or any other language model you connect it with).
git clone https://github.com/your-username/email-cleanup-agent.git
cd email-cleanup-agent