{
  "name": "AI-generated weather analysis with NWS alerts, radar imagery, and Home Assistant",
  "nodes": [
    {
      "id": "a72e2042-fd53-46b4-b366-c522ef3044ab",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -32,
        16
      ]
    },
    {
      "id": "31d8e7b5-c47a-42af-abb0-02f9c2482201",
      "name": "Get NWS Alerts",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        192,
        16
      ]
    },
    {
      "id": "b1938edb-79be-4399-a815-dc90ffd1f240",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        384,
        16
      ]
    },
    {
      "id": "bc5b7d6c-e2ad-43ab-aad1-d947799243e5",
      "name": "Remove Irrelevant Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        576,
        16
      ]
    },
    {
      "id": "e0ce90cb-a447-4b5c-a3e7-6ea2ccfa4efe",
      "name": "Filter by Severity",
      "type": "n8n-nodes-base.filter",
      "position": [
        960,
        16
      ]
    },
    {
      "id": "e5272333-90a2-4bfa-969f-0cd6e2d50ad8",
      "name": "Filter by Effective",
      "type": "n8n-nodes-base.filter",
      "position": [
        1152,
        16
      ]
    },
    {
      "id": "4b05f80a-b851-4286-9618-86dd11600faa",
      "name": "Filter by Status",
      "type": "n8n-nodes-base.filter",
      "position": [
        768,
        16
      ]
    },
    {
      "id": "fe639674-9bfe-4344-b4dc-3141f90cbf9f",
      "name": "Fetch Weather.gov Radar Loop",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        608
      ]
    },
    {
      "id": "7a966d42-eae1-4aaf-ad35-2dff15b62e68",
      "name": "Filter by Expired",
      "type": "n8n-nodes-base.filter",
      "position": [
        1344,
        16
      ]
    },
    {
      "id": "a071bf45-dd82-41d0-9130-3c8ef6891ded",
      "name": "Analyze Radar Image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        960,
        496
      ]
    },
    {
      "id": "ac0ae58a-1c40-421d-ad53-9f2e560319df",
      "name": "Map JSON Response",
      "type": "n8n-nodes-base.set",
      "position": [
        1152,
        496
      ]
    },
    {
      "id": "4bea6742-c424-4250-9d1d-74b4cd46cff4",
      "name": "Get Local Weather Precipication",
      "type": "n8n-nodes-base.homeAssistant",
      "position": [
        576,
        416
      ]
    },
    {
      "id": "a7d3e335-a2ae-459d-829f-f0047f7c1cbb",
      "name": "Merge JSON with Image",
      "type": "n8n-nodes-base.merge",
      "position": [
        768,
        496
      ]
    },
    {
      "id": "72fe8625-4631-4912-9db7-7ca721638431",
      "name": "Merge Radar Analysis with NWS Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        1344,
        272
      ]
    },
    {
      "id": "dd7f1b53-dba0-4532-98e3-bfcc9c0a8681",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1536,
        464
      ]
    },
    {
      "id": "90f46158-41ed-4811-baa6-efac8beff957",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        384,
        256
      ]
    },
    {
      "id": "bceccd50-f2f3-4ff4-b378-6030c8b680cd",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        192,
        256
      ]
    },
    {
      "id": "642995c2-a4f4-43a4-bc58-ed2faebe1426",
      "name": "Generate a Summary",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        1536,
        272
      ]
    },
    {
      "id": "73e4af91-061d-44a7-a3aa-f8efad62e8c9",
      "name": "Map JSON to Response",
      "type": "n8n-nodes-base.set",
      "position": [
        1920,
        272
      ]
    },
    {
      "id": "25f096aa-457e-4e9e-8394-e0054dc7ed55",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -32
      ],
      "parameters": {
        "width": 544,
        "height": 832,
        "content": "# Overview\n\nThis n8n template demonstrates how you can generate an AI-produced weather analysis of your local radar loop and home assistant precipitation sensor(s) to keep your family informed of Nati"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Get Local Weather Precipication",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Weather.gov Radar Loop",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Radar Analysis with NWS Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Get NWS Alerts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Remove Irrelevant Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get NWS Alerts": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Status": {
      "main": [
        [
          {
            "node": "Filter by Severity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Expired": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Map JSON Response": {
      "main": [
        [
          {
            "node": "Merge Radar Analysis with NWS Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate a Summary",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Severity": {
      "main": [
        [
          {
            "node": "Filter by Effective",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate a Summary": {
      "main": [
        [
          {
            "node": "Map JSON to Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Radar Image": {
      "main": [
        [
          {
            "node": "Map JSON Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Effective": {
      "main": [
        [
          {
            "node": "Filter by Expired",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Map JSON to Response": {
      "main": [
        []
      ]
    },
    "Merge JSON with Image": {
      "main": [
        [
          {
            "node": "Analyze Radar Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Irrelevant Fields": {
      "main": [
        [
          {
            "node": "Filter by Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Weather.gov Radar Loop": {
      "main": [
        [
          {
            "node": "Merge JSON with Image",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get Local Weather Precipication": {
      "main": [
        [
          {
            "node": "Merge JSON with Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Radar Analysis with NWS Data": {
      "main": [
        [
          {
            "node": "Generate a Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}