Skip to main content

Score macro news impact with Groq, SerpAPI, Google Sheets and Gmail

Workflow preview

Workflow preview
100%
Score macro news impact with Groq, SerpAPI, Google Sheets and Gmail preview
Open on n8n.io

1. Workflow Overview

Macro News: AI Driven Market Impact Scoring Automation This workflow is a high precision financial intelligence engine that monitors macroeconomic news to identify high impact trading opportunities...

Best for

  • Crypto Trading automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgroq

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Score macro news impact with Groq, SerpAPI, Google Sheets and Gmail
Workflow name
Score macro news impact with Groq, SerpAPI, Google Sheets and Gmail

Macro News: AI-Driven Market Impact Scoring Automation

This workflow is a high-precision financial intelligence engine that monitors macroeconomic news to identify high-impact trading opportunities. It retrieves real-time data via SerpAPI, processes it through a dual-layered engine—combining a custom weighted Rule Engine with Groq-powered AI analysis—to calculate a final "Market Impact Score". By filtering out noise and focusing only on high-confidence signals, it stores critical events in Google Sheets and delivers formatted trade bias alerts (Forex, Crypto, Stocks) directly to your inbox.

Quick Implementation Steps

  • Import: Upload the JSON file into your n8n workspace.
  • Authenticate: Connect your Google Sheets, SerpAPI, Groq and Gmail credentials.
  • Setup Rules: Fill your "Macro Rules" Google Sheet with keywords (e.g., "Repo Rate") and their corresponding weights.
  • Configure News: In the Fetch Macro News node, enter your SerpAPI key and adjust the gl (country) or q (query) parameters to your target market.
  • Deploy: Run once manually to test, then activate the workflow for continuous monitoring.

What It Does

The workflow automates the end-to-end lifecycle of macro-fundamental analysis. It begins by fetching a library of "Macro Rules" from your Google Sheet, which acts as the DNA for your scoring logic. It then scouts for the latest news on topics like GDP, Inflation and Central Bank decisions. To ensure you aren't buried in repetitive data, a normalization script creates a unique fingerprint for every article, allowing a deduplication filter to ignore any story you have already processed.

Once a fresh article is identified, it enters the dual-engine analysis phase. First, a JavaScript-based Rule Engine scans the text for your predefined keywords and tallies a weighted base score. Second, the Groq LLM Engine performs a deep qualitative analysis to determine market sentiment, affected asset classes and specific trade biases.

In the final stage, the workflow synthesizes these two perspectives into a "Final Impact Score". It applies a mathematical boost to high-confidence AI signals and identifies articles that cross a specific "High Impact" threshold (defaulting at 90+). These elite signals are archived in your database and immediately dispatched as a professional HTML alert to your Gmail.

Who It's For

  • Macro Traders who need to react instantly to Central Bank news and economic shifts.
  • Portfolio Managers looking to automate the tracking of fundamental "Black Swan" events.
  • Financial Analysts who want a structured, historical database of news impact scores.
  • Crypto & Forex Investors who require a disciplined "Buy/Sell/Neutral" bias based on fundamental data rather than just technical charts.

Requirements to use this workflow

  • n8n Instance: (Self-hosted or Cloud).
  • SerpAPI Key: To fetch live Google News results.
  • Groq API Key: To power the AI Market Impact Analysis.
  • Google Account: For Sheets (Rules/Database) and Gmail (Alerts).

How It Works & Setup Guide

1. The Rules Engine (Precondition)

Before starting, prepare a Google Sheet named Macro Rules. It must have the following headers:

  • Keyword: The term to look for (e.g., "Inflation").
  • Weight: A number (1-50) representing the importance of this word.
  • Asset/Sentiment/Impact: Metadata for the AI to consider.

2. Geographic & Query Configuration

The Fetch Macro News node is currently set to India (gl=in). You can change this to us (United States), gb (United Kingdom) or any other region code supported by SerpAPI to pivot your market focus.

3. Deduplication & Throttling

The workflow uses a Normalize & Generate News ID node to hash article titles. The Rate Limit node adds a necessary 5-second pause before calling the AI to ensure you don't hit rate limits on your Groq account.

4. Final Scoring Logic

The Calculate Final Score node combines the Rule Score + AI Confidence + Impact Boost. The Assign Final Impact Level node then classifies anything with a score of 90 or higher as "High Impact," which triggers the final alert. You can lower this number in the code if you want more frequent, lower-sensitivity alerts.

How To Customize Nodes

  • Adjust Sensitivity: Modify the score threshold (90) in the Assign Final Impact Level node to make the workflow more or less "picky".

  • Edit AI Prompt: Open the AI Market Impact Analysis node to change the "Trade Bias" options or add new asset classes like "Commodities" or "Bonds".

  • Custom News Sources: Modify the q parameter in the Fetch Macro News node to include specific news outlets or different economic indicators.

Add‐ons

  • WhatsApp/Slack Alerts: Connect a messaging node after the high-impact filter for mobile push notifications.

  • Schedule Trigger: Replace the manual trigger with a Schedule Trigger to run the scan every 15 minutes during market hours.

  • Automated Trading: Connect this to a broker API (like Alpaca or Interactive Brokers) to automatically execute "Trade Bias" signals.

Use Case Examples

  • Central Bank Monitoring: Instantly scoring RBI, Fed or ECB interest rate decisions.

  • Inflation Tracking: Scoring CPI or WPI data releases and their immediate impact on Forex pairs.

  • GDP Growth Alerts: Identifying surprises in GDP data that could move the stock market.

  • Crypto Macro Correlation: Tracking how US Dollar strength or inflation news impacts Bitcoin volatility.

  • Crisis Management: Monitoring for keywords like "Sanctions," "Default," or "War" to signal an immediate shift to defensive assets.

Troubleshooting Guide

Issue Possible Cause Solution
No news is fetched SerpAPI key is empty or invalid Enter your SerpAPI key in the Fetch Macro News query parameters.
Duplicate alerts sent ID column missing in sheet Ensure your Fetch Existing News sheet has an "ID" column for comparison.
AI node error Groq rate limits Increase the Rate Limit wait time or check your Groq API usage.
Scores are too low Weighted rules are too conservative Increase the "Weight" values in your Macro Rules spreadsheet.

Need Help?

Creating a custom market-scoring engine requires a perfect blend of financial logic and technical automation. If you need assistance fine-tuning your rules engine, modifying the AI trade bias or scaling this to multiple global markets, our n8n automation workflow experts are ready to support you.

Contact WeblineIndia to help you build, customize or scale your professional financial automations today!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Start Workflow

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Fetch Existing News

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 3 - Fetch Macro Rules

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 4 - Fetch Macro News (SerpAPI)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 5 - Normalize & Generate News ID

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Iterate News Articles

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Remove Duplicate Articles

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Check If New Article

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 9 - Apply Macro Rules Engine

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - AI Market Impact Analysis

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.8

Block 11 - LLM Engine (Groq)

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 12 - Parse AI JSON Output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 13 - Combine Rule + AI Outputs

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 14 - Flatten AI Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Calculate Final Score

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Assign Final Impact Level

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Filter High Impact Alerts

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 18 - Store High Impact News

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 19 - Send Email Alert

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 20 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Score macro news impact with Groq, SerpAPI, Google Sheets and Gmail
Complexity advanced
Nodes 26
Categories Crypto Trading, AI Summarization
Author WeblineIndia
Published 12 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15671/15671.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Score macro news impact with Groq, SerpAPI, Google Sheets and Gmail do?

Macro News: AI Driven Market Impact Scoring Automation This workflow is a high precision financial intelligence engine that monitors macroeconomic news to identify high impact trading opportunities...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Summarization use case.