How we built the AI system to automate recommendation suggestions to health professionals at Doctolib

Marceau Leriche10 Dec 2024

Problem

Doctolib sells software to health professionals (390,000 clients). How well a practice is set up in the product varies by country, specialty, number of practitioners and whether a secretary is present. Some clients have a suboptimal setup and miss features that would save them administrative time. Manual campaigns do not scale across so many configurations and are hard to maintain. Low feature adoption also hurts client retention.

Example from the article: a practitioner has no SMS appointment reminders enabled, so the system suggests turning them on to reduce no-shows.

Solution in brief

Keep a catalog of recommendations, each with triggering conditions. Each day, compute which recommendations each user is eligible for, rank those by predicted click probability, and show the top ones as paced banners in the agenda. Clicks and dismissals feed back into weekly retraining.

Questions this case answers
  • How to automatically choose which of many product-adoption nudges to show each user, when each nudge has its own eligibility rules and new nudges are added continuously
  • How to rank nudges for each user from click feedback alone when completing the recommended action is a multi-step, sparse signal
  • How to suggest the right product setting or feature to each of hundreds of thousands of B2B users without manual campaigns?
  • How to rank a catalog of in-product recommendations for a user when only click feedback is available?

Tools and methods

  • Recommendation catalog — list of recommendations (product settings, product discovery, internal communications) with eligibility conditions, edited by product managers
  • Datamarts and daily eligibility job — compute per-user attributes and match them to catalog conditions
  • Click-probability ranking model — orders each user's eligible recommendations
  • Separate handling of new recommendations — avoids cold start until enough history exists
  • Pacing and performance filter — limit banner frequency and show only high-click-probability banners
  • Apache Airflow — orchestrates the daily eligibility computation
  • Slack — automated alerts on pipeline and retraining problems
Continue reading — it's free

Google or a one-time email code. No password.