{
  "name": "Monitor NASA asteroid threats with AI fact-check and multi-channel alerts",
  "nodes": [
    {
      "id": "44ba1c99-2d76-4a6b-b522-a76390e3af0a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        1280
      ],
      "parameters": {
        "width": 340,
        "height": 664,
        "content": "## ⚙️ Setup Instructions\n\n### Step 1: NASA API\n1. Go to https://api.nasa.gov/\n2. Sign up for a free API key\n3. Add credential in n8n\n\n### Step 2: Apify\n1. Create account at https://apify.com/\n2. Conne"
      }
    },
    {
      "id": "5ee6598d-321d-437a-9a03-23678b2c113b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        1280
      ],
      "parameters": {
        "width": 220,
        "height": 192,
        "content": "## 🔄 Triggers\n\n**Schedule**: Daily at 9 AM\n\n**Webhook**: POST to\n`/webhook/asteroid-alert`\n\nBoth work simultaneously."
      }
    },
    {
      "id": "e70a4cc3-37f5-484e-bdc2-8e8aedf26fe6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        1760
      ],
      "parameters": {
        "width": 220,
        "height": 276,
        "content": "## 🔍 Asteroid Analysis\n\nScans 7 days of NASA data.\n\n**Alert Levels:**\n- 🟢 LOW: No hazards\n- 🟡 MEDIUM: Hazardous detected\n- 🔴 HIGH: Within 10 lunar distances"
      }
    },
    {
      "id": "8f919b78-d0a7-46ec-9879-d07fffadabda",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2016,
        1728
      ],
      "parameters": {
        "width": 200,
        "height": 240,
        "content": "## 🌍 News Search\n\nSearches 3 regions:\n- US (English)\n- Japan (Japanese)\n- EU/UK (English)\n\n5 results per region."
      }
    },
    {
      "id": "413b71df-4dbc-4de6-80df-31c839d195cd",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2240,
        1056
      ],
      "parameters": {
        "width": 220,
        "height": 224,
        "content": "## 🤖 AI Fact-Check\n\nCompares news vs NASA data:\n- Verifies claims\n- Detects sensationalism\n- Scores threat & panic\n- Analyzes regional tone"
      }
    },
    {
      "id": "a70895f9-009f-4df0-b98f-1e2a85f8d617",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3504,
        1232
      ],
      "parameters": {
        "width": 220,
        "height": 276,
        "content": "## 📤 Output Channels\n\nDisable unused channels by\nremoving their connections.\n\n- Slack (Rich blocks)\n- Discord (Embeds)\n- Email (HTML)\n- Webhook (JSON)\n- Google Sheets (Log)"
      }
    },
    {
      "id": "2cf73591-13be-41b0-bfa0-9ef9500e9d28",
      "name": "Daily Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        512,
        1488
      ]
    },
    {
      "id": "85ce1a00-9d66-4722-9ab0-57b632471a56",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        512,
        1680
      ]
    },
    {
      "id": "df605926-e7db-42a1-b1f1-727e35559377",
      "name": "Merge Triggers",
      "type": "n8n-nodes-base.merge",
      "position": [
        736,
        1584
      ]
    },
    {
      "id": "f885ba3e-1f30-417f-9e97-17f173ba7422",
      "name": "Get NASA Asteroid Data",
      "type": "n8n-nodes-base.nasa",
      "position": [
        960,
        1584
      ]
    },
    {
      "id": "8ee7cef6-b6fe-473e-8f48-e037b8c9bb65",
      "name": "Analyze Asteroid Threats",
      "type": "n8n-nodes-base.code",
      "position": [
        1184,
        1584
      ]
    },
    {
      "id": "4f83518a-edb2-4470-bdc5-6851b3ee8a57",
      "name": "Check for Hazardous Objects",
      "type": "n8n-nodes-base.if",
      "position": [
        1392,
        1584
      ]
    },
    {
      "id": "268b4c8b-8ac9-4f91-9884-33722ee42665",
      "name": "Configure Regional Search",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        1440
      ]
    },
    {
      "id": "27c5ff22-d287-4183-a990-917a3346a401",
      "name": "Loop Over Regions",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1840,
        1440
      ]
    },
    {
      "id": "5a896df9-7191-48d0-92c0-bdfb65ad31a7",
      "name": "Search Regional News",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        2064,
        1536
      ]
    },
    {
      "id": "589825a8-ff44-45fc-b10a-8888a65d3b31",
      "name": "Aggregate All News",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2064,
        1296
      ]
    },
    {
      "id": "07e9c05b-48d9-4445-9186-9d1ffa1b4bab",
      "name": "AI Fact-Check Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2224,
        1296
      ]
    },
    {
      "id": "3f3bf281-a2b5-4847-8b04-85da977b3d8a",
      "name": "Parse AI Response",
      "type": "n8n-nodes-base.code",
      "position": [
        2512,
        1296
      ]
    },
    {
      "id": "b1e2046e-cb6a-4bb7-be89-ef176218cede",
      "name": "Generate Visualization Charts",
      "type": "n8n-nodes-base.code",
      "position": [
        2720,
        1296
      ]
    },
    {
      "id": "a9a23e8a-9e4d-417c-96d0-97047c225ed2",
      "name": "Format Multi-Channel Messages",
      "type": "n8n-nodes-base.code",
      "position": [
        2944,
        1296
      ]
    },
    {
      "id": "1847ddc7-4dca-4768-ad82-f98984b6f67c",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        3264,
        992
      ]
    },
    {
      "id": "3619815a-4b82-4131-934b-30d36d840851",
      "name": "Send Discord Alert",
      "type": "n8n-nodes-base.discord",
      "position": [
        3264,
        1184
      ]
    },
    {
      "id": "e1cba41d-2d63-4a80-9540-6977424516ec",
      "name": "Send Email Alert",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        3264,
        1392
      ]
    },
    {
      "id": "2e9c2a6a-b474-4c39-a215-a9eafb156ba7",
      "name": "Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3264,
        1584
      ]
    },
    {
      "id": "d5716068-c397-4730-9f48-46f7342d6676",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3264,
        1792
      ]
    },
    {
      "id": "0a4d533a-cb47-42a4-9a00-228bcc27fdcf",
      "name": "Create All-Clear Status",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        1728
      ]
    },
    {
      "id": "445dd71c-0e74-4033-996b-18019ec57076",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        1280
      ],
      "parameters": {
        "width": 500,
        "height": 804,
        "content": "## 🚀 Real-time Asteroid Alert System with AI Fact-Check\n\n### What This Workflow Does\nThis workflow monitors NASA's Near Earth Object database for potentially hazardous asteroids, searches news coverag"
      }
    }
  ],
  "connections": {
    "Daily Schedule": {
      "main": [
        [
          {
            "node": "Merge Triggers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Triggers": {
      "main": [
        [
          {
            "node": "Get NASA Asteroid Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Merge Triggers",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Loop Over Regions": {
      "main": [
        [
          {
            "node": "Aggregate All News",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Search Regional News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Response": {
      "main": [
        [
          {
            "node": "Generate Visualization Charts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate All News": {
      "main": [
        [
          {
            "node": "AI Fact-Check Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Regional News": {
      "main": [
        [
          {
            "node": "Loop Over Regions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Fact-Check Analysis": {
      "main": [
        [
          {
            "node": "Parse AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get NASA Asteroid Data": {
      "main": [
        [
          {
            "node": "Analyze Asteroid Threats",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Asteroid Threats": {
      "main": [
        [
          {
            "node": "Check for Hazardous Objects",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure Regional Search": {
      "main": [
        [
          {
            "node": "Loop Over Regions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Hazardous Objects": {
      "main": [
        [
          {
            "node": "Configure Regional Search",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create All-Clear Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Multi-Channel Messages": {
      "main": [
        [
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Discord Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Email Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Visualization Charts": {
      "main": [
        [
          {
            "node": "Format Multi-Channel Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}