How I built an Agent to clean up Gmail inbox
I have been learning AI and exploring different AI tools, one thought was is there a free tool to clean up my Gmail inbox. From what I explored there is none of them that actually move any of the sales/marketing/junk emails from inbox to the trash. So I decided to learn how to use Agents and a bit about Google Apps Script and build my own solution using Gemini and Claude.
This blogpost takes you through setting up a simple automated script that connects your Gmail to the Gemini AI. It then checks your unread emails, figures out if they are sales pitches or spam, and moves them to the trash automatically. We will also set up a safe list so we have an inbuilt gaurdrail and assurance you don't lose any important stuff.
When I publish something new you will get a short email with a link. Nothing else.