{
  "name": "Send patient condition updates with Google Sheets, Email & WhatsApp alerts",
  "nodes": [
    {
      "id": "4919ea3e-0d1f-425f-9f04-5b1fa5d56cf9",
      "name": "Daily Trigger (8 AM)",
      "type": "n8n-nodes-base.cron",
      "position": [
        -1500,
        -40
      ]
    },
    {
      "id": "130907ef-736b-49af-b07e-0d0cd40d278f",
      "name": "Read Patient Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1280,
        -40
      ]
    },
    {
      "id": "20cf609d-63d1-42cf-878e-40e40a37938a",
      "name": "Filter Active Patients",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1060,
        -40
      ]
    },
    {
      "id": "72680bdb-08ea-45b2-a8e3-8f5c70d56b7e",
      "name": "Process Patient Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -840,
        -40
      ]
    },
    {
      "id": "c71e8ca4-b4d6-4e42-94d0-195d67701bfa",
      "name": "Send Email Report",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -620,
        -340
      ]
    },
    {
      "id": "792824e8-ca46-4f2e-a4c8-95f8d3803ba2",
      "name": "Send WhatsApp Message",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -620,
        60
      ]
    },
    {
      "id": "426ad1c8-9ea1-450a-b0db-43b4cabd8745",
      "name": "Filter Critical Patients",
      "type": "n8n-nodes-base.filter",
      "position": [
        -620,
        -140
      ]
    },
    {
      "id": "86c379d4-90e8-451c-aa1e-4cbf7aca7aac",
      "name": "Send Critical Alert",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -400,
        -140
      ]
    },
    {
      "id": "cb4d6e31-b6f0-4002-aba8-6abab3d457ef",
      "name": "Log Report to Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -620,
        260
      ]
    },
    {
      "id": "a64546a8-35b2-4c4c-ab5b-837c35ed7dff",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1880,
        -480
      ],
      "parameters": {
        "width": 660,
        "height": 300,
        "content": "## How It Works\n- **Cron Trigger** - Schedules daily run at 8 AM.\n- **Google Sheets (Read)** - Fetches patient data from \"Patients\" sheet.\n- **Filter Node** - Selects active patients.\n- **Code Node** "
      }
    }
  ],
  "connections": {
    "Read Patient Data": {
      "main": [
        [
          {
            "node": "Filter Active Patients",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Trigger (8 AM)": {
      "main": [
        [
          {
            "node": "Read Patient Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Patient Data": {
      "main": [
        [
          {
            "node": "Send Email Report",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send WhatsApp Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Filter Critical Patients",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log Report to Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Active Patients": {
      "main": [
        [
          {
            "node": "Process Patient Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Critical Patients": {
      "main": [
        [
          {
            "node": "Send Critical Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}