I created a crew of AI agents using CrewAI to automate my old Gmail account that had a lot of unread emails.
This is what I had it do:
- Categorizing emails and assigning priority levels
- Applying labels and stars based on content analysis
- Creating draft responses for important emails only + saving it in Drafts folder
- Sending Slack notifications for high-priority messages (I use Slack a lot)
- Cleaning up low-priority emails based on configurable
rules (delete low quality emails + empty trash afterwards)
It works with most of the models so long as they're good at tool calling (most OSS Ollama models struggle) and connects via IMAP for easy setup.
The project is well-documented with clear installation instructions in my repo above.
I also have a YouTube tutorial walking through the project here:
https://www.youtube.com/watch?v=zz0SA8xMBCo
I built this to solve my own email overload problem and thought others might find it useful too.
Would appreciate any feedback or suggestions for improvement.
NOTE: I work at CrewAI. This is a side project I built to help solve my old email with a lot of unread emails that was running out of storage. I though to share here in case someone find it useful.