AI agent weather forecast with Open-Meteo n8n
This n8n workflow is a teaching example in which an AI agent answers weather questions using the Open-Meteo forecast API as a tool. It is for people learning how AI agents call tools, and for workshop leaders who want a simple, free data source to demo.
What it does
A chat message reaches a generic AI tool agent with an OpenAI model and memory. One tool turns a city name into a geolocation and another gets the forecast for that location from Open-Meteo, which the agent then explains.
How to use it
Connect an OpenAI credential and chat with the agent; the generic agent node lets you swap in models from other providers.
More in Other and the n8n workflow library.
Full text
Front matter
name: Integrating AI with Open-Meteo API for Enhanced Weather Forecasting
description: Triggered manually or by an app event. Connects . ## Integrating AI with Open-Meteo API for Enhanced Weather Forecasting ## Use case ### Workshop We are using this workflow in our workshops to teach how to use Tools a.k.a functions with artificial intelligence. In this specific case, we will use a generic "AI Agent" node to illustrate that it could use other models from different data providers. ### Enhanced Weather Forecasting In this small example, it's easy to demonstrate how to obtain weather forecast results from the Open-Meteo site t
category: Automation
kind: WorkflowIntegrating AI with Open-Meteo API for Enhanced Weather Forecasting
Triggered manually or by an app event. Connects . ## Integrating AI with Open-Meteo API for Enhanced Weather Forecasting
Use case
Workshop
We are using this workflow in our workshops to teach how to use Tools a.k.a functions with artificial intelligence. In this specific case, we will use a generic "AI Agent" node to illustrate that it could use other models from different data providers.
Enhanced Weather Forecasting
In this small example, it's easy to demonstrate how to obtain weather forecast results from the Open-Meteo site t
Steps
- Manual Trigger (manualTrigger)
- When chat message received (noOp)
- OpenAI Chat Model (noOp)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Generic AI Tool Agent (noOp)
- Chat Memory Buffer (noOp)
- Sticky Note2 (stickyNote)
- Sticky Note5 (stickyNote)
- A tool to get the weather forecast based on geolocation (noOp)
- Sticky Note6 (stickyNote)
- A tool for inputting the city and obtaining geolocation (noOp)
- Sticky Note4 (stickyNote)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Stickynote/1509_Stickynote_Automation_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- AI Agent with charts capabilities using OpenAI Structured Output
- Lmchatopenai Workflow: Outlook, Slack and n8n
- Receive the weather information of any city
- Send daily weather updates via a push notification
- AI Agent : Google calendar assistant using OpenAI
- Production Workflow: Open Weather Map and Webhook (n8n workflow collection) (Openweathermap) (1706)
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.