Skip to main content

Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail

Workflow preview

Workflow preview
100%
Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates weather forecast delivery by collecting city names, fetching 5 day forecasts from OpenWeatherMap, and generating professionally formatted HTML emails using GPT 4. The AI cre...

Best for

  • Personal Productivity automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.gmail, n8n-nodes-base.openweathermap, n8n-nodes-base.set, n8n-nodes-base.merge, n8n-nodes-base.httprequest, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.openai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail
Workflow name
Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail

Overview

This workflow automates weather forecast delivery by collecting city names, fetching 5-day forecasts from OpenWeatherMap, and generating professionally formatted HTML emails using GPT-4. The AI creates condition-based color-coded reports with safety precautions and sends them via Gmail.

How It Works

A form trigger collects up to three city names, which are geocoded via OpenWeatherMap API to retrieve coordinates and 5-day forecasts.

JavaScript nodes process the raw weather data into daily summaries, calculating temperature ranges, precipitation levels, wind speeds, and dominant weather conditions.

GPT-4 then generates professionally formatted HTML emails with condition-based color coding: The AI intelligently adds contextual safety warnings for heavy rain, extreme heat, high winds, and thunderstorms.

A validation node ensures proper JSON formatting before Gmail sends the final briefing.

Use Cases

• Field ops & construction crew briefings • Travel planning and itinerary preparation • Outdoor event planning & coordination • Logistics and transportation route planning • Real estate property viewing scheduling • Sports and recreational activity planning

Setup Requirements

  1. OpenWeatherMap API credentials
  2. OpenAI API key
  3. Gmail OAuth2 authentication

Need Help?

Join the Discord or ask in the Forum! README file available at https://tinyurl.com/MulticityWeatherForecast

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 - JS - Validate JSON from LLM

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

Block 2 - GMAIL - Send Weather Briefing

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 3 - JS - Bundle Cities for LLM

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

Block 4 - JS - Build Daily Summaries (5 days)

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

Block 5 - OpenWeatherMap (OWM) - 5 Day Forecast (by City)

Type / Role
n8n-nodes-base.openWeatherMap - openWeatherMap
Config choices
Version 1

Block 6 - JS - Pick Lat/Lon

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

Block 7 - SET - Carry Asked City to Forecast

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - MERGE - Pair Cities

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 9 - HTTP - OWM Geocoding

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

Block 10 - JS - Normalize City Inputs

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

Block 11 - TRIGGER - Input City Names

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

Block 12 - LLM - AI Weather Briefing Composer

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail
Complexity advanced
Nodes 20
Categories Personal Productivity, Multimodal AI
Author Sridevi Edupuganti
Published 19 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9909/9909.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 Send multi-city weather forecasts with AI-enhanced formatting from OpenWeatherMap to Gmail do?

This workflow automates weather forecast delivery by collecting city names, fetching 5 day forecasts from OpenWeatherMap, and generating professionally formatted HTML emails using GPT 4. The AI cre...

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, Multimodal AI use case.