Automation library · Data collection

Detect client portfolio news impact with Gemini and Gmail

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini. 21 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 1Model 1Logic 14Service 5

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

  1. 1Daily News Trigger (8AM)Schedule triggerStarts it
  2. 2Fetch Client DatasetGoogle SheetsService
  3. 3Fetch Already Processed ArticlesGoogle SheetsService
  4. 4Fetch Latest Finance NewsHttp RequestService
  5. 5Build Client Dataset ArrayCodeLogic
  6. 6Build Logged URL ListCodeLogic
  7. 7Check If News Articles ExistIfLogic
  8. 8Split News ArticlesCodeLogic
  9. 9Process Articles One-by-OneSplit In BatchesLogic
  10. 10Check If Article Already LoggedCodeLogic
  11. 11Check If Article Is NewIfLogic
  12. 12Attach Clients to Current ArticleSetLogic
  13. 13AI Impact ClassificationGoogle GeminiModel
  14. 14Parse AI ResponseCodeLogic
  15. 15Extract Impact & Client DataSetLogic
  16. 16Filter High Impact NewsIfLogic
  17. 17Send High Impact Alert EmailGmailService
  18. 18Prepare Low/Medium Impact Log EntrySetLogic
  19. 19Prepare High Impact Log EntrySetLogic
  20. 20Log Processed ArticleGoogle SheetsService
  21. 21Wait Before Next ArticleWaitLogic

How it's built

Starts on
A clock
Steps
21, with 3 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Gemini. 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.