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
November 29, 20260
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
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- 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 ProblemsSample 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
- Ingest and link: parse email, OCR attachments, match the loan (sender email, loan number regex, name and address), confidence-scored.
- Triage classifier: a fine-tuned small model or an LL...