Automate Weather Forecasts via Slack using n8n

Discover how to automate detailed weather forecasts delivery straight to your Slack channel using n8n. This workflow fetches real-time weather data based on user input location and posts a clean forecast to your team, saving you manual lookup time and enhancing team communication.
webhook
slack
httpRequest
Workflow Identifier: 1685
NODES in Use: Webhook, Slack, HTTP Request

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow takes a place name from Slack and sends detailed weather forecasts back to a Slack channel automatically.
It solves the problem of manually searching weather and sharing it with a team by automating all steps.
The output is accurate weather information posted directly to Slack, saving daily time and avoiding delays.


Who should use this workflow

This workflow is for teams that need quick weather updates in Slack.
Project managers or event planners who want to send weather forecasts to their group without manual effort will find it useful.


Tools and services used

  • n8n Workflow Editor: to build and run the automation.
  • Slack OAuth2: posts messages to a Slack channel.
  • Webhook node: receives location input from Slack.
  • OpenStreetMap Nominatim API: converts location text to GPS coordinates.
  • National Weather Service (NWS) API: gets weather grid data and forecasts.

How this workflow works

Inputs

The workflow starts when Slack sends a POST message with a location name to the Webhook node.
The location is in plain text inside the webhook body.

Processing Steps

  1. The OpenStreetMap HTTP Request node takes the location text and asks OpenStreetMap’s API for latitude and longitude.
  2. The NWS HTTP Request node uses that lat/lon to get a grid reference from the National Weather Service.
  3. The NWS1 HTTP Request node then requests the forecast from the grid points data.
  4. The Slack node formats the forecast into a readable message and sends it to a Slack channel.

Output

The result is a nicely formatted weather forecast in the Slack channel, showing temperature, wind, and a brief forecast for each period.


Beginner step-by-step: How to use this workflow in n8n

Importing the Workflow

  1. Download the workflow file using the Download button on the page.
  2. Open n8n editor and click on “Import from File”.
  3. Select the downloaded workflow file and import it.

Configuring Credentials and Settings

  1. Add Slack OAuth2 credentials to allow posting messages.
  2. Update the Slack node’s channel ID to the desired Slack channel.
  3. Set the User-Agent header in HTTP nodes with your email or identifier to meet API requirements.

Testing and Activation

  1. Send a test message with a location to the webhook URL or trigger the workflow to check if it returns weather data.
  2. If the test succeeds, activate the workflow to start automatic operation.

For running n8n on your own, review resources about self-host n8n.


Inputs, processing, and outputs details

Inputs

  • Slack sends a location name in a POST webhook request.

Processing

  • OpenStreetMap converts location text to latitude and longitude.
  • NWS API converts lat/lon to weather grid details.
  • NWS forecast API fetches detailed forecast for that grid.
  • Slack node formats this forecast data into a message.

Outputs

  • Slack channel receives a formatted weather forecast message with temperature, wind speed and direction, and short summary.

Common problems and how to fix them

  • Failed to get data from NWS API:
    Check if latitude and longitude are correct and JSON paths in the NWS HTTP node match the API response.
  • Slack message does not appear:
    Make sure OAuth2 Slack credentials are valid and the Slack channel ID is correct.
  • Webhook does not start the workflow:
    Ensure the webhook is active and its method and path match the Slack message sender.

Customization ideas

  • Change the Slack channel ID in the Slack node to deliver messages where needed.
  • Modify the Slack message format to add humidity or rain chances from the NWS forecast JSON.
  • Add a decision node before OpenStreetMap to check the location text is valid and avoid bad API calls.
  • Use a Schedule Trigger node instead of a webhook to send daily forecasts automatically.

Summary of results

✓ Saves daily time by automating weather lookup.
✓ Avoids delays or errors from manual sharing.
✓ Sends clear, updated weather forecasts directly to Slack.
→ Enables fast, easy weather info for teams before planning outdoor activities.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free