Design an LLM Agent That Drafts Replies to Homeowner Servicing Emails

Last updated: November 29, 2026

Quick Overview

Design an AI system that reads inbound homeowner emails to a mortgage servicer, classifies intent, gathers the relevant loan facts, drafts a compliant reply, and decides when a human must review or take over.

Valon
ML System Design
Machine Learning Engineer
Valon
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Design an AI system that reads inbound homeowner emails to a mortgage servicer, classifies intent, gathers the relevant loan facts, drafts a compliant reply, and decides when a human must review or take over.

Answering homeowner emails is one of the tasks Valon describes its AI agents handling inside ValonOS, in a heavily regulated setting where some messages (disputes, hardship, bankruptcy) carry legal obligations. The interviewer looks for grounding in loan data, guardrails, human-in-the-loop routing, and how you measure quality.

What the Interviewer Expects
  • Classify intent and detect regulated triggers (error notices, information requests, hardship, bankruptcy)
  • Ground answers in tool calls to the loan record, not model memory
  • Route by risk: auto-send, human review, or human only
  • Log every draft, source and decision for audit
  • Define offline and online evaluation with operations staff
  • Protect borrower PII
Key Topics to Cover
LLM agents
Retrieval and tool use
Guardrails
Human in the loop
Evaluation
Compliance
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you keep response deadlines for qualified written requests if the agent is down?
  • How would you detect that the model invented a balance or date?
  • How do you roll out a new model version safely?
  • How would you handle Spanish-language emails?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Inputs: emails with attachments, linked to a loan by sender and content. Outputs: an intent label, a draft reply, cited facts, and a routing decision. Constraints: messages that are notices of error o...

High-Level Design
  1. Ingest and link: parse email, OCR attachments, match the loan (sender email, loan number regex, name and address), confidence-scored.
  2. Triage classifier: a fine-tuned small model or an LL...

Submit Your Answer
Markdown supported

Related Questions