Templates / Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail

Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail

Ready for 3.0

by Sridevi Edupuganti ✓ · 3,122 views · created 2025-10-19 · Personal Productivity, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs when someone submits an n8n form (“Weather predictor demo task”). Along the way it connects Gmail and OpenAI. It also calls api.openweathermap.org over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Weather predictor demo task”).

  1. JS - Normalize City Inputs (Code): runs custom JavaScript code
  2. HTTP - OWM Geocoding (HTTP Request): calls api.openweathermap.org
  3. Merge: merges the data from its input branches
  4. JS - Pick Lat/Lon (Code): runs custom JavaScript code
  5. SET - Carry Asked City to Forecast (Edit Fields (Set)): sets 1 field: asked_city
  6. OpenWeatherMap: 5 day forecast
  7. JS - Build Daily Summaries (5 days) (Code): runs custom JavaScript code
  8. JS - Bundle Cities for LLM (Code): runs custom JavaScript code
  9. LLM - AI Weather Briefing Composer (OpenAI): uses OpenAI
  10. JS - Validate JSON from LLM (Code): runs custom JavaScript code

…plus 1 more step. See the full node list below.

Services it uses

GmailOpenAI

HTTP calls to: api.openweathermap.org

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Overview This workflow automates weather forecast delivery by collecting city names, fetching 5-day forecasts from OpenWeatherMap, and generating professionally formatted HTML emails using GPT-4. The AI creates condition-based color-coded reports with safety…

Excerpt from Sridevi Edupuganti'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.