AI-generated weather analysis with NWS alerts, radar imagery, and Home Assistant
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI, Home Assistant and OpenAI Chat Model. It also calls api.weather.gov and radar.weather.gov over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Get NWS Alerts (HTTP Request): calls api.weather.gov
- Split Out: splits a list into separate items
- Remove Irrelevant Fields (Edit Fields (Set)): sets 11 fields: id, properties.areaDesc, properties.effective…
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Aggregate: combines items into one
- Code: runs custom JavaScript code
- Get Local Weather Precipication (Home Assistant): work with state
…plus 7 more steps. See the full node list below.
Services it uses
HTTP calls to: api.weather.gov, radar.weather.gov
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 (12)
- Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - OpenAI
@n8n/n8n-nodes-langchain.openAi - Home Assistant
n8n-nodes-base.homeAssistant - Merge
n8n-nodes-base.merge - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - Summarization Chain
@n8n/n8n-nodes-langchain.chainSummarization
From the author
Overview This n8n template demonstrates how you can generate an AI-produced weather analysis of your local radar loop and home assistant precipitation sensor(s) to keep your family informed of National Weather Service Alerts. With as crazy as things have been…