gil lu
work

Bertram

AI Email/Inbox Management Platform

Bertram preview

Overview

Bertram is a full-stack email client built around one idea: your inbox should manage itself. It syncs Gmail and Outlook into a single unified inbox, then layers agentic AI on top — summarizing threads, drafting replies, classifying priority, and keeping the inbox organized without manual triage.

The platform is a complete product, not a plugin: a Next.js/TypeScript frontend with threaded conversation views and meeting-scheduling workflows, a FastAPI REST API underneath, PostgreSQL for persistence, and Google OAuth 2.0 handling authentication.

The agentic layer is where it earns its keep. Instead of one-off "summarize this" buttons, Bertram runs summarization, reply drafting, priority classification, and organization as continuous inbox behaviors — the mail arrives already sorted, already summarized, with a draft waiting when a response is obvious.

The Problem

Email is the default workspace nobody chose. Two providers, two inboxes, and a triage burden that scales with every message — most of which need a decision ("read later", "reply now", "ignore") more than they need attention.

Bertram's answer is to normalize everything into one inbox and let an agentic layer make the first pass at those decisions, so the human only handles what actually needs judgment.

Unified inbox — Gmail and Outlook merged into one threaded view.
Unified inbox — Gmail and Outlook merged into one threaded view.

Key Features

  • Unified Gmail and Outlook sync in one inbox
  • Google OAuth 2.0 authentication
  • Agentic summarization, reply drafting, and priority classification
  • Automated inbox organization
  • Meeting scheduling workflows and threaded conversation views

Stack

  • Next.js
  • TypeScript
  • FastAPI
  • PostgreSQL
  • OAuth 2.0
  • LLM APIs

Architecture

The Next.js/TypeScript frontend talks to a FastAPI REST API; PostgreSQL stores accounts, messages, threads, and classification state. OAuth 2.0 tokens are managed server-side, keeping provider credentials away from the client.

Provider sync is the foundation: Gmail and Outlook messages are normalized into a single internal model, so every downstream feature — threading, search, classification, drafting — operates on one consistent shape regardless of where the mail came from.

The agentic features run against that normalized model, writing their output (summaries, drafts, priority labels, folder moves) back into the same store the UI reads, so AI actions and user actions are indistinguishable to the rest of the system.

AI actions — summaries, drafted replies, and priority labels applied to incoming mail.
AI actions — summaries, drafted replies, and priority labels applied to incoming mail.

Skills Applied

Frontend
Next.js/TypeScript client with threaded conversation views, unified inbox UI, and meeting-scheduling workflows.
Backend
FastAPI REST API with PostgreSQL persistence for accounts, messages, and classification state.
Auth & Sync
Google OAuth 2.0 and dual-provider synchronization normalizing Gmail and Outlook into one inbox model.
AI Integration
Agentic pipeline for thread summarization, reply drafting, priority classification, and automated organization.
Meeting scheduling workflow built into the conversation view.
Meeting scheduling workflow built into the conversation view.

Live Demo

A hosted demo is in the works — it will live right here on this page.