← Questions

Design email ranking and summarization for an inbox

0
MicrosoftSystem designLast asked Jan 2026

An AI system design interview question asked in Microsoft's system design round, last asked Jan 2026. It tests ranking, summarization and email.

Design two features for an email client: rank a user's incoming email by importance, so the messages that matter surface first, and summarize long messages and threads with a language model. Both run for many millions of users and see highly private data.

Requirements

  • Functional: score each new message for importance and order or label the inbox; summarize a message or a whole thread on demand or ahead of time; learn from user behaviour.
  • Non-functional: ranking adds little delay to delivery; summaries are fast and faithful (no invented facts, names or dates); strict privacy (no cross-user leakage, compliance rules); acceptable cost per user.

Clarifying questions

  • What does "important" mean here: likely to be read, replied to, or acted on soon?
  • Is ranking a reordering of the inbox, or a separate "focused" view?
  • Are summaries generated on demand, or precomputed for long threads?
  • Which data may be used for training, and is there an enterprise opt-out?
  • What latency and cost budgets apply?

What a strong answer covers

  • Ranking signals: sender relationship (how often the user replies), recipients, thread activity, content, time sensitivity, and the user's own past actions.
  • Labels from implicit feedback (opened, replied, archived unread, moved between views), with care for position bias and feedback loops (what is ranked low is seen less).
  • A model per user population with per-user features, trained centrally on privacy-safe data, or personalized lightweight models; cold start for new users.
  • Summarization: an extract-then-summarize pipeline over the thread, prompts that keep names, dates and action items, faithfulness checks, and caching summaries until the thread changes.
  • Privacy and safety: data handled in the user's tenant and region, no training on content without consent, filtering sensitive output, and treating instructions inside emails as untrusted.
  • Evaluation: offline ranking metrics and online engagement for ranking; human and model-graded faithfulness and usefulness for summaries; cost and latency monitoring.

Follow-ups

  • A phishing email is ranked as important. What went wrong, and how do you guard against it?
  • A summary states the wrong meeting date. How would you catch this class of error?
  • Reduce summarization cost by half for very long threads.
  • How do you evaluate ranking when users read everything anyway?

Where it's asked

What it tests

ranking · summarization · email

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing