Predictive health monitoring & alert system with GPT-4o-mini
Needs changesWhat this workflow does
This AI workflow has 23 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Postgres, OpenAI Chat Model, Twilio and MongoDB and 3 more. It also calls api.pdfmonkey.io over HTTP.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Normalize Health Data (Code): runs custom JavaScript code
- Store in Database (Postgres): uses Postgres
- Get Recent History (Postgres): run a query
- Trigger Wearable Device Sync (HTTP Request): calls an HTTP API (POST)
- Log to MongoDB Health History (MongoDB): insert
- Analyze Health Metrics (Code): runs custom JavaScript code
- Check If Doctor Visit Needed (If): checks a condition and branches into true / false
- Calculate Health Score (Code): runs custom JavaScript code
- Generate Health Report (AI Agent): runs an AI agent, with model: OpenAI GPT-
- Compare with Previous Week (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
HTTP calls to: api.pdfmonkey.io
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Generate Health Report (v1.7), AI Predictive Health Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Generate Health Report (v1.7), AI Predictive Health Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (14)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Postgres
n8n-nodes-base.postgres - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Send Email
n8n-nodes-base.emailSend - No Operation, do nothing
n8n-nodes-base.noOp - Twilio
n8n-nodes-base.twilio - MongoDB
n8n-nodes-base.mongoDb - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack - Google Calendar
n8n-nodes-base.googleCalendar - Redis
n8n-nodes-base.redis
From the author
How It Works The system collects real-time wearable health data, normalizes it, and uses AI to analyze trends and risk scores. It detects anomalies by comparing with historical patterns and automatically triggers alerts and follow-up actions when thresholds…