Automation library · Data collection

Score macro news impact with Groq and SerpAPI

Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Groq. 21 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Groq

21 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 1Model 3Logic 12Service 5

The steps in the order they run, from what starts it.

  1. 1Start WorkflowManual triggerStarts it
  2. 2LLM Engine (Groq)Lm Chat GroqModel
  3. 3Parse AI JSON OutputOutput Parser StructuredModel
  4. 4Fetch Existing NewsGoogle SheetsService
  5. 5AI Market Impact AnalysisChain LlmModel
  6. 6Fetch Macro RulesGoogle SheetsService
  7. 7Combine Rule + AI OutputsMergeLogic
  8. 8Fetch Macro News (SerpAPI)Http RequestService
  9. 9Flatten AI ResponseCodeLogic
  10. 10Normalize & Generate News IDCodeLogic
  11. 11Format & Enrich News DataSetLogic
  12. 12Iterate News ArticlesSplit In BatchesLogic
  13. 13Calculate Final ScoreCodeLogic
  14. 14Remove Duplicate ArticlesCodeLogic
  15. 15Assign Final Impact LevelCodeLogic
  16. 16Check If New ArticleIfLogic
  17. 17Filter High Impact AlertsIfLogic
  18. 18Apply Macro Rules EngineCodeLogic
  19. 19Store High Impact NewsGoogle SheetsService
  20. 20Rate LimitWaitLogic
  21. 21Send Email AlertGmailService

How it's built

Starts on
An event in a connected app
Steps
21, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
Groq

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Groq. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.