Design Next-Best-Action Suggestions for Pharma Field Reps
Last updated: November 29, 2026
Quick Overview
Design an ML system that each morning recommends to every field rep which healthcare providers to contact, through which channel (visit, email, event invite) and with what topic, while respecting compliance rules and rep capacity.
Veeva Systems
November 29, 20260
0
0 solved
Design an ML system that each morning recommends to every field rep which healthcare providers to contact, through which channel (visit, email, event invite) and with what topic, while respecting compliance rules and rep capacity.
Vault CRM offers suggestions and AI-driven guidance to reps, so ranking, constraints and measurement in a regulated commercial setting are relevant. The interviewer checks target definition beyond clicks, use of CRM and prescribing data, hard compliance constraints, causal evaluation, and rep trust.
What the Interviewer Expects
- Defines an objective tied to outcomes (engagement and prescribing uplift), not just rep acceptance
- Lists features from CRM activity, HCP attributes, channel consent and market data
- Separates candidate generation, scoring, constrained allocation and explanation
- Enforces hard rules: consent, contact frequency caps, approved content only
- Proposes uplift modeling or experiments to measure incremental value
- Plans feedback loops and monitoring for drift and rep adoption
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 avoid recommending the same top prescribers to every rep forever?
- Approved email requires opt-in and approved templates; where do those checks live?
- How would you run an experiment when reps share accounts across a territory?
- How would you explain a suggestion so a rep trusts it?
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
Daily, per rep: up to N suggestions (say 5 to 10), each with HCP, channel, topic and a reason. Constraints: channel consent, frequency caps per HCP, territory alignment, approved content per product a...
High-Level Design
Data layer: CRM activity (calls, emails opened, events), HCP master attributes, consent records, market and prescribing data (aggregated, privacy compliant). Pipeline: candidate generation from the re...