Design a GPT-Powered Email Summarizer

Hard45 min
1 / 29
System design answer

Design a GPT-Powered Email Summarizer

Hard45 min29 sections
understanding•11 min read

Problem Statement: An LLM-Native Email Intelligence Layer

Frames the product as a privacy-sensitive, token-budget-constrained AI pipeline, not a thin wrapper around a chat API.

Problem statement

Design a GPT-powered email summarizer that connects to a user's mailbox, ingests new messages, identifies key highlights and action items per conversation thread, groups them by project or urgency, and delivers a daily or weekly digest. The user can configure custom filters (urgent, project-based, sender allowlists) and expects the tool to respect the profound privacy sensitivity of reading someone's entire inbox.

This is not a cloud-only CRUD problem. The defining tension is between capability (an LLM that reads everything) and trust (a user who must believe the system reads only what it should, stores only what it must, and never leaks one thread into another user's summary). Therefore the design separates the summarization plane (LLM inference, prompt assembly, token budgeting) from the trust plane (consent, redaction, retention, local indexing, on-device options). The cloud owns orchestration, delivery, and fleet-scale batching; the privacy boundary is enforced at the edge of every request, not merely by policy prose.

Why the problem is distinctive

A notification backend can retry a push. An email summarizer cannot un-read a confidential message. The design therefore separates delivery correctness from privacy correctness . Delivery correctness is an eventually-progressing workflow: synced, normalized, chunked, summarized, delivered, or recovered. Privacy correctness is an invariant: a message may be sent to an LLM only when the user's consent covers that mailbox, that label, and that data-flow, and only after PII redaction and retention policy have been applied. If consent is stale, redaction fails, or the data-flow is not approved, the safe response is to skip summarization and surface a consent prompt—not to proceed optimistically.

The problem requires email ingestion (IMAP/POP or API), LLM-based summarization or topic classification, daily summaries with key action items, user preference config for grouping/filtering, and careful handling of private emails including local indexing or privacy constraints.

Public operating baseline versus design assumptions

Public evidence establishes that the category is operationally real and enormous. The Radicati Group projects roughly 347 billion emails sent and received per day in 2023, rising to about 392 billion by 2026, with the average office worker receiving around 121 emails per day. Gmail reports more than 1.8 billion users, and Microsoft 365 reports more than 400 million paid commercial seats. Microsoft Copilot for Outlook and Google Gemini in Gmail demonstrate that hyperscalers already run LLM summarization over mail at planetary scale. These are cited public figures, not requirements for our fictional system.

For capacity planning, this answer explicitly assumes a mature consumer-and-prosumer service with 2 million registered users, 400,000 simultaneously active mailboxes syncing, 60 million new emails ingested per day, and a three-times event peak (Monday morning, post-holiday). Unless a number is tied to a citation, it is a stated design assumption, target, budget, or illustrative threshold—not a claim about any company's private architecture.

The four architectural planes

  1. Ingestion plane: OAuth/IMAP connectors, incremental sync, normalization, deduplication, and attachment handling.
  2. Intelligence plane: chunking, PII redaction, prompt assembly, LLM summarization, action-item extraction, and topic classification.
  3. Delivery plane: digest compilation, scheduling, notification fan-out, preference application, and read/unread state.
  4. Trust plane: consent ledger, redaction policy, retention schedule, local/on-device index, audit trail, and data-flow approval.

A strong interview answer keeps these planes separate. It allows the delivery plane to degrade without weakening the trust plane, and it permits the intelligence plane to swap model providers without silently changing the consent or retention contract.

Key Highlights

  • •The cloud may orchestrate summarization, but consent, redaction, and retention must be enforced at the edge of every request.
  • •Model delivery progress as a durable workflow and privacy permission as a continuously evaluated invariant.
  • •Public email-volume figures provide context; every uncited scale or SLO in this answer is an explicit design assumption.
  • •The architecture has four planes: ingestion, intelligence, delivery, and trust.
  • •Skipping a summary due to missing consent is a successful privacy outcome even when it is a failed delivery outcome.
Lead With the Privacy Boundary
State in the first two minutes that no email reaches an LLM without a valid consent grant and a passing redaction check. This instantly distinguishes an AI architecture from a generic pipeline and is exactly what an interviewer probing 'handle user privacy' wants to hear.
Do Not Draw a Naive LLM Pipe
A design that pipes raw inbox contents straight to GPT with no consent ledger, no redaction, and no retention policy is unsafe and will fail a serious interview. Privacy is the product here, not a footnote.

Section Rescue Kit

Buzzwords to use:

Consent LedgerToken Budget

Safe statements:

  • "I will separate delivery completion from privacy correctness: the former may retry, while the latter must fail closed before any LLM call."
  • "Before selecting services, let me define which data flows are allowed to reach the model, which stay local, and which require explicit consent."
Design a GPT-Powered Email Summarizer - System Design | WinJob | WinJob