Automation library · Chat assistants

Gate prompt changes in CI with Gemini

Started by a clock, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to Gemini. 16 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini

16 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 8Service 4

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

  1. 1Check Every HourSchedule triggerStarts it
  2. 2Gemini for the NoticeLm Chat Google GeminiModel
  3. 3Notice SchemaOutput Parser StructuredModel
  4. 4Define Your Sites and RulesCodeLogic
  5. 5Write the All-Staff NoticeChain LlmModel
  6. 6Fetch the JMA WarningsHttp RequestService
  7. 7Shape the MessageCodeLogic
  8. 8Decide What Each Site Should DoCodeLogic
  9. 9Tell Everyone in SlackSlackService
  10. 10Has Anything ChangedSwitchLogic
  11. 11Recall What We SentCodeLogic
  12. 12Stay QuietCodeLogic
  13. 13Write the All ClearCodeLogic
  14. 14Is Travel StoppedIfLogic
  15. 15Email the Site ManagerGmailService
  16. 16Log the DecisionGoogle SheetsService

How it's built

Starts on
A clock
Steps
16, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, Slack
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Gmail, 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?

Plan an afternoon. 16 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 16 steps before you point it at anything that matters.