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
ML System Design
Machine Learning Engineer
Veeva Systems
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

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
recommendation systems
uplift modeling
constrained optimization
causal evaluation
feature pipelines
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 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 Problems
Sample 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...


Submit Your Answer
Markdown supported

Related Questions