Cross-domain intelligence synthesis and AI-powered analysis
The IntelligenceService provides APIs for cross-domain intelligence synthesis including risk scores, PizzINT monitoring, GDELT analysis, and AI-powered event classification and country intelligence briefs.
curl -X POST "https://your-domain.com/api/intelligence/v1/classify-event" \ -H "Content-Type: application/json" \ -d '{ "event_description": "Large explosion reported near military facility in Damascus", "context": "Ongoing regional tensions between Israel and Syria" }'
{ "classification": "Military Strike", "severity": "High", "confidence": 0.87, "model": "llama-3.1-70b-versatile", "reasoning": "The event description indicates a targeted military action near a strategic facility, with high regional implications given the stated context of Israel-Syria tensions. The severity is assessed as high due to the potential for escalation."}
Generates an AI intelligence brief for a country using OpenRouter, synthesizing multiple data sources.Endpoint:GET /api/intelligence/v1/get-country-intel-brief
{ "country_code": "UA", "country_name": "Ukraine", "brief": "# Ukraine Intelligence Brief\n\n## Security Situation\nThe security environment remains highly dynamic with ongoing military operations in eastern regions. ACLED data shows 347 conflict events in the past 30 days, with concentration in Donetsk and Luhansk oblasts...\n\n## Humanitarian Impact\nUCDP reports indicate 892 fatalities over the reference period. Displacement continues to affect approximately 5.1 million internally displaced persons...\n\n## Strategic Assessment\nMilitary posture analysis indicates sustained defensive operations with periodic counteroffensive activities. Air defense systems remain active with 23 intercepts recorded in the past week...", "model": "anthropic/claude-3.5-sonnet", "generated_at": 1709251200000}