# Detect client portfolio news impact with Gemini and Gmail: n8n workflow

> Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/detect-client-portfolio-news-impact-with-gemini-and-gmail (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# 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.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-client-portfolio-news-impact-with-gemini-and-gmail)

**21 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 1 Logic 14 Service 5

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

- 1 **Daily News Trigger (8AM)** Schedule trigger *Starts it*
- 2 **Fetch Client Dataset** Google Sheets *Service*
- 3 **Fetch Already Processed Articles** Google Sheets *Service*
- 4 **Fetch Latest Finance News** Http Request *Service*
- 5 **Build Client Dataset Array** Code *Logic*
- 6 **Build Logged URL List** Code *Logic*
- 7 **Check If News Articles Exist** If *Logic*
- 8 **Split News Articles** Code *Logic*
- 9 **Process Articles One-by-One** Split In Batches *Logic*
- 10 **Check If Article Already Logged** Code *Logic*
- 11 **Check If Article Is New** If *Logic*
- 12 **Attach Clients to Current Article** Set *Logic*
- 13 **AI Impact Classification** Google Gemini *Model*
- 14 **Parse AI Response** Code *Logic*
- 15 **Extract Impact & Client Data** Set *Logic*
- 16 **Filter High Impact News** If *Logic*
- 17 **Send High Impact Alert Email** Gmail *Service*
- 18 **Prepare Low/Medium Impact Log Entry** Set *Logic*
- 19 **Prepare High Impact Log Entry** Set *Logic*
- 20 **Log Processed Article** Google Sheets *Service*
- 21 **Wait Before Next Article** Wait *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-client-portfolio-news-impact-with-gemini-and-gmail)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**ACOP - bank account opening AI agent with Gemini** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/acop-bank-account-opening-ai-agent-with-gemini)
- [**Automate HR celebrations with Gemini and Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automate-hr-celebrations-with-gemini-and-sheets)
- [**Automating SAP B1 journal entries with JSON and Google Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automating-sap-b1-journal-entries-with-json-and-google-sheet)
- [**Build an EU AI Act risk inventory with OpenAI** 21 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/build-an-eu-ai-act-risk-inventory-with-openai)
- [**Cluster webpage topics from Google Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/cluster-webpage-topics-from-google-sheets)
- [**Customer personality (BaZi, DISC, Numerology) with Gemini** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/customer-personality-bazi-disc-numerology-with-gemini)
