Generate personalized weather reports with OpenWeatherMap, Python and GPT-4.1-mini
Ready for 3.0What 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”).
- Fetch Weather Data (HTTP Request): calls api.openweathermap.org
- Process Weather Data (Code): runs custom Python code
- Generate Email Content (Code): runs custom Python code
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- Send a message (Gmail): uses Gmail
Services it uses
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)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - n8n Form Trigger
n8n-nodes-base.formTrigger
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…