{
  "name": "Health monitoring system with Grok-3 AI analysis and family/doctor email alerts",
  "nodes": [
    {
      "id": "765f5740-a408-4a7c-91c2-bbb57c9b0999",
      "name": "Webhook - Submit Health Data",
      "type": "n8n-nodes-base.webhook",
      "position": [
        48,
        32
      ]
    },
    {
      "id": "f5ac1b49-b445-4041-8452-c029ce8c70cf",
      "name": "Extract Health Data",
      "type": "n8n-nodes-base.set",
      "position": [
        256,
        32
      ]
    },
    {
      "id": "54e449f5-e947-48c0-b1a1-8909c2371943",
      "name": "AI Health Analysis Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        432,
        16
      ]
    },
    {
      "id": "63fbd346-a5ed-4fbf-9017-c6b1049998eb",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        576,
        240
      ]
    },
    {
      "id": "a4f56a13-b529-481f-bc91-2b038473ab46",
      "name": "Check If Alert Needed",
      "type": "n8n-nodes-base.if",
      "position": [
        704,
        16
      ]
    },
    {
      "id": "ce55fffe-20f2-4415-aabf-c0ee71431e49",
      "name": "Prepare Alert Data",
      "type": "n8n-nodes-base.set",
      "position": [
        928,
        -16
      ]
    },
    {
      "id": "9cfcd640-34b9-4ae8-8fa7-72f7cd7e8288",
      "name": "Send Email to Family",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1104,
        -16
      ]
    },
    {
      "id": "cba5f6d2-1a84-416e-a2fb-720987cc2eb0",
      "name": "Check If Doctor Alert Needed",
      "type": "n8n-nodes-base.if",
      "position": [
        1280,
        -16
      ]
    },
    {
      "id": "335af2a1-2235-4000-a4f7-23cb76812617",
      "name": "Send Email to Doctor",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1456,
        -80
      ]
    },
    {
      "id": "c6a213de-e02f-40a9-905f-afefc6e2bb82",
      "name": "Merge Alert Results",
      "type": "n8n-nodes-base.set",
      "position": [
        1648,
        32
      ]
    },
    {
      "id": "5f8c81da-5b99-4548-a038-44ec743523e0",
      "name": "No Alert Required",
      "type": "n8n-nodes-base.set",
      "position": [
        1152,
        160
      ]
    },
    {
      "id": "e77eff85-7797-4c7b-b17f-af13f50c90c1",
      "name": "Combine Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        1808,
        144
      ]
    },
    {
      "id": "877681a2-34e4-4615-b943-e62fe4a48b8e",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1968,
        144
      ]
    },
    {
      "id": "16378fbf-436a-4105-bacb-19c8a233ed46",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        400,
        240
      ]
    },
    {
      "id": "5e920ef8-b1a3-4438-bcfa-aa26f055a5e8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        -448
      ],
      "parameters": {
        "width": 544,
        "height": 432,
        "content": "## Introduction\nAutomates patient health monitoring by analyzing submitted health data via AI, determining alert necessity, and notifying family and doctors when critical conditions detected.  \n\n## Ho"
      }
    },
    {
      "id": "9c5fdbe1-805a-4256-97fe-bee6ecee4ed7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        -448
      ],
      "parameters": {
        "width": 928,
        "height": 320,
        "content": "## Use Cases\n**Chronic Disease:** Diabetic submits glucose readings. AI detects >250mg/dL, alerts family and endocrinologist. **Elderly Care:** Senior's vitals monitored via wearable. AI identifies ir"
      }
    },
    {
      "id": "faebc33f-0151-401c-95a1-f9195e64c33a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        -448
      ],
      "parameters": {
        "width": 672,
        "height": 432,
        "content": "\n## Workflow Steps\n1. **Reception & Extraction:** Webhook receives vitals/symptoms, parses JSON payload\n2. **AI Analysis:** OpenRouter analyzes vitals against ranges, accesses history via Memory Tool,"
      }
    }
  ],
  "connections": {
    "Combine Results": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Alert Required": {
      "main": [
        [
          {
            "node": "Combine Results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Prepare Alert Data": {
      "main": [
        [
          {
            "node": "Send Email to Family",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Health Data": {
      "main": [
        [
          {
            "node": "AI Health Analysis Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Alert Results": {
      "main": [
        [
          {
            "node": "Combine Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email to Doctor": {
      "main": [
        [
          {
            "node": "Merge Alert Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email to Family": {
      "main": [
        [
          {
            "node": "Check If Doctor Alert Needed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Alert Needed": {
      "main": [
        [
          {
            "node": "Prepare Alert Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Alert Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Health Analysis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Health Analysis Agent": {
      "main": [
        [
          {
            "node": "Check If Alert Needed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Health Analysis Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check If Doctor Alert Needed": {
      "main": [
        [
          {
            "node": "Send Email to Doctor",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge Alert Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Submit Health Data": {
      "main": [
        [
          {
            "node": "Extract Health Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}