Monitor multi-city weather with OpenWeatherMap, GPT-4o-mini, and Discord
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs on a schedule (every 6 hours). Along the way it connects Discord and Google Sheets. It also calls api.openai.com over HTTP.
How it runs
Trigger: On a schedule (every 6 hours).
- Set Monitoring Locations (Edit Fields (Set)): sets or maps fields
- Split Locations (Split Out): splits a list into separate items
- Get Current Weather (OpenWeatherMap): uses OpenWeatherMap
- Get 5-Day Forecast (OpenWeatherMap): 5 day forecast
- Get Air Quality Index (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Merge: merges the data from its input branches
- Process and Analyze Data (Code): runs custom JavaScript code
- Aggregate: combines items into one
- AI Weather Analysis (HTTP Request): calls api.openai.com (POST)
…plus 5 more steps. See the full node list below.
Services it uses
HTTP calls to: api.openai.com
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 (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - OpenWeatherMap
n8n-nodes-base.openWeatherMap - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - If
n8n-nodes-base.if - Discord
n8n-nodes-base.discord - Google Sheets
n8n-nodes-base.googleSheets
From the author
Weather Monitoring Across Multiple Cities with OpenWeatherMap, GPT-4o-mini, and Discord This workflow provides an automated, intelligent solution for global weather monitoring. It goes beyond simple data fetching by calculating a custom "Comfort Index" and…