{
  "name": "Filter breaking geopolitical news with AI scoring & Telegram alerts",
  "nodes": [
    {
      "id": "7bc7ba9e-31e0-4196-8d00-9f71ff966444",
      "name": "Every 30 Minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -592,
        384
      ]
    },
    {
      "id": "46266983-54ba-4977-b6af-dabc6ee1ed4a",
      "name": "NYT RSS Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        0,
        112
      ]
    },
    {
      "id": "05342734-972c-49d1-82d7-3622f96f42f1",
      "name": "TOI RSS Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        0,
        240
      ]
    },
    {
      "id": "2f195f01-5e2e-439b-9954-a25f902f399f",
      "name": "Al Jazeera RSS Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        0,
        368
      ]
    },
    {
      "id": "13811cd7-80cb-43cf-a18d-ecebfb56eea9",
      "name": "BBC RSS Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        0,
        528
      ]
    },
    {
      "id": "e29a459e-5fbf-4703-bcfc-e389b36d7b89",
      "name": "Dynamic Filter",
      "type": "n8n-nodes-base.code",
      "position": [
        640,
        368
      ]
    },
    {
      "id": "4e7b8918-071d-43da-b39a-68f09d1aa720",
      "name": "Send Breaking News Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2032,
        576
      ]
    },
    {
      "id": "ba46bf0d-81a8-4ea5-8973-79452159ed0a",
      "name": "Breaking News Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1136,
        368
      ]
    },
    {
      "id": "2fd4e417-8ac3-42eb-9a30-c7b9a1346317",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1104,
        576
      ]
    },
    {
      "id": "01953c30-52e2-46cd-8255-ec7373d1ff40",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1312,
        560
      ]
    },
    {
      "id": "5c161610-bfa8-4da1-a82a-23666d185de6",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1664,
        592
      ]
    },
    {
      "id": "edda078a-b0be-4ee3-845f-88aa6851416a",
      "name": "SCMP RSS Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        0,
        704
      ]
    },
    {
      "id": "95b00893-33a7-4b6c-b365-11c317760351",
      "name": "NDTV RSS Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        0,
        880
      ]
    },
    {
      "id": "393a1952-9bb8-416b-8096-09c8d5b81ff0",
      "name": "Check for Duplicates",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        800,
        368
      ]
    },
    {
      "id": "92a6bdd3-bc80-46e7-b0a3-3b806ef3bdc1",
      "name": "Record Analyzed Article",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1504,
        272
      ]
    },
    {
      "id": "4ff7d6dc-8421-439d-a98a-3e8233dbedd3",
      "name": "Cleanup Old Records",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1744,
        272
      ]
    },
    {
      "id": "d339eb01-08c7-4d8b-9ed4-bfb88816f915",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        288,
        304
      ]
    },
    {
      "id": "54527b07-b8c7-4744-80c8-257bad8bafb6",
      "name": "Aggregate Alerts",
      "type": "n8n-nodes-base.code",
      "position": [
        1856,
        576
      ]
    },
    {
      "id": "cd47ab51-4722-497e-874a-7b6f727c0616",
      "name": "Dynamic AI Prompt Generator",
      "type": "n8n-nodes-base.code",
      "position": [
        976,
        368
      ]
    },
    {
      "id": "1fa522e9-1f26-4b4f-98a6-f9815d31c9e4",
      "name": "RSS_Cleanup_Node",
      "type": "n8n-nodes-base.code",
      "position": [
        448,
        368
      ]
    },
    {
      "id": "ad0208aa-904a-40fa-8f76-bd0f67e705cd",
      "name": "Load Config from Google Drive",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -336,
        384
      ]
    },
    {
      "id": "c8910a76-d742-44ae-bf4b-50fa3ca4bf44",
      "name": "Re-attach Config",
      "type": "n8n-nodes-base.code",
      "position": [
        1504,
        592
      ]
    },
    {
      "id": "81d824f6-74e3-49bf-b460-fa8b700a778f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        64
      ],
      "parameters": {
        "width": 528,
        "height": 768,
        "content": "# Geopolitics Breaking News Alert System\n\n**Smart filtering + AI scoring for cost-efficient geopolitical monitoring**\n\nThis workflow filters 200+ daily articles down to critical breaking news alerts u"
      }
    },
    {
      "id": "43e604e7-36b8-4ef9-a413-d13303419394",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        288
      ],
      "parameters": {
        "width": 288,
        "height": 416,
        "content": "## Scheduling Node\ncurrently set at 30 mins interval but change it as per your requirements"
      }
    },
    {
      "id": "761c0e99-29a2-42d1-8d77-8b050e2c5438",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        288
      ],
      "parameters": {
        "width": 256,
        "height": 416,
        "content": "## [Loading Config Info.](https://github.com/devdutta/n8n-geopolitics-breaking-news-alert/blob/master/ARCHITECTURE.md)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n[1) Link to different config json files](https://github.com/devd"
      }
    },
    {
      "id": "085d279a-499c-4b4a-b1ae-b8dbc6596d21",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        64
      ],
      "parameters": {
        "width": 864,
        "height": 672,
        "content": "## [Pre-Processing Nodes](https://github.com/devdutta/n8n-geopolitics-breaking-news-alert/blob/master/ARCHITECTURE.md)\n1. Merge Data coming from various RSS Feeds\n2. Clean up info. not required for pr"
      }
    },
    {
      "id": "6a57e769-e103-4da1-bb49-1997b2594334",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        64
      ],
      "parameters": {
        "width": 320,
        "height": 672,
        "content": "## Breaking News Analyzer\n1. Used to [Score Articles](https://github.com/devdutta/n8n-geopolitics-breaking-news-alert/blob/master/USE_CASES.md#customizing-scoring-mechanism) for different Alert Levels"
      }
    },
    {
      "id": "44db6207-6985-44a7-b86b-4cdfcf267b62",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        64
      ],
      "parameters": {
        "width": 320,
        "height": 960,
        "content": "## Uses 6 RSS News Feeds"
      }
    },
    {
      "id": "4e0237b2-ec6b-4494-9b0d-ce3fb7b831d3",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        64
      ],
      "parameters": {
        "width": 752,
        "height": 352,
        "content": "## Data Insertion and Clean Up Nodes\n1. Inserts all articles into the \"analyzed_articles\" n8n Data Table so that duplicate article checks can be done on next runs\n2. Clean Up Node - removes articles f"
      }
    },
    {
      "id": "4ac931f5-7399-4b3c-b731-21a42aeaf52f",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        432
      ],
      "parameters": {
        "width": 752,
        "height": 304,
        "content": "## Post-Processing Nodes\n1. Re-attach Config - To bring the \"alert_threshold\" (Scoring Threshold) value from the upstream Config Files\n2. If Node - Only pass the Articles >6 score to the True Branch ("
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Aggregate Alerts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "RSS_Cleanup_Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "BBC RSS Feed": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "NYT RSS Feed": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TOI RSS Feed": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "NDTV RSS Feed": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "SCMP RSS Feed": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Dynamic Filter": {
      "main": [
        [
          {
            "node": "Check for Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Alerts": {
      "main": [
        [
          {
            "node": "Send Breaking News Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every 30 Minutes": {
      "main": [
        [
          {
            "node": "Load Config from Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS_Cleanup_Node": {
      "main": [
        [
          {
            "node": "Dynamic Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Re-attach Config": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Breaking News Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Al Jazeera RSS Feed": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Check for Duplicates": {
      "main": [
        [
          {
            "node": "Dynamic AI Prompt Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter India Keywords": {
      "main": [
        [
          {
            "node": "Check for Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Breaking News Analyzer": {
      "main": [
        [
          {
            "node": "Re-attach Config",
            "type": "main",
            "index": 0
          },
          {
            "node": "Record Analyzed Article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Record Analyzed Article": {
      "main": [
        [
          {
            "node": "Cleanup Old Records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Breaking News Analyzer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Dynamic AI Prompt Generator": {
      "main": [
        [
          {
            "node": "Breaking News Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load Config from Google Drive": {
      "main": [
        [
          {
            "node": "NYT RSS Feed",
            "type": "main",
            "index": 0
          },
          {
            "node": "TOI RSS Feed",
            "type": "main",
            "index": 0
          },
          {
            "node": "Al Jazeera RSS Feed",
            "type": "main",
            "index": 0
          },
          {
            "node": "BBC RSS Feed",
            "type": "main",
            "index": 0
          },
          {
            "node": "SCMP RSS Feed",
            "type": "main",
            "index": 0
          },
          {
            "node": "NDTV RSS Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}