A free morning email brief across four mailboxes, with drafted replies
Published
How does this AI workflow work?
- Replaces: Going through four inboxes by hand every morning, sorting out promos, and writing routine replies for a role-based mailbox (an apartment association).
- What to connect: A Python script written by Claude, run daily on GitHub Actions and triggered by cron-job.org.
- It uses the Gmail API (OAuth app published to Production, because refresh tokens in Testing mode expire after 7 days) and Gemini Flash on the free tier, with forwarding to bring non-Gmail mail in.
- Output: one brief in five categories (Action Required, Transactional, Newsletters, Promotional, Social), promos trashed in one mailbox only, and reply drafts saved to Drafts.
- It never sends a reply on its own. Running cost: ₹0 at the author's usage.
- Free-tier Gemini terms allow human review of what you send, so test with made-up mail first.
- Who it's for: Non-coders and solo operators who juggle several personal and role mailboxes and don't want to pay for a no-code subscription for a job that runs once a day.
From the Morning Tokens issue of Nov 14, 2026