Automation library · Alerts and monitoring

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.

LargeCalls a model: Gemini

29 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 2Model 4Logic 16Service 7

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

  1. 1Google Gemini Chat ModelLm Chat Google GeminiModel
  2. 2getTweetsFromDatabaseGoogle Sheets ToolService
  3. 3Schedule TriggerSchedule triggerStarts it
  4. 4Google Gemini Chat Model1Lm Chat Google GeminiModel
  5. 5Schedule Trigger1Schedule triggerStarts it
  6. 6AI AnalystAgentModel
  7. 7CountSetLogic
  8. 8Strategist AgentChain LlmModel
  9. 9Get row(s) in sheetGoogle SheetsService
  10. 10TranslatorCodeLogic
  11. 11counterSetLogic
  12. 12summaryCodeLogic
  13. 13parseAlertsCodeLogic
  14. 14parserCodeLogic
  15. 15Append row in sheet1Google SheetsService
  16. 16WaitWaitLogic
  17. 17Send a messageSlackService
  18. 18Loop Over ItemsSplit In BatchesLogic
  19. 19Tweet ScraperHttp RequestService
  20. 20Send a message1SlackService
  21. 21CodeCodeLogic
  22. 22Append row in sheetGoogle SheetsService
  23. 23IfIfLogic
  24. 24AggregateAggregateLogic
  25. 25LimitLimitLogic
  26. 26SwitchSwitchLogic
  27. 27set increaseSetLogic
  28. 28Code1CodeLogic
  29. 29set count and cursorSetLogic

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.