Back to all tools
Free / no key

Weather

Useful for service businesses and outdoor appointments. Pair with the geocode tool when the customer gives an address instead of coordinates.

What this tool does

For businesses that work outdoors, the weather changes plans. This tool lets your agent check the current forecast for a location using the free Open-Meteo API, then answer questions such as whether a job can go ahead today. It needs latitude and longitude, so pair it with the geocode tool when a customer gives an address. Your agent can then suggest a better day or reassure the customer, instead of leaving them to call the office.

Example conversation

Customer

Is the roof repair still on for this afternoon? It looks like rain here in Leeds.

Tool callget_weather

latitude: 53.80, longitude: -1.55

AI agent

Let me check. Leeds shows light rain until about 2 PM and clearer skies after that.

Customer

So you will still come?

AI agent

Your slot is at 3 PM, after the rain is expected to clear. I will let the team know you asked, and they will message you if anything changes.

Example only. Tool calls are shown so you can see when the agent uses this template. Your agent’s wording depends on your prompt and business information.

Who uses it

  • Roofing, landscaping and painting companies confirming whether a job can go ahead.
  • Tour operators and travel agencies answering questions about conditions on the day.
  • Event and outdoor fitness businesses reassuring customers before a booking.

Setup

  1. Open Create agent or Edit agent and add a custom tool.
  2. Copy the fields below into the form. No API key is required.
  3. In your prompt, tell the agent to geocode an address first when needed, then call get_weather with latitude and longitude.

Copy into custom tool form

Copy each value into the matching field when you add a custom tool on the create or edit agent page. Replace any YOUR_… placeholders with your real credentials.

Tool name

get_weather

Description

Get the current weather for a location using latitude and longitude. Use when the customer asks about weather, outdoor conditions, or whether service can proceed today.

Endpoint URL

Paste into Endpoint URL (https:// is added automatically).

api.open-meteo.com/v1/forecast

HTTP method

GET

Tool inputs (all)

1. latitude (number) Latitude of the location (e.g. 40.71) 2. longitude (number) Longitude of the location (e.g. -74.01)

Tool input: latitude

Input name

latitude

Input type

number

Input description

Latitude of the location (e.g. 40.71)

Reference value

Use this as the request query or body value and choose “Tool input” in the form.

{{latitude}}

Tool input: longitude

Input name

longitude

Input type

number

Input description

Longitude of the location (e.g. -74.01)

Reference value

Use this as the request query or body value and choose “Tool input” in the form.

{{longitude}}

Request query (all)

latitude: {{latitude}} longitude: {{longitude}} current: temperature_2m,weather_code,wind_speed_10m,relative_humidity_2m

Field name

latitude

Field value

{{latitude}}

Field name

longitude

Field value

{{longitude}}

Field name

current

Field value

temperature_2m,weather_code,wind_speed_10m,relative_humidity_2m