Templates / Generate personalized weather reports with OpenWeatherMap, Python and GPT-4.1-mini

Generate personalized weather reports with OpenWeatherMap, Python and GPT-4.1-mini

Ready for 3.0

by Moe Ahad ✓ · 1,927 views · created 2025-07-25 · 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 7 nodes and runs when someone submits an n8n form (“Enter a City”). Along the way it connects Gmail and OpenAI Chat Model. It also calls api.openweathermap.org over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Enter a City”).

  1. Fetch Weather Data (HTTP Request): calls api.openweathermap.org
  2. Process Weather Data (Code): runs custom Python code
  3. Generate Email Content (Code): runs custom Python code
  4. AI Agent: runs an AI agent, with model: OpenAI Chat Model
  5. Send a message (Gmail): uses Gmail

Services it uses

GmailOpenAI Chat Model

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 (6)

From the author

How it works - User enters name of a city for which most current weather information will be gathered - Custom Python code processes the weather data and generates a custom email about the weather - AI agent further customizes the email and add a related joke…

Excerpt from Moe Ahad'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.