Automation library · Chat assistants

Automate school lunch allergy checks with Google Sheets

Started by an event in a connected app, and works across Google Drive, Google Sheets and Slack. It hands the judgement calls to OpenRouter. 20 steps, 1 branch: a working afternoon to understand properly.

MediumCalls a model: OpenRouter

20 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 2Model 4Logic 6Service 8

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

  1. 1Manual Trigger (The Initiator)Manual triggerStarts it
  2. 2OpenRouter Chat ModelLm Chat Open RouterModel
  3. 3OpenRouter Chat Model1Lm Chat Open RouterModel
  4. 4On Workflow ErrorError triggerStarts it
  5. 5Read Student Allergy ListGoogle SheetsService
  6. 6Read Monthly MenuGoogle SheetsService
  7. 7Read Teacher ListGoogle SheetsService
  8. 8Generate AI Alert MessageAgentModel
  9. 9Generate AI Menu ReportAgentModel
  10. 10Send Error Alert to SlackSlackService
  11. 11Format Student DataCodeLogic
  12. 12Format Menu DataCodeLogic
  13. 13Format Teacher DataCodeLogic
  14. 14Send AI Slack AlertSlackService
  15. 15Send AI Menu Report to SlackSlackService
  16. 16Merge All DataMergeLogic
  17. 17Check for Allergy MatchIfLogic
  18. 18Compose Basic Alert MessageSetLogic
  19. 19Send Basic Slack AlertSlackService
  20. 20Log Alert to Google DriveGoogle DriveService

How it's built

Starts on
An event in a connected app
Steps
20, with 1 branch
Size
Medium: a working afternoon
Connects to
Google Drive, Google Sheets, Slack
Model
OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Google Drive, Google Sheets and Slack accounts, and a key for OpenRouter. 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 OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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