Skip to main content

National Weather Service 7-day forecast in Slack

Workflow preview

Workflow preview
100%
National Weather Service 7-day forecast in Slack preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Weather via Slack ️ Overview This workflow provides real time weather updates via Slack using a custom Slack command : Users can type this command in Slack (e.g., ), and the workflow will fetch...

Best for

  • Personal Productivity automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.slack, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Alex Kim.

Original n8n.io source

1.1 Workflow description

Title
National Weather Service 7-day forecast in Slack
Workflow name
National Weather Service 7-day forecast in Slack

Weather via Slack 🌦️💬

Overview

This workflow provides real-time weather updates via Slack using a custom Slack command:
/weather [cityname]

Users can type this command in Slack (e.g., /weather New York), and the workflow will fetch and post the latest forecast, including temperature, wind conditions, and a short weather summary.

While this workflow is designed for Slack, users can modify it to send weather updates via email, Discord, Microsoft Teams, or any other communication platform.

How It Works

  1. Webhook Trigger – The workflow is triggered when a user runs /weather [cityname] in Slack.
  2. Geocoding with OpenStreetMap – The city name is converted into latitude and longitude coordinates.
  3. Weather Data from NOAA – The coordinates are used to retrieve detailed weather data from the National Weather Service (NWS) API.
  4. Formatted Weather Report – The workflow extracts relevant weather details, such as:
    • Temperature (°F/°C)
    • Wind speed and direction
    • Short forecast summary
  5. Slack Notification – The weather forecast is posted back to the Slack channel in a structured format.

Requirements

  • A custom Slack app with:
    • The ability to create a Slash Command (/weather)
    • OAuth permissions to post messages in Slack
  • An n8n instance to host and execute the workflow

Customization

  • Replace Slack messaging with email, Discord, Microsoft Teams, Telegram, or another service.
  • Modify the weather data format for different output preferences.
  • Set up scheduled weather updates for specific locations.

Use Cases

  • Instantly check the weather for any location directly in Slack.
  • Automate weather reports for team members or projects.
  • Useful for remote teams, outdoor event planning, or general weather tracking.

Setup Instructions

  1. Create a custom Slack app:
    • Go to api.slack.com/apps and create a new app.
    • Add a Slash Command (/weather) with the webhook URL from n8n.
    • Enable OAuth scopes for sending messages.
  2. Deploy the webhook – Ensure it can receive and process Slack commands.
  3. Run the workflow – Type /weather [cityname] in Slack and receive instant weather updates.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 3 - OpenStreetMap

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - NWS

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - NWS1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow National Weather Service 7-day forecast in Slack
Complexity intermediate
Nodes 5
Categories Personal Productivity
Author Alex Kim
Published 19 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2947/2947.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does National Weather Service 7-day forecast in Slack do?

Weather via Slack ️ Overview This workflow provides real time weather updates via Slack using a custom Slack command : Users can type this command in Slack (e.g., ), and the workflow will fetch...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity use case.