Integrating AI with Open-Meteo API for Weather Forecasting

n8n AI Education Product

Contributed by Sabrina Ramonov 🍄. From the community directory at agents.sabrina.dev, republished with permission and full credit.

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 to accurately display the upcoming days. This can be used to plan travel decisions, for example.

What this workflow does

We will make an HTTP request to find out the geographic coordinates of a city. Then, we will make other HTTP requests to discover the weather for the upcoming days.

In this workshop, we demonstrate that the AI will be able to determine which tool to call first, it will first call the geolocation tool and then the weather forecast tool. All of this within a single client conversation call.

Setup

Insert an OpenAI Key and activate the workflow.

by Davi Saranszky Mesquita

Tools used: OpenAI, Open-Meteo, AI Agent

Download the workflow template (JSON)

Original tutorial

Want this running in your business? KOBA42 builds and operates automations like this one.