Skip to content
SAJEEL HASAN
ALL PROJECTS
(01)2026FEATURED

MAIL-AI

Agentic AI email assistant. A two-agent Writer and Reviewer pipeline on the OpenAI Agents SDK that decides its own tool calls, grounded in your past emails through semantic search.

MAIL-AI screenshot
MAIL-AI — SCREENSVIEW FULL SIZE
(01) Overview

MAIL-AI is a multi-user email assistant built on the OpenAI Agents SDK running on Gemini. The distinction that matters is that it is genuinely agentic rather than a chatbot wrapped around an inbox: a Writer agent and a Reviewer agent pass work between them, and the agent decides which tools to call on its own. Drafts are grounded in what you have actually written before — past emails are embedded with pgvector, so relevant prior conversations are retrieved by meaning rather than keyword. It reads and sends from each user's own Gmail account through OAuth, and nothing leaves the outbox without an explicit human approval step.

(02) What it does
01

Two-agent Writer and Reviewer pipeline on the OpenAI Agents SDK, running on Gemini, with autonomous tool-use

02

RAG semantic search over past emails using pgvector embeddings, grounding drafts in relevant prior threads

03

Google OAuth via Supabase and the Gmail API, with per-user token management and least-privilege scopes

04

Direct PostgreSQL data layer (node-postgres) with per-user scoping and human-in-the-loop send approval

Let’s work together—Available for work—Let’s work together—Available for work—