Using AI Agents to Analyze Your Medical Data with n8n + PostgreSQL + Ollama + Apple Health

Channel:
Subscribers:
201,000
Published on ● Video Link: https://www.youtube.com/watch?v=GrWUhu8fL4U



Duration: 0:00
6,369 views
184


What if you could ask an AI agent real medical questions and it understood your personal health data?

In this video, I demonstrate a proof of concept where I built a multi-agent AI system that reads my Apple Health and Labcorp data to answer real health-related questions, using n8n, PostgreSQL with pgvector, and Ollama. The purpose of this demo is to show the use case of AI Agents in a HealthCare Related setting.

This workflow includes:

Retrieval-augmented generation (RAG) to select relevant data columns from a health data dictionary
A data conversion agent to handle unit normalization (e.g., lbs to kg, mg/dL to mmol/L)
A medical expert agent to interpret lab and biometric data
A main assistant agent to coordinate, query the database, and return answers in plain English
This is a practical demonstration of how AI agents and local LLMs can be applied to real-world health data.

Project github:
https://github.com/DaveBben/apple-health-ai-agent