Skip to content
Aryan Panwar monogram

AI-First CRM (HCP) - Case Study

A prototype CRM module where a pharma field rep logs a doctor visit by form or by chat, and the two stay in sync.

By Aryan Panwar, Business Analyst on Salesforce projects at Cloud Ingenious

Role

Solo build (product and code)

Platform

Web · FastAPI · LangGraph · React

Timeline

April 2026

Status

Prototype

ResultWorking prototype on sample data. Not yet tested with real reps.
AI-First CRM (HCP)

TL;DR

  • ·Built in April 2026 to a brief: a CRM module for pharma field reps that logs healthcare-professional (HCP) visits by form or by chat, with the two kept in sync.
  • ·A LangGraph pipeline with five assistant tools fills the form from the chat. Every AI-filled field is highlighted and stays editable, so the rep has the final say.
  • ·I have not put it in front of reps. The metrics and kill condition below are the plan for a pilot, not results.

Overview

A working prototype that reframes CRM data entry as something the system drafts and the rep confirms, not a chore the rep does alone.

What I Cut, and Why

  • ·Full CRM replacement
  • ·Native mobile app
  • ·Voice logging
  • ·Multi-tenant admin

Problem Statement

Traditional CRMs demand structured input from users under time pressure. The value arrives later, in reports and follow-ups; the friction arrives now.

Market Need

The brief asked for an AI-first way to log HCP interactions. The design question I cared about was not whether a model can extract fields, but whether a rep would trust what it extracted.

Target Users

Field reps in life-sciences sales who log visits between appointments, and the managers who read the reports downstream.

Research

No access to reps for this build. The design rests on the brief and on how field-sales CRMs are usually filled in. The assumptions below are what I would test first with real reps.

Insights

  • ·Hypothesis: the best CRM is one the rep barely types into, but trust has to be earned before they stop typing.
  • ·Hypothesis: trust in AI-drafted notes is set in the first few uses, so early accuracy matters more than average accuracy.

Opportunity

Move the CRM from a system of record to a system that drafts the record: the rep talks, the system captures, the rep confirms.

Scope

  • ·Form and chat logging, kept in sync (AI-filled fields highlight for 1.5 seconds)
  • ·Five LangGraph assistant tools, including logging an interaction and an HCP profile lookup
  • ·A compliance check the rep can ask for in chat (a monthly cap on in-person visits per HCP), plus a confirmation box that must be ticked before the form saves

Assumptions

The most uncertain bet: that reps would trust a draft they can edit more than a form they control. If that is wrong, the chat becomes a typewriter and reps re-type everything into the form.

Success Criteria

  • ·Pilot target: note capture time per visit drops enough that reps notice without being told.
  • ·Pilot target: draft acceptance above 80%, meaning fewer than 3 significant edits per note. Below that, the model creates cleanup work.
  • ·Kill condition: if reps re-type the AI draft instead of editing it, the review surface has failed regardless of accuracy.

Expected Behaviour

Rep finishes a visit → describes it in the chat → the assistant logs it and fills the form, highlighting what changed → rep corrects anything wrong in the form or by asking in chat. In the prototype the chat saves as soon as it understands the visit; the pilot version would hold it as a draft until the rep confirms.

North Star Metric

Rep-confirmed interactions per week (proposed) - not model accuracy, because an accurate model that reps don't use changes nothing.

Supporting Metrics

  • ·Draft acceptance rate
  • ·Note capture time
  • ·Re-typing rate

Prioritization

Everything was judged by expected rep time saved per visit. Manager dashboards, voice logging and offline sync were cut from the first version.

Wireframes

Form and chat side by side, so the rep always sees what the assistant changed. Highlighting AI-filled fields was the simplest way to make the draft inspectable.

PRD

Worked from the brief. The README documents each assistant tool: what it takes in, what it returns, and whether it calls an LLM.

Prototype

FastAPI and LangGraph backend with a Groq-hosted Llama model, React and Redux frontend, SQLite by default, tested on seeded sample HCP data.

Final Solution

A LangGraph assistant that logs the visit from a plain-language description, an editable form that stays in sync with it, and a compliance check the rep can ask for.

Reflection

What I would do next is the part this build skipped: sit with a few reps, watch them log real visits, and measure how often they edit the draft versus re-type it. The first code change would be a real draft step: today the chat saves a visit immediately, and pressing Save on the form afterwards creates a second record. Until then, this is a well-reasoned prototype, not a validated product.

Lessons Learned

  • ·The review surface is the product. The same model behind a worse confirmation UI would earn less trust.
  • ·Writing the kill condition before building kept the scope honest: anything that didn't help a rep confirm a draft faster was cut.