Overview
Thegdelt_system_prompt provides AI assistants with concise guidance for using the GDELT Cloud API tools effectively. It covers the data model, available tools, response size control, filters, and recommended workflows.
This prompt requires no parameters and returns a complete system message ready for use with any LLM.
When to Use
Usegdelt_system_prompt when:
- Initializing an AI agent that will query GDELT data
- Building a research assistant with GDELT capabilities
- Creating a chatbot that needs GDELT expertise
- Setting up automated GDELT analysis workflows
Prompt Structure
The system prompt is compact (~80 lines) and covers five key areas:Data Model
How GDELT Cloud data is organized: news articles are grouped into GDELT events, events are clustered into Media Events (stories), and Entities (people and organizations) are linked across stories via Wikipedia.
Response Size Control
Critical guidance on managing token usage with the
detail, limit, and offset parameters. Includes a token-count reference table so agents can estimate response sizes before calling tools.| Detail | Media Events | Cluster | Entity |
|---|---|---|---|
summary | ~120 tok/cluster | ~500 tok | ~300 tok |
standard | ~500 tok/cluster | ~1,500 tok | ~1,200 tok |
full | ~1,000 tok/cluster | ~3,000+ tok | ~1,500 tok |
Tool Descriptions
Concise descriptions of the four API tools with their key parameters:
| Tool | Purpose |
|---|---|
get_media_events | Discover top news stories — filter by category, country, event type, location |
get_media_event_cluster | Deep-dive into a single story — articles, entities, metrics |
get_entity | GEG entity profile — linked stories, co-occurrences, timeline |
get_domain | News domain profile — stats, top entities, recent articles |
CAMEO Code Resources
Where to find reference codes using the three resource tools:
cameo-country-codes— ISO-3 codes for actor filtering (USA, GBR, CHN)cameo-event-codes— Event taxonomy (14=Protest, 18=Assault, 19=Fight)goldstein-scale— Event intensity scale (-10 to +10)
Usage Examples
Integration Pattern
Best Practices
Response Format
Returns aMessage object (or list of Message objects) with:
Message role, typically “assistant” or “system”
The complete system prompt text (~80 lines)

