Automation library · Chat assistants

Score AQI health risks with Open-Meteo and AirNow

Started by a clock, and works across Slack, Twilio and WhatsApp. It hands the judgement calls to Gemini. 24 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

24 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 11Service 9

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

  1. 1Gemini AI ModelLm Chat Google GeminiModel
  2. 2Parse Risk Output StructureOutput Parser StructuredModel
  3. 3Every Day at 630 AMSchedule triggerStarts it
  4. 4Risk Scoring AgentAgentModel
  5. 5Set City ConfigurationSetLogic
  6. 6Map Risk ResultsSetLogic
  7. 7Fetch Open-Meteo AQIHttp RequestService
  8. 8Check Duplicate Alert StatusCodeLogic
  9. 9Normalize Open-Meteo DataSetLogic
  10. 10If Alert NeededIfLogic
  11. 11Fetch AirNow RSS DataHttp RequestService
  12. 12Route by SeveritySwitchLogic
  13. 13Do Nothing on DuplicateNo OpLogic
  14. 14Normalize AirNow DataCodeLogic
  15. 15Send WhatsApp Moderate AlertWhats AppService
  16. 16Send WhatsApp Severe AlertWhats AppService
  17. 17Send WhatsApp Hazardous AlertWhats AppService
  18. 18Calculate Weighted Avg AQICodeLogic
  19. 19Send Twilio SMS Severe AlertTwilioService
  20. 20Send Twilio SMS Hazardous AlertTwilioService
  21. 21Set User Health ProfileSetLogic
  22. 22Post Severe Alert to SlackSlackService
  23. 23Post Urgent Alert to SlackSlackService
  24. 24Prepare Risk Scoring DataSetLogic

How it's built

Starts on
A clock
Steps
24, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Slack, Twilio, WhatsApp
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Slack, Twilio and WhatsApp 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 24 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 24 steps before you point it at anything that matters.