# Track investor behavior with NewsAPI and Gemini: n8n workflow

> Started by someone submitting a form, and works across Gmail and n8n data table. It hands the judgement calls to Gemini and Groq.

Source: https://millionrounds.com/workflow/track-investor-behavior-with-newsapi-and-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Track investor behavior with NewsAPI and Gemini

Started by someone submitting a form, and works across Gmail and n8n data table. It hands the judgement calls to Gemini and Groq. 22 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, Groq

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftrack-investor-behavior-with-newsapi-and-gemini)

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

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 4 Logic 9 Service 7

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

- 1 **Investor Behavior Tracker Form** Form trigger *Starts it*
- 2 **Gemini** Lm Chat Google Gemini *Model*
- 3 **Send Gmail** Gmail Tool *Service*
- 4 **Send slack alert** Slack Tool *Service*
- 5 **Execute at every weekend** Schedule trigger *Starts it*
- 6 **Send a message in Slack** Slack Tool *Service*
- 7 **Groq Chat Model** Lm Chat Groq *Model*
- 8 **Fetch market news** Http Request *Service*
- 9 **Insert form data to table** Data Table *Service*
- 10 **AI Agent** Agent *Model*
- 11 **Retrieve all data from data table** Data Table *Service*
- 12 **AI Agent1** Agent *Model*
- 13 **Filter required news** Code *Logic*
- 14 **Merge News and form data** Merge *Logic*
- 15 **Retrieve latest feedback** Code *Logic*
- 16 **Get last 7 items** Limit *Logic*
- 17 **Aggregate filtered news** Aggregate *Logic*
- 18 **Format feedback output** Code *Logic*
- 19 **retrieve required fields** Set *Logic*
- 20 **Edit Fields** Set *Logic*
- 21 **aggregate values** Code *Logic*
- 22 **Update row with feedback** Data Table *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 22
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, n8n data table
- **Model:** Gemini, Groq

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

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

How long does it take to set up?

Take your time. At 22 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 22 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%2Ftrack-investor-behavior-with-newsapi-and-gemini)
- **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)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Analyze contract PDFs and score risk with Claude and Postgres** 22 steps · calls a model · Gmail, Postgres](https://millionrounds.com/workflow/analyze-contract-pdfs-and-score-risk-with-claude-and-postgre)
- [**Automated job intelligence system with Decodo** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-job-intelligence-system-with-decodo)
- [**Coordinate robot swarms with OpenAI** 22 steps · calls a model · Slack, n8n data table](https://millionrounds.com/workflow/coordinate-robot-swarms-with-openai)
- [**Filter breaking geopolitical news with Telegram** 22 steps · calls a model · RSS, Telegram](https://millionrounds.com/workflow/filter-breaking-geopolitical-news-with-telegram)
- [**Intelligent Gmail label management with Discord** 22 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/intelligent-gmail-label-management-with-discord)
- [**Monitor academic integrity signals with OpenAI** 22 steps · calls a model · Email, n8n data table](https://millionrounds.com/workflow/monitor-academic-integrity-signals-with-openai)
