WhoBuilt

Case Study + Deep Dive: Telemedicine Support Agents with LangGraph/MCP

Jun 22, 2025· 1 h 56 min· 8.0K views·Watch on YouTube

Speaker

Dan Mason of Stride presents at AI Engineer how his team built a LangGraph and MCP based telemedicine support agent for Aila Science.

The care coordination problem

Aila Science supports people taking medication at home after early pregnancy loss. Its text based system helps patients follow treatment steps, answers questions, and checks in, while keeping doctors in the care relationship. Previously, operations associates read each message and clicked buttons in a workflow; the team wanted to support more patients and treatments without scaling that manual work.

A human supervised agent workflow

A virtual operations associate proposes replies and updates patient state, such as treatment timing, anchors, and scheduled messages. A separate evaluator assesses the response and flags uncertainty or complexity for human review; proposals below 75% confidence require approval. The system is designed to send routine responses automatically and involve human operators in cases that warrant review.

Blueprints, tools, and state

Mason describes a Python and LangGraph service connected to a text gateway, dashboard, and database, with MCP used to read documents and exchange data. Treatment guidance lives in human maintained blueprints and linked knowledge documents, rather than a RAG system; the model loads the relevant materials into context. The team can add a treatment by preparing documents without changing application code, as Mason demonstrated with an Ozempic example.

Evaluation and operational tradeoffs

The team uses LangSmith datasets with a custom Python harness and an LLM judge to compare output state against prior cases, including special handling for dates and times. They also use retries for malformed tool calls and human review for low confidence cases. Mason says the system may increase operator capacity by roughly 10x, while noting that this is an early estimate and that messages cost about 15 to 20 cents on average despite caching.

Takeaways

  • Keep treatment guidance in documents when clinical teams need to maintain workflows without code changes.
  • Use human review thresholds to focus operator time on uncertain or complex interactions.
  • Evaluate the resulting state, not just the wording of a generated reply.
  • Build retries and observability around tool calls, since malformed calls can lead to fabricated results.
  • Track cost and capacity as estimates until real operational data supports firmer conclusions.

Mentioned in this talk

Search inside this talk

What was claimed 11

  • works at
    Dan Mason works at Stride
    Principal, AI
    “I maintained and built basically everything on the LangGraph side”
    YouTube
    Verified2 sources· Talk, Web· archived
  • uses
    “The examples I’m going to show use Claude”
    YouTube
    Unverified1 source· Talk
  • uses
    “The other pieces—a text message gateway, database, and dashboard—use Node, React, MongoDB, and Twilio.”
    YouTube
    Unverified1 source· Talk
  • uses
    “The other pieces—a text message gateway, database, and dashboard—use Node, React, MongoDB, and Twilio.”
    YouTube
    Unverified1 source· Talk
  • uses
    Stride uses AWS
    hosting across multiple regions
    “The whole system is hosted on AWS”
    YouTube
    Unverified1 source· Talk
  • uses
    LLM-as-a-judge evaluations with a custom harness
    “runs it through Promptfoo”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Promptfoo integrates with LangSmith
    custom harness pulls and processes data for evaluation
    “built an external harness that pulls data out of LangSmith, processes it, and runs it through Promptfoo”
    YouTube
    Unverified1 source· Talk
  • metric
    Aila Science: Estimated capacity increase of roughly 10x
    “We think it’s something like 10x”
    YouTube
    Unverified1 source· Talk
Show all 11 facts

Related talks