Automation library · Alerts and monitoring

Monitor LINE activity and Gemini sentiment with Google Sheets

Started by another system calling it, and works across Google Sheets. It hands the judgement calls to Gemini. 19 steps, 3 branches, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

19 stepsMedium: a working afternoon
3Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 2Model 1Logic 10Service 6

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

  1. 1Daily 11 AMSchedule triggerStarts it
  2. 2LINE WebhookWebhookStarts it
  3. 3Config for DailySetLogic
  4. 4ConfigSetLogic
  5. 5Read LogsGoogle SheetsService
  6. 6Format MessageSetLogic
  7. 7Check ActivityCodeLogic
  8. 8Gemini: AnalyzeGoogle GeminiModel
  9. 9If InactiveIfLogic
  10. 10Parse JSONCodeLogic
  11. 11Remind ParentLineService
  12. 12Log to SheetsGoogle SheetsService
  13. 13Wait 3 HoursWaitLogic
  14. 14Is Risk?IfLogic
  15. 15Read Logs AgainGoogle SheetsService
  16. 16Alert ChildLineService
  17. 17Check Activity 2CodeLogic
  18. 18If Still InactiveIfLogic
  19. 19Emergency AlertLineService

How it's built

Starts on
Another system calling it
Steps
19, with 3 branches, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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