The assistant searches and organizes messages, drafts replies, and may send externally. Searching and drafting can be low impact; sending, forwarding, or deleting messages changes external state and should have a visible authorization boundary.
How to present this design
Think aloud in layers. Confirm constraints before drawing; label the system of record, authorization boundary, and irreversible actions; then trace one request through the design. Keep the first version small enough to test.
A sample opening and design narrative
I would first clarify the user and what a successful email assistant outcome means. The workflow is: The assistant searches and organizes messages, drafts replies, and may send externally. Searching and drafting can be low impact; sending, forwarding, or deleting messages changes external state and should have a visible authorization boundary. I would make this design question explicit: Which messages and folders may the user authorize for this task? The first failure I would design for is: A malicious message instructs the agent to reveal private information. I would make that failure visible and recoverable. I would launch against draft acceptance and correction rate. and monitor wrong-recipient incidents, send failures, and duplicate sends.. If those signals miss the agreed bar, I would pause expansion and inspect the failing boundary before adding more autonomy.
This example supplies a structure. In a real interview, ask for missing scale and service-level constraints rather than inventing them.
Decisions to make explicit
- Decision 1
Which messages and folders may the user authorize for this task?
- Decision 2
How are sender instructions separated from the user's request?
- Decision 3
Which send actions need a preview or explicit confirmation?
A useful interview walkthrough
- Define success
Start with this measurable outcome: Draft acceptance and correction rate. Confirm that it represents the user's job rather than an easy-to-count system activity.
- Protect the boundary
Resolve the design question: Which messages and folders may the user authorize for this task? State which identity, policy, or source system remains authoritative.
- Design for the first exception
Make this failure explicit: A malicious message instructs the agent to reveal private information. Explain how the system detects it and what the user sees while recovery is pending.
- Prove and operate it
Track Wrong-recipient incidents, send failures, and duplicate sends. Name the owner, release gate, and what would trigger a pause or rollback.
Failure analysis
- A malicious message instructs the agent to reveal private information.
- The wrong recipient or attachment is included.
- A timeout leaves send status ambiguous and a retry creates a duplicate.
Workaround: Begin with a reversible, human-reviewable slice. Verify the external state after each consequential action, then widen scope only when difficult cases meet the agreed bar.
Evidence and operating signals
- Draft acceptance and correction rate.
- Wrong-recipient incidents, send failures, and duplicate sends.
Canonical interview prompts
Practice the source questions
The full prompt set stays on the system-design guide; these links take you to the exact source question.