Health monitoring system with Grok-3 AI analysis and family/doctor email alerts
Needs changesWhat this workflow does
This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenRouter Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Extract Health Data (Edit Fields (Set)): sets 10 fields: patientName, age, bloodPressure…
- AI Health Analysis Agent (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Structured Output Parser
- Check If Alert Needed (If): checks a condition and branches into true / false
- Prepare Alert Data (Edit Fields (Set)): sets 10 fields: familyEmail, doctorEmail, patientName…
- No Alert Required (Edit Fields (Set)): sets 3 fields: status, message, healthStatus
- Send Email: sends an email over SMTP
- Combine Results (Merge): merges the data from its input branches
- Check If Doctor Alert Needed (If): checks a condition and branches into true / false
- Respond to Webhook: sends the response back to the webhook caller
- Send Email: sends an email over SMTP
…plus 1 more step. See the full node list below.
Services it uses
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 AI Health Analysis 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.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Health Analysis 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 (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend - Merge
n8n-nodes-base.merge - Respond to Webhook
n8n-nodes-base.respondToWebhook - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
Introduction Automates patient health monitoring by analyzing submitted health data via AI, determining alert necessity, and notifying family and doctors when critical conditions detected. How It Works Webhook receives health data, AI agent analyzes vitals…