← All projects AI agents / Mac app

MailRoom — An AI Email Agent That Never Sends

A local Mac app that reads my Gmail, drafts the replies, proposes meeting times from my real calendars and writes a priority-ranked recap. The same job runs on five engines: Claude, ChatGPT, Gemini, a local Ollama model and n8n. Nothing is ever sent: every reply waits in Gmail Drafts for me.

Role
Sole author
Context
Personal tool
Core stack
Python · FastAPI · Gmail, Calendar & Docs APIs
Engines
Claude · ChatGPT · Gemini · Ollama · n8n

At a glance

MailRoom is the second version of my Gmail Assistant. The first one lived in n8n; this one is a Mac app with one window and one button per engine. The design rule is a split of responsibilities: the AI only reads and writes text, the app does every Gmail, Calendar and Docs call, plain code decides which time slots are free, and I decide what goes out.

Gmail · Calendar (read by the app) MailRoom app (every API call · free slots) Drafts · notes · recap (nothing sent) Human review (edit · confirm · send) Claude · ChatGPT · Gemini · Ollama · n8n (text in, text out · tools switched off)
The engine never touches Gmail or the calendar. It gets the email text on stdin and returns text; the app turns that into drafts, notes and a recap.

Watch the walkthrough

A full tour of the app, tab by tab, with a live run on the local Ollama engine.

Video thumbnail: I gave AI my inbox
I Built an AI Email Agent for My Own Inbox: A Full Tour · 7 min

The problem

An AI that answers your email is easy to build and hard to trust. The useful part, reading the mail and preparing the answer, comes bundled with the dangerous part: a model that can send messages, change your calendar and invent meeting times you never had free.

How it works

Every run does the same three steps, in the same order, whichever engine is selected.

All five engines share one list of handled emails, so a second run on another engine skips what the first already did. Each run reports its model calls and the tokens in and out.

Five engines, one job

Scheduling without trusting the model

The AI never sees my calendar. Plain code reads it, applies the rules I set in Settings and picks the free times: which calendars count as busy and, for each kind of contact, which hours can be offered and where the meeting is booked.

Safety model

Scope, honestly: MailRoom is built for my own inbox. It is macOS only for now, computes times in the Europe/Rome time zone, and needs your own Google OAuth client to run.

Stack

Python FastAPI pywebview SQLite Gmail API Google Calendar API Google Docs API Claude Code Codex CLI Gemini CLI Ollama n8n macOS Keychain
← Gmail Assistant Multi-agent system →