Automation library · Alerts and monitoring

Summarize regulatory news from NewsAPI with Gemini

Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini. 18 steps, 1 branch, 5 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

18 stepsMedium: a working afternoon
1Branch: places the flow splits
5Loops or waits
2Services it connects to

The flow

Starts it 1Model 1Logic 12Service 4

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

  1. 1Run Workflow ManuallyManual triggerStarts it
  2. 2Workflow Config & VariablesSetLogic
  3. 3Fetch News from NewsAPIHttp RequestService
  4. 4Preprocess & Normalize ArticlesCodeLogic
  5. 5Collect All ErrorsMergeLogic
  6. 6Limit to Top N ArticlesLimitLogic
  7. 7Format Error DetailsSetLogic
  8. 8Loop Store Each ArticleSplit In BatchesLogic
  9. 9Error Alert DelayWaitLogic
  10. 10Filter Valid Articles OnlyIfLogic
  11. 11Wait Before StoringWaitLogic
  12. 12Email Error AlertGmailService
  13. 13 Loop Articles (Batch Size: 1)Split In BatchesLogic
  14. 14Store Raw Articles to SheetGoogle SheetsService
  15. 15Cooldown Between ArticlesWaitLogic
  16. 16Generate Summary & Key Changes (AI)Google GeminiModel
  17. 17Format & Structure AI OutputCodeLogic
  18. 18Update Sheet with AI ResultsGoogle SheetsService

How it's built

Starts on
An event in a connected app
Steps
18, with 1 branch, 5 loops or waits
Size
Medium: a working afternoon
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 an event in a connected app.

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?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

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 18 steps before you point it at anything that matters.