Skip to content

Instantly share code, notes, and snippets.

View ParthAsopa's full-sized avatar

Parth Asopa ParthAsopa

View GitHub Profile
@ParthAsopa
ParthAsopa / README.md
Last active June 7, 2026 22:09
Automated Gmail Inbox Sweeper using Gemini AI & Google Apps Script

🧹 Gmail AI Sweeper

An automated backend script that connects Google Apps Script to the Gemini AI API to clean out expired events, webinars, and hackathons from your inbox.

How it works:

  1. Wakes up every 4 hours via a time-driven trigger.
  2. Pulls up to 25 unread emails from your inbox.
  3. Evaluates them against strict rules using Gemini 3.1 Flash Lite.
  4. Safely trashes emails if the event deadline has passed.
  5. Logs all AI verdicts and actions to a Google Sheet dashboard.