# X (Twitter) brand sentiment analysis with Gemini and Slack: n8n workflow

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

Source: https://millionrounds.com/workflow/x-twitter-brand-sentiment-analysis-with-gemini-and-slack (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)

# X (Twitter) brand sentiment analysis with Gemini and Slack

Started by a clock, and works across Google Sheets and Slack. It hands the judgement calls to Gemini. 29 steps, 2 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%2Fx-twitter-brand-sentiment-analysis-with-gemini-and-slack)

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

**2** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 4 Logic 16 Service 7

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

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **getTweetsFromDatabase** Google Sheets Tool *Service*
- 3 **Schedule Trigger** Schedule trigger *Starts it*
- 4 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 5 **Schedule Trigger1** Schedule trigger *Starts it*
- 6 **AI Analyst** Agent *Model*
- 7 **Count** Set *Logic*
- 8 **Strategist Agent** Chain Llm *Model*
- 9 **Get row(s) in sheet** Google Sheets *Service*
- 10 **Translator** Code *Logic*
- 11 **counter** Set *Logic*
- 12 **summary** Code *Logic*
- 13 **parseAlerts** Code *Logic*
- 14 **parser** Code *Logic*
- 15 **Append row in sheet1** Google Sheets *Service*
- 16 **Wait** Wait *Logic*
- 17 **Send a message** Slack *Service*
- 18 **Loop Over Items** Split In Batches *Logic*
- 19 **Tweet Scraper** Http Request *Service*
- 20 **Send a message1** Slack *Service*
- 21 **Code** Code *Logic*
- 22 **Append row in sheet** Google Sheets *Service*
- 23 **If** If *Logic*
- 24 **Aggregate** Aggregate *Logic*
- 25 **Limit** Limit *Logic*
- 26 **Switch** Switch *Logic*
- 27 **set increase** Set *Logic*
- 28 **Code1** Code *Logic*
- 29 **set count and cursor** Set *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 29, with 2 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Slack
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Slack 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 29 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 29 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%2Fx-twitter-brand-sentiment-analysis-with-gemini-and-slack)
- **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.

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

## Workflows like it

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

- [**Detect procurement fraud and monitor supplier compliance** 29 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/detect-procurement-fraud-and-monitor-supplier-compliance)
- [**Match teacher substitutes and send notifications with OpenAI** 29 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/match-teacher-substitutes-and-send-notifications-with-openai)
- [**Monitor semiconductor board reliability with OpenAI and Slack** 29 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/monitor-semiconductor-board-reliability-with-openai-and-slac)
- [**Manage invoicing, collections and alerts with BeeL and HubSpot** 29 steps · Gmail, Google Drive](https://millionrounds.com/workflow/gestiona-facturacion-recobros-y-alertas-con-beel-hubspot-y)
- [**Send end-of-life software alerts with NocoDB and Slack** 29 steps · NocoDB, Slack](https://millionrounds.com/workflow/send-end-of-life-software-alerts-with-nocodb-and-slack)
- [**AI industry trend monitor 24/7 across X, Gmail, and websites** 30 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-industry-trend-monitor-24-7-across-x-gmail-and-websites)
