5 min readUpdated Mar 2, 2026

Documentation for eventMonitor Logic

Purpose

The eventMonitor logic module is designed to monitor breaking events in near-real-time, specifically within a 15-minute window. It is optimized for scheduled workflows that periodically check for new event articles. To enhance data quality, the module includes a deduplication feature that avoids returning repeat articles based on their URLs. This component is particularly useful for users requiring timely updates on various topics and themes relevant to their interests or industries.

Settings

The eventMonitor offers several configurable settings to control its behavior and output. Below is a detailed examination of each setting, including its name, input type, purpose, effects of modifying the setting, and default values.

1. query

2. timespan

3. maxRecords

4. sort

5. country

6. theme

7. domain

8. language

9. deduplicate

How It Works

The eventMonitor executes an asynchronous function that defines a searchConfig based on the provided inputs and config. It then checks if a valid query is present; if not, it returns an error. If the query is valid, the function attempts to retrieve articles using the searchArticles service with the specified search configuration.

Once articles are retrieved, deduplication occurs if the deduplicate setting is enabled. Articles without a valid URL or duplicates based on URL are filtered out. Finally, the function returns either the found articles or an indication that no new events were found.

In case of any errors during fetching, the module captures the exception and returns an appropriate error message to the output.

Use Cases & Examples

Use Cases

  1. News Aggregation for Businesses: Organizations can utilize eventMonitor to continuously monitor relevant news articles related to their industry or competitors, enabling rapid response strategies and decision-making.

  2. Event Detection for Marketing Teams: Marketing departments can track events relevant to their audience, identifying trends and opportunities for targeted campaigns or content creation.

  3. Crisis Management Monitoring: Companies can set up monitoring for specific themes like "crisis" or "emergency" to quickly gather information and assess public sentiment during critical events.

Example Configuration

To illustrate a specific use case, let's consider a marketing team wanting to monitor breaking news articles related to the "technology" industry in the last 15 minutes. Below is a sample configuration for eventMonitor.

json
{
  "config": {
    "query": "technology",
    "timespan": "15min",
    "maxRecords": 50,
    "country": "US",
    "theme": "innovation",
    "domain": "techcrunch.com",
    "language": "en",
    "deduplicate": true
  }
}

In this configuration:

This configuration example demonstrates how eventMonitor can be tailored to meet specific monitoring needs within a business context.