Accelerating Personalized Health Protocols with Windmill's Agentic AI Pipeline

Solution for a precision health company offering longevity protocols based on biomarkers.

Longevity profile with biological age, health potential, risks, stress and recovery, and nutrition

Project details and story

Industry
Healthcare
Solution
  • Agentic AI Discovery Sprint
  • Agentic AI Architecture
  • Proof-of-Concept (PoC) Build
  • AI Agent Engineering
  • DevSecOps & Deployment
  • Integration Engineering
  • Human-Centered UX / UI Design
Year
2025

Challenges

Manual generation of personalized health protocols was slow (~2 hours), inconsistent, and resource-intensive. This hindered scaling and user experience.

Approach

We partnered with xLongevity to simplify protocol generation by building a modular agentic AI pipeline. Specialized agents were designed to extract data, assess risk, and compose personalized plans, delivering consistent, safe outputs in under five minutes.

Healthcare record upload and an activity-level question beside a message field

Solution

Windmill implemented an agentic AI pipeline using LangChain and Azure OpenAI to automate health protocol generation, reducing time to under 5 minutes while enhancing medical accuracy, personalization, and consistency.

Windmill's modular agentic AI pipeline automated:

  • Parsing of clinical documents (PDFs, notes)
  • Mapping of biomarkers, PhenoAge, NAD+, senescence risk
  • Supplement and intervention matching
  • Personalized dietary and lifestyle planning
  • Summary generation in structured JSON for smooth UI/report rendering

Architecture & Technology Stack

A modular, AI-powered architecture optimized for speed, accuracy, and security, with OAuth2, JWT, encrypted databases, and audit logs protecting every layer.
  1. Frontend (React Forms)

    Clinicians upload reports or input data; AI suggestions appear inline.

    Tech Stack: React, JSON Schema Renderer

  2. Agentic AI Orchestrator

    Manages specialized agents for parsing, risk analysis, protocol generation.

    Tech Stack: LangChain, Azure OpenAI (GPT-4, GPT-4o)

  3. Backend APIs

    Stores structured data, exposes APIs, enables exports and audit tracking.

    Tech Stack: Java, Django, PostgreSQL

Agentic AI Pipeline Design

  1. Intake Parser Agent

    Extracts structured health data from text/PDFs

    Model: GPT-4o + Textract

    Output: JSON metadata

  2. Risk Assessor Agent

    Flags contraindications, red flags, conflicts

    Model: LLM + internal logic

    Output: Risk report

  3. Intervention Matcher Agent

    Suggests clinical-grade therapies (e.g., NAD+, etc.)

    Model: GPT-4

    Output: JSON protocol section

  4. Supplements Matcher Agent

    Matches supplements with safety checks

    Model: GPT-4o + Textract

    Output: Supplement list

  5. Protocol Composer Agent

    Merges outputs into safe, sequenced plan

    Model: GPT-4

    Output: Final protocol JSON

  6. Diet Recommendations Agent

    Personalized dietary strategy

    Model: GPT-4

    Output: JSON meal guide

  7. Lifestyle Recommendations Agent

    Suggests habits for sleep, stress, exercise

    Model: GPT-4

    Output: Lifestyle suggestions

  8. Summary & Report Generator

    Final clinical summary in JSON + HTML

    Model: GPT-4o

    Output: Report document

Impact

Windmill reinvented personalized health protocol generation using a modular agentic AI pipeline. The result: secure, clinically relevant outputs that can scale, generated in minutes instead of hours, ready for integration into digital health platforms.

Before

Manual health protocol workflows

  • ~2 Hours

    Manual protocol generation

  • High

    Clinician review required at every step

  • Variable

    Outcomes differed across clinicians

After

AI-powered protocol automation

  • <5 Minutes

    AI composes protocols in minutes

  • Minimal

    Light validation only when needed

  • Consistent

    AI ensures repeatable, reliable results