Templates / Score AQI health risks with Open-Meteo, AirNow, Gemini, WhatsApp, SMS and Slack

Score AQI health risks with Open-Meteo, AirNow, Gemini, WhatsApp, SMS and Slack

Needs changes

by iamvaar ✓ · 8 views · created 2026-07-21 · Document Extraction, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 24 nodes and runs on a schedule (every day at 06:00). Along the way it connects Google Gemini Chat Model, WhatsApp Business Cloud, Twilio and Slack. It also calls air-quality-api.open-meteo.com over HTTP.

How it runs

Trigger: On a schedule (every day at 06:00).

  1. Set City Configuration (Edit Fields (Set)): sets 4 fields: city_name, latitude, longitude…
  2. Fetch Open-Meteo AQI (HTTP Request): calls air-quality-api.open-meteo.com
  3. Normalize Open-Meteo Data (Edit Fields (Set)): sets 4 fields: source_a_aqi, source_a_pm25, source_a_pm10…
  4. Fetch AirNow RSS Data (HTTP Request): calls an HTTP API
  5. Normalize AirNow Data (Code): runs custom JavaScript code
  6. Calculate Weighted Avg AQI (Code): runs custom JavaScript code
  7. Set User Health Profile (Edit Fields (Set)): sets 10 fields: age, has_asthma_copd, is_pregnant…
  8. Prepare Risk Scoring Data (Edit Fields (Set)): sets 19 fields: city_name, final_aqi, aqi_bucket…
  9. Risk Scoring Agent (AI Agent): runs an AI agent, with model: Gemini AI Model; output parser: Parse Risk Output Structure
  10. Map Risk Results (Edit Fields (Set)): sets 11 fields: risk_tier, advisory_text, city_name…

…plus 10 more steps. See the full node list below.

Services it uses

Google Gemini Chat ModelWhatsApp Business CloudTwilioSlack

HTTP calls to: air-quality-api.open-meteo.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Risk Scoring Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Risk Scoring Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

Quick overview Video Explanation: https://youtu.be/5TNw4aaHtHI?si=wLY3Gci9n3vKYNQ This workflow runs daily at 6:30 AM to fetch AQI from Open-Meteo and AirNow, calculates a weighted average AQI, uses Google Gemini to generate a health-specific risk tier and…

Excerpt from iamvaar's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.