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.
Case Study + Deep Dive: Telemedicine Support Agents with LangGraph/MCP
Speaker
Dan Mason of Stride presents at AI Engineer how his team built a LangGraph and MCP based telemedicine support agent for Aila Science.
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.
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.
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 atPrincipal, 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
- useshosting across multiple regions
“The whole system is hosted on AWS”
YouTube Unverified1 source· Talk
- usesLLM-as-a-judge evaluations with a custom harness
“runs it through Promptfoo”
YouTube Unverified1 source· Talk
- integrates withcustom 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
- metricAila Science: Estimated capacity increase of roughly 10x
“We think it’s something like 10x”
YouTube Unverified1 source· Talk
- featurevirtual operations associate: Assesses patient conversation state and proposes responses, questions, and actions
“assesses the state of a conversation with a patient and determines the best response”
YouTube Unverified1 source· Talk
- featureevaluator: Scores proposal correctness and complexity to decide when a human should review
“The live judge assesses how correct it thinks the proposal is. It also looks at complexity.”
YouTube Unverified1 source· Talk
- featureAva: Patient-facing virtual assistant for treatment conversations
“The agent is named Ava. That’s the personality people are interacting with.”
YouTube Unverified1 source· Talk












