Skip to main content

Filter breaking geopolitical news with AI scoring & Telegram alerts

Workflow preview

Workflow preview
100%
Filter breaking geopolitical news with AI scoring & Telegram alerts preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Geopolitics Breaking News Alert System Workflow Name: Geopolitics Breaking News Alert System Author: Devjothi Dutta Category: Productivity, News & Media, AI/Machine Learning Complexity: Medium Setu...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.rssfeedread, n8n-nodes-base.code, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Dev Dutta.

Original n8n.io source

1.1 Workflow description

Title
Filter breaking geopolitical news with AI scoring & Telegram alerts
Workflow name
Filter breaking geopolitical news with AI scoring & Telegram alerts

Geopolitics Breaking News Alert System

Workflow Name: Geopolitics Breaking News Alert System Author: Devjothi Dutta Category: Productivity, News & Media, AI/Machine Learning Complexity: Medium Setup Time: 45-60 minutes


📖 Description

An intelligent geopolitical monitoring system that filters 200+ daily news articles down to only the critical breaking news that matters to you. This workflow uses smart keyword filtering and AI-powered scoring to eliminate noise, reduce AI costs, and deliver only high-priority geopolitical alerts to Telegram.

The Problem: Traditional news monitoring is overwhelming - hundreds of articles per hour, 95% irrelevant to your region of interest, no urgency prioritization, and critical breaking news gets buried in noise.

The Solution: This workflow combines dual-layer filtering (primary + secondary keywords) with AI scoring to distinguish actual breaking news from general news coverage. By filtering first and scoring second, you reduce AI API costs by 80-90% while ensuring you never miss critical geopolitical developments. Switch between monitoring India, China, Middle East, Russia-Ukraine, or any region by simply changing a configuration file.

Perfect for government analysts, corporate security teams, investment research firms, news organizations, or anyone who needs to stay informed about geopolitical developments without information overload.

👥 Who's it for

For Government & Defense Analysts:

  • Monitor specific regions for military actions, diplomatic developments, and security threats
  • Filter by mission-critical keywords to eliminate irrelevant news
  • AI scoring identifies genuine breaking news vs routine coverage
  • Reduce analyst workload by 90% through intelligent automation

For Corporate Security & Risk Teams:

  • Track geopolitical risks affecting global supply chains and operations
  • Custom keyword filters for industry-specific concerns (e.g., "semiconductor", "tariff", "sanctions")
  • Real-time alerts for events impacting business continuity
  • Cost-efficient monitoring with minimal AI API usage

For Investment Research Firms:

  • Monitor emerging market geopolitical risks affecting portfolio companies
  • AI scoring differentiates market-moving events from background noise
  • Configurable alert thresholds based on investment strategy (conservative vs aggressive)
  • Track multiple regions simultaneously with different configs

For News Organizations & Journalists:

  • Monitor breaking geopolitical developments for editorial coverage
  • Filter by urgency to prioritize assignment desk resources
  • Aggregate multiple international news sources in one place
  • Extend alerts to newsroom Slack channels or email

✨ Key Features

  • 🎯 Smart Dual-Layer Filtering - Primary keywords ensure regional relevance, secondary keywords filter by event type (military, diplomatic, economic)
  • 🤖 AI-Powered Urgency Scoring - GPT-4o-mini scores articles 1-10 based on geopolitical urgency, distinguishing breaking news from routine coverage
  • 💰 Cost-Efficient Design - Filter first, score second approach reduces AI API calls by 80-90% (only ~5 articles analyzed out of 200)
  • 🌍 Multi-Region Support - Monitor India, China, Middle East, Russia-Ukraine, or any region by switching config files
  • 📰 Multi-Source RSS Aggregation - Combines 6 international news sources (NYT, BBC, Al Jazeera, SCMP, regional feeds)
  • 🔄 Duplicate Detection - Persistent storage prevents re-analyzing same articles across multiple executions
  • 📊 Consolidated Alerts - Single Telegram message with all breaking news, grouped by urgency score
  • Flexible Scheduling - Configure trigger interval per your needs (15min for active conflicts, 3hr for routine monitoring)
  • 💾 Config-Driven Architecture - All filters, keywords, and scoring rules in Google Drive JSON file
  • 🔒 Production Ready - Tested end-to-end with real-world India and China configurations
  • 📈 Scalable Design - Run multiple regional configs in parallel, extend to Slack/WhatsApp/Email delivery

🛠️ Requirements

Required Services:

  1. n8n (version 1.0+) - Workflow automation platform
    • Free tier: n8n cloud or self-hosted Docker
    • Required feature: Data Tables (for duplicate tracking)
  2. OpenAI API (GPT-4o-mini) - AI scoring engine
    • Cost: ~$0.10/day for 30min intervals
    • Free tier: $5 credit for new accounts
  3. Telegram Bot - Alert delivery
    • Free: Create via @BotFather on Telegram
    • Get chat ID via @userinfobot
  4. Google Drive - Config file storage
    • Free: Any Google account
    • Used for publicly shared JSON config files

Required Credentials:

  • OpenAI API Key - Get from platform.openai.com (GPT-4o-mini access)
  • Telegram Bot Token - Create bot via @BotFather, get token
  • n8n Data Table - Built-in n8n feature (no external credential)

Optional:

  • Slack Webhook URL (for extending alerts to Slack)
  • SMTP credentials (for email alerts)
  • Twilio account (for WhatsApp/SMS alerts)

📦 What's Included

This workflow package includes:

🚀 Quick Start

Full setup takes 45-60 minutes. For detailed step-by-step instructions, see SETUP_GUIDE.md

Overview

  1. Create n8n Data Table (analyzed_articles with 2 columns)
  2. Upload config to Google Drive (choose region, share publicly, get file ID)
  3. Import workflow (22 nodes ready to configure)
  4. Configure nodes:
    • Update Google Drive config URL with your file ID
    • Update 6 RSS Feed URLs for your region
    • Link 3 Data Table nodes to analyzed_articles table
  5. Add credentials (OpenAI API, Telegram Bot)
  6. Set schedule (15min-daily based on monitoring needs)
  7. Test workflow (verify filtering, scoring, alerts work)
  8. Activate (workflow runs automatically on schedule)

Quick Start Result:

  • ✅ 200+ articles processed → 5-7 filtered → 3-5 scored → 1-3 alerts sent
  • ✅ Telegram receives consolidated breaking news message
  • ✅ Workflow runs every 30min (or your chosen interval)
  • ✅ Total monthly cost: $3-5 (OpenAI API only)

Need help? See detailed SETUP_GUIDE.md for complete instructions with screenshots and troubleshooting.

📊 Workflow Stats

  • Nodes: 22
  • Complexity: Medium
  • Execution Time: ~30-60 seconds per run
  • Monthly Cost: $3-5 (OpenAI API usage only)
  • Maintenance: Minimal (update RSS feeds if sources change)
  • Scalability: Handles 200+ articles per execution, easily scales to 10+ RSS feeds

🎨 Customization Options

  • Add more regions: Create new config JSON files for North Korea, Taiwan, Africa, Latin America, etc.
  • Multi-channel alerts: Extend to Slack, WhatsApp, Email, Discord, Microsoft Teams, SMS
  • Severity-based routing: Send critical alerts (score 9-10) via SMS, others to Telegram
  • Custom scoring models: Switch between GPT-4o-mini, GPT-4o, Claude based on config
  • Exclude keywords: Add "exclude_keywords" array to filter out sports, entertainment, weather
  • Alert digest mode: Aggregate alerts into daily/weekly summary emails instead of real-time
  • Dashboard integration: Connect to Grafana or Metabase for visual trend analysis
  • Webhook triggers: Use workflow output to trigger other n8n workflows or external systems
  • Custom RSS feeds: Add industry-specific or regional news sources
  • Adjust alert threshold: Change from score >= 6 to higher/lower based on notification preferences

🔧 How it Works

  1. Schedule Trigger (Configurable):
    • Workflow runs at your configured interval (15min, 30min, 1hr, 3hr, daily, etc.)
    • Trigger frequency depends on use case: active conflicts need more frequent monitoring
  2. Config Loading:
    • HTTP Request node fetches JSON config from Google Drive
    • Config contains: keywords, scoring rules, AI role, alert threshold, Telegram chat ID
  3. RSS Aggregation:
    • 6 RSS Feed nodes fetch articles from international news sources
    • Merge node combines all feeds (~200 articles per execution)
    • RSS Cleanup node strips HTML and normalizes to 5 fields (60-75% size reduction)
  4. Smart Filtering (Cost Optimization Layer 1):
    • Dynamic Filter checks PRIMARY keywords (geographic/entity: "india", "modi", "delhi")
    • Also checks SECONDARY keywords (event type: "military", "conflict", "trade deal")
    • Both conditions required: Article must mention at least one primary AND one secondary
    • Result: 200 articles reduced to ~5-7 relevant articles (95% reduction)
    • Why this matters: Eliminates noise BEFORE expensive AI scoring
  5. Duplicate Detection (Cost Optimization Layer 2):
    • Queries Data Table for previously analyzed article links
    • Filters out articles already scored in last 7 days
    • Result: ~5-7 filtered articles reduced to ~3-5 new articles
    • Why this matters: Prevents redundant AI API calls (saves 80% on repeat articles)
  6. Dynamic AI Prompt Generation:
    • Code node builds system prompt from config.ai_role and config.scoring_criteria
    • Instructs AI: "You are a geopolitical analyst for [REGION]. Score articles 1-10..."
    • Includes scoring rubric: 9-10 = Military Action, 7-8 = Trade/Economic, etc.
  7. AI Urgency Scoring (Breaking News Detection):
    • Breaking News Analyzer (GPT-4o-mini) evaluates geopolitical urgency
    • Scores 1-10: Distinguishes genuine breaking news from routine coverage
    • Returns: score, category, reasoning, should_alert (true/false based on threshold)
    • Cost: ~$0.002 per article (only ~3-5 articles scored per execution)
  8. Alert Decision:
    • IF node checks: should_alert === true (score >= config.alert_threshold)
    • Only high-priority alerts proceed to Telegram
    • Articles below threshold are logged but not sent
  9. Alert Aggregation:
    • Consolidates multiple breaking news alerts into single Telegram message
    • Groups by urgency score with color-coded emojis (🔴 9-10, 🟠 7-8, 🟡 6-7)
    • Includes: score, category, title, link for each alert
  10. Telegram Delivery:
    • Sends consolidated alert to configured Telegram chat
    • Uses HTML formatting for bold text and clickable links
    • Chat ID dynamically loaded from config (different regions → different chats)

💡 Pro Tips

  • Start with Higher Threshold: Begin with alert_threshold = 7 to avoid alert fatigue, lower to 6 after tuning keywords
  • Regional RSS Matters: Use region-specific news sources for better coverage (e.g., Times of India for India, not just BBC/NYT)
  • Test Keywords First: Run workflow manually with "Test Workflow" to verify keyword filtering before activating schedule
  • Monitor AI Costs: Check OpenAI usage dashboard after first week to confirm ~$0.10/day cost estimate
  • Tune Secondary Keywords: Add domain-specific terms to secondary keywords (e.g., "semiconductor" for tech supply chain monitoring)
  • Use Separate Configs for Critical Regions: Clone workflow for high-priority regions instead of switching configs manually
  • Schedule Based on Time Zones: Align execution intervals with business hours in monitored region (e.g., 9AM-6PM IST for India)
  • Clear Duplicates for Testing: Manually clear analyzed_articles Data Table when testing new configs for fresh results
  • Backup Working Configs: Export and version control config files before making major keyword changes
  • Consider Alert Fatigue: Score 9-10 events are rare (0-1 per day), score 6-8 events are common (2-5 per day) - set threshold accordingly

🔗 Related Workflows

  • Multi-Region Geopolitics Dashboard - Combine multiple regional configs into single monitoring dashboard
  • Geopolitical Risk Scoring for Portfolios - Integrate with stock portfolio data to assess investment risk
  • Automated Geopolitical Intelligence Reports - Generate daily/weekly PDF reports from breaking news data
  • Conflict Escalation Tracker - Track score trends over time to detect escalating tensions
  • Supply Chain Risk Alerting - Focus on trade/sanctions news affecting global supply chains

📧 Support & Feedback

For questions, issues, or feature requests:

📄 License

MIT License - Free to use, modify, and distribute


⭐ If you find this workflow useful, please share your feedback and star the workflow!


1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Every 30 Minutes

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - NYT RSS Feed

Type / Role
n8n-nodes-base.rssFeedRead - rssFeedRead
Config choices
Version 1

Block 3 - TOI RSS Feed

Type / Role
n8n-nodes-base.rssFeedRead - rssFeedRead
Config choices
Version 1

Block 4 - Al Jazeera RSS Feed

Type / Role
n8n-nodes-base.rssFeedRead - rssFeedRead
Config choices
Version 1

Block 5 - BBC RSS Feed

Type / Role
n8n-nodes-base.rssFeedRead - rssFeedRead
Config choices
Version 1

Block 6 - Dynamic Filter

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Send Breaking News Alert

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 8 - Breaking News Analyzer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 9 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 11 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - SCMP RSS Feed

Type / Role
n8n-nodes-base.rssFeedRead - rssFeedRead
Config choices
Version 1

Block 13 - NDTV RSS Feed

Type / Role
n8n-nodes-base.rssFeedRead - rssFeedRead
Config choices
Version 1

Block 14 - Check for Duplicates

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 15 - Record Analyzed Article

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 16 - Cleanup Old Records

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 17 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 18 - Aggregate Alerts

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Dynamic AI Prompt Generator

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - RSS_Cleanup_Node

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Load Config from Google Drive

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - Re-attach Config

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Filter breaking geopolitical news with AI scoring & Telegram alerts
Complexity advanced
Nodes 30
Categories Market Research, AI Summarization
Author Dev Dutta
Published 28 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10248/10248.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Filter breaking geopolitical news with AI scoring & Telegram alerts do?

Geopolitics Breaking News Alert System Workflow Name: Geopolitics Breaking News Alert System Author: Devjothi Dutta Category: Productivity, News & Media, AI/Machine Learning Complexity: Medium Setu...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.