OSINT Missile Intelligence Agent
July 30, 2025 ยท View on GitHub
๐จ Real-time missile threat intelligence agent for Israeli red alert notifications
Overview
This AI agent provides automated, structured intelligence reports during missile attacks targeting Israel. It integrates with the Israeli Home Front Command API through Home Assistant, processes OSINT data from X (Twitter), and delivers actionable intelligence through multiple notification channels.
Purpose
When a red alert is issued in Israel, this agent:
- Receives automated triggers from Home Assistant's Homefront Command integration
- Analyzes real-time OSINT data from X (Twitter) including verified journalists, IDF accounts, and eyewitness reports
- Generates structured intelligence reports with verified information
- Delivers formatted notifications via Slack, email, or other channels
Workflow Architecture
flowchart LR
A[๐จ Red Alert] --> B[๐ Home Assistant<br/>Homefront Command API]
B --> C[๐ Webhook Trigger]
C --> D[โก Automation Platform<br/>N8N/Zapier/etc]
D --> E[๐ค OSINT Agent]
E --> F[๐ฆ X API Tool<br/>OSINT Data Collection]
F --> G[๐ Structured Report<br/>JSON Schema]
G --> H[๐ข Notifications]
H --> I[๐ฌ Slack]
H --> J[๐ง Email]
H --> K[๐ฑ Other Channels]
Key Features
๐ฏ Intelligent Data Processing
- Prioritizes verified sources (IDF, Home Front Command, major media)
- Cross-references multiple OSINT channels
- Filters speculation from confirmed intelligence
- Never hallucinates - clearly marks uncertain information
๐ Structured Output Schema
Generates standardized reports containing:
- Summary: Concise incident overview
- HTML Report: Gmail-safe formatted notification
- Militant Group: Suspected organization (if known)
- Missile Count: Number of projectiles launched
- Launch Details: Target areas and timing
- Timestamps: Both UTC and Israel Standard Time
- Affected Areas: Cities/regions under alert
๐ Multi-Channel Delivery
- Slack workspace notifications
- Email alerts with HTML formatting
- Webhook integrations for custom endpoints
- API responses for downstream systems
Technical Implementation
Core Components
-
System Prompt (
system-prompt.md)- Defines agent behavior and output requirements
- Specifies data prioritization rules
- Ensures consistent report formatting
-
JSON Schema (
schema.json)- Validates structured output format
- Ensures data consistency across reports
- Enables reliable downstream processing
-
X API Integration
- Streams real-time OSINT data
- Monitors verified journalist accounts
- Tracks IDF and emergency service updates
- Captures eyewitness reports
Integration Points
Home Assistant Setup
# Example Home Assistant automation
automation:
- alias: "Red Alert Trigger"
trigger:
platform: state
entity_id: binary_sensor.red_alert_jerusalem
to: 'on'
action:
service: webhook.call
data:
url: "https://your-automation-platform.com/webhook/red-alert"
method: POST
data:
alert_area: "{{ trigger.to_state.attributes.area }}"
timestamp: "{{ now().isoformat() }}"
Automation Platform Configuration
- N8N: Use HTTP Request node to call agent API
- Zapier: Configure webhook trigger โ AI agent โ notification actions
- Make.com: Set up scenario with webhook โ agent โ multi-channel delivery
Usage Examples
Sample Agent Response
{
"summary": "Hamas reportedly launched 3 missiles toward Jerusalem area at 06:15 IST. Red alerts active in Jerusalem, Beit Shemesh, and surrounding communities. Iron Dome interceptions reported.",
"gmail_html": "<html><body><h2>๐จ Missile Alert Report</h2><p><b>Group:</b> Hamas</p><p><b>Details:</b> 3 missiles toward Jerusalem area</p><p><b>Areas:</b> Jerusalem, Beit Shemesh</p><p><b>Time:</b> 06:15 IST</p></body></html>",
"militant_group": "Hamas",
"missile_count": 3,
"missile_launch_details": "3 missiles reported launched toward Jerusalem area",
"launch_time_utc": "2025-07-30T03:15:00Z",
"launch_time_ist": "2025-07-30T06:15:00+03:00",
"affected_areas": ["Jerusalem", "Beit Shemesh", "Modiin"]
}
Slack Notification Format
๐จ MISSILE ALERT - Jerusalem Area
๐ Affected Areas: Jerusalem, Beit Shemesh, Modiin
๐ฏ Source: Hamas (3 missiles)
โฐ Time: 06:15 IST (03:15 UTC)
๐ Summary: Hamas reportedly launched 3 missiles toward Jerusalem area. Red alerts active in multiple communities. Iron Dome interceptions reported.
โ ๏ธ This is an automated intelligence report based on OSINT data.
Security Considerations
- API Keys: Store X API credentials securely
- Rate Limiting: Implement appropriate API call limits
- Data Validation: Verify all inputs before processing
- Error Handling: Graceful degradation when sources unavailable
- Audit Trail: Log all agent activations and responses
Deployment
Prerequisites
- X API access with appropriate permissions
- Home Assistant with Homefront Command integration
- Automation platform (N8N, Zapier, etc.)
- Notification endpoints (Slack workspace, email server)
Configuration Steps
- Deploy agent to your preferred AI platform
- Configure Home Assistant webhook automation
- Set up automation platform workflow
- Test notification delivery channels
- Validate end-to-end alert processing
Monitoring & Maintenance
- Health Checks: Regular API connectivity tests
- Response Time: Monitor agent processing latency
- Accuracy Tracking: Validate reports against official sources
- False Positive Rate: Track and minimize incorrect alerts
License
This project is intended for defensive intelligence purposes only.
โ ๏ธ Important: This system provides automated analysis of public information during emergency situations. Always verify critical information through official channels and follow local emergency procedures.