{
  "name": "Automate prescription delivery via Google Sheets to email & WhatsApp",
  "nodes": [
    {
      "id": "368d24da-9d79-4bf5-9c56-1f70bf74ab1e",
      "name": "Filter New Prescriptions",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1240,
        -120
      ]
    },
    {
      "id": "7ca917ec-330c-4f53-90ae-3fa7b7178200",
      "name": "Format Prescription Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -1020,
        -120
      ]
    },
    {
      "id": "73c4304b-ac16-4deb-aaae-d40c94c29de9",
      "name": "Send WhatsApp",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -800,
        -20
      ]
    },
    {
      "id": "cc159a2b-d6c2-414d-b3bc-05f4d0a16b29",
      "name": "Log Notification",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -580,
        -120
      ]
    },
    {
      "id": "0c9e09cb-1d80-4f09-abfd-4d3d712833ef",
      "name": "Update Prescription Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -360,
        -120
      ]
    },
    {
      "id": "5c2bf898-b7a2-43c9-a90d-e852fecf829e",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -1460,
        -120
      ]
    },
    {
      "id": "530efe83-c80e-4b1e-8121-c508907cecd1",
      "name": "Send email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -800,
        -220
      ]
    },
    {
      "id": "41b633a7-3641-4816-8b13-eb26a3d37686",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1580,
        -480
      ],
      "parameters": {
        "width": 660,
        "height": 260,
        "content": "## 🌟 Features Included\n\n- **Automated Trigger**: Monitors Google Sheet for new prescriptions\n- **Smart Filtering**: Only processes prescriptions with status \"new\"\n- **Rich Email Format**: Professional"
      }
    }
  ],
  "connections": {
    "Send email": {
      "main": [
        [
          {
            "node": "Log Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send WhatsApp": {
      "main": [
        [
          {
            "node": "Log Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Notification": {
      "main": [
        [
          {
            "node": "Update Prescription Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Filter New Prescriptions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter New Prescriptions": {
      "main": [
        [
          {
            "node": "Format Prescription Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Prescription Data": {
      "main": [
        [
          {
            "node": "Send email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send WhatsApp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}