See llms.txt for all machine-readable content.
This workflow runs daily to query the GDELT News API for a chosen theme, detects unusual one-day news-volume spikes, uses Google Gemini to generate a market-impact analysis for a sector and watchlist tickers, logs the results to Google Sheets, and posts an alert to Slack.
The current workflow already combines scheduled monitoring, GDELT data collection, statistical spike detection, event classification, Gemini analysis, Google Sheets logging, and Slack alerting. The following are potential extensions that can be added to expand its usage:
Add an email notification after event analysis so important alerts can also be delivered through email.
Run multiple themes through the workflow instead of monitoring only one configured theme.
For example, separate monitoring could be created for different sectors or event categories.
Add other news or market-data sources alongside GDELT to provide additional information before the Gemini analysis stage.
Store historical results and compare current event activity against longer-term historical patterns.
Replace or supplement Google Sheets with a database for larger-scale event history and querying.
Add conditions based on:
This can help reduce unnecessary notifications.
Connect the stored event data to a reporting or dashboard system to visualize event trends over time.
Add additional notification channels so different teams can receive alerts through their preferred communication system.
These are extension ideas only. They are not part of the current workflow JSON.
The current workflow configuration monitors:
Theme: semiconductor export
Sector: Semiconductors
Tickers: NVDA, AMD, TSM, INTC, AVGO
It can detect a significant increase in news activity around semiconductor exports and use Gemini to assess the potential impact on the configured watchlist.
The event classification logic supports themes containing oil or energy.
A suitable configured theme can therefore be used to identify news spikes related to energy events and classify them as:
ENERGY
Themes containing shipping or supply are classified as:
SUPPLY CHAIN
This can be used to monitor unusual news activity around supply-chain-related themes.
A team can configure a theme and sector together with a watchlist of relevant tickers. When a significant news spike occurs, Gemini can provide a structured assessment of how the event may affect the selected sector and individual tickers.
The workflow can be used as a scheduled monitoring system where users do not need to manually check news volume every day. Significant spikes are processed automatically, logged to Google Sheets, and delivered through Slack.
These are examples based on the capabilities and classification logic present in the workflow. There can be more use cases depending on how the theme, sector, ticker list, and downstream integrations are configured.
| Issue | Possible Cause | Solution |
|---|---|---|
| Workflow does not start automatically | The schedule trigger is not configured as expected or the workflow is inactive | Check Daily Event Scan Trigger and make sure the workflow is activated |
| GDELT request fails | The GDELT HTTP Request configuration is incorrect or the API does not return the expected response | Check the Fetch GDELT News Timeline URL, query parameters, and returned data |
Not enough timeline data |
The GDELT response contains fewer than two timeline entries | Verify the GDELT response and the selected theme |
Spike is always false |
The calculated increase is below the 50% threshold | Review the news volume and adjust spikeThreshold if required |
| Event does not continue after spike detection | spikeDetected is not true |
Check the calculation in Calculate News Volume Spike and the condition in Check Spike Threshold |
Event category is OTHER |
The theme does not contain any configured category keywords | Update the theme or extend the logic in Classify Event Category |
| Gemini returns an empty response | Gemini did not return content | Check the Gemini credential, model configuration, and node execution |
| Gemini response cannot be parsed | Gemini returned content that is not valid JSON | Check the Gemini prompt and ensure the requested response follows the defined JSON structure |
| Google Sheets logging fails | Google Sheets credentials or destination configuration is incorrect | Check the credentials, spreadsheet, worksheet, and column mapping |
| Slack alert is not delivered | Slack credentials or destination channel configuration is incorrect | Check the Slack credential and channel configuration |
| Ticker analysis is missing | The watchlist data is not available in the expected format | Check the tickers configuration and the data passed into the Gemini node |
| Historical results are not appearing | The Google Sheets node cannot append the record | Check the Google Sheets node execution and column mappings |
Setting up an n8n workflow may require more than importing the workflow JSON. API credentials, business rules, data mappings, integrations, notification channels and custom automation requirements may need to be configured based on your environment. WeblineIndia can help you design, customize and implement n8n automation workflows based on your business requirements.
For more information about our n8n automation services, expertise, workflow development and related solutions, visit: Everything in n8n Automation | Offshore Workflow Experts