HealthPilot
LangGraph Multi-Agent System

How HealthPilot Thinks

HealthPilot is not a single chatbot. It is a deterministic, state-driven graph of specialized AI agents and safety floors working in parallel to ensure clinical accuracy.

Step 01Recipient & Inquirer Agents

Dynamic Clinical Interview

The system conducts a dynamic, non-repeating interview. The Recipient Agent extracts structured HPI (History of Present Illness), while the Inquirer Agent determines the next most clinically relevant question to ask.

  • Extracts Chief Complaint, PMH, Medications, and Allergies.
  • Deterministically requests Chest X-Rays for cardiorespiratory presentations.
  • Stops asking questions once the minimum viable diagnostic threshold is met.
Step 02Parallel Processing Nodes

Multimodal Evidence Gathering

Once the interview is complete, the system fans out to gather evidence from multiple modalities simultaneously, ensuring no diagnostic delay.

  • ChestVision: Analyzes uploaded DICOM/JPEG X-Rays for focal consolidations or abnormalities.
  • EHR Node: Pulls historical patient data and lab baselines.
  • RAG Node: Retrieves the latest peer-reviewed clinical guidelines.
Step 03Analyser Agent

Diagnostic Synthesis

The Analyser Agent acts as the attending physician. It waits for all multimodal evidence to arrive, then synthesizes it against the patient's HPI to formulate a diagnosis.

  • Generates a primary assessment with calculated probability.
  • Provides a list of differential diagnoses.
  • Outputs explainable clinical reasoning for its decision.
Step 04Triage Agent & Safety Floors

Safety & Triage Routing

Before any output reaches the patient, deterministic safety floors evaluate the data. If red flags (e.g., FAST stroke signs, anaphylaxis) are detected, the model's urgency is overridden and escalated.

  • Maps the final decision to standard clinical pathways (e.g., A&E, NHS 111, GP Routine).
  • Generates actionable next steps and strict safety-netting advice.
  • Streams the final, safe response back to the patient interface.