API endpoints
Reference
Building queries
Integrations
Example 1: Content Research Assistant Workflow
This workflow searches for news articles on any topic and emails them in a formatted table. Perfect for content research and monitoring.
Workflow Steps
- Manual Trigger - Start the workflow manually
- Edit Fields - Set search parameters (topic, dateStart, language)
- HTTP Request - Fetch articles from Event Registry
- Split Out - Separate articles into individual items
- HTML - Format articles as HTML table
- Gmail/Email - Send formatted results via email
Step-by-Step Node Configuration
1. Manual Trigger Node
- Add a Manual Trigger node from the trigger nodes
- No configuration needed - this node starts the workflow when you click "Execute Workflow"
2. Edit Fields Node
- Add an Edit Fields node (or Set node) after the Manual Trigger
- Click Add Value and configure the following fields:
- Field Name:
topic, Value:artificial intelligence(or your search topic) - Field Name:
dateStart, Value:2024-01-01(format: YYYY-MM-DD, or use expression like{{ $now.minus({days: 7}).toFormat('yyyy-MM-dd') }}for 7 days ago) - Field Name:
language, Value:eng(orspa,deu, etc.) - Click "Back to canvas" in the upper left corner
3. HTTP Request Node
- Add an HTTP Request node after the Edit Fields node
- Configure the following settings:
- Method: Select
POSTfrom the dropdown - URL: Enter
https://eventregistry.org/api/v1/article/getArticles - Authentication: Select
Generic Credential Type - Credential Type: Select
Custom Auth - Credential for Custom Auth: Select your
Event Registry APIcredential (created in Overview tab) - Send Body: Check the box
- Body Content Type: Select
JSON - Specify Body: Specify body using JSON
- Body: Enter the following request body JSON:
- The
{{ $json.topic }},{{ $json.dateStart }}, and{{ $json.language }}expressions reference fields from the Edit Fields node - Click "Back to canvas" in the upper left corner
4. Split Out Node
- Add a Split Out node after the HTTP Request node
- Configure the following:
- Fields to Split Out: Enter
articles.results - Include: Select
No Other Fieldsfrom the dropdown - Click "Back to canvas" in the upper left corner
5. HTML Node
- Add an HTML node after the Split Out node
- Configure the following:
- Operation: Select
Convert to HTML Table - Click "Back to canvas" in the upper left corner
6. Gmail/Email Node
- Add a Gmail or Email node after the HTML node
- Configure based on your chosen node type:
- For Gmail node:
- Operation: Select
Send - To: Enter recipient email address
- Subject: Enter email subject, e.g.,
Content Research Results - Email Type: Select
HTML - Message: Use expression
{{ $json.table }}to reference HTML Table from previous node
- Operation: Select
- For Email node:
- If you haven't already, configure your email account credentials first
- Operation: Select
Send - To Email: Enter recipient email address
- Subject: Enter email subject, e.g.,
Content Research Results - Email Format: Select
HTML - Message: Use expression
{{ $json.table }}to reference HTML Table from previous node
- For Gmail node:
- Click "Back to canvas" in the upper left corner
Customization Ideas
- Change article count: Modify
articlesCount(max 100 per request) - Filter by date range: Add
dateEndparameter - Filter by source: Add
sourceUriorsourceLocationUriparameters - Include sentiment: Set
includeArticleSentiment: truein request body - Schedule automation: Replace Manual Trigger with Schedule Trigger for automatic runs
Additional Resources
- For Gmail/Email node configuration, see n8n Email Node documentation
- For HTML formatting, see n8n HTML Node documentation