> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatbotplatform.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Weather

> Let your bot's agent answer weather questions with current conditions and forecasts from Open-Meteo

Turn on **Weather** and your bot's agent can answer questions like *"Will it rain in Austin this afternoon?"* or *"Compare the weekend in 78701, Denver and Paris"* with real data instead of guesses. The data comes from [Open-Meteo](https://open-meteo.com).

Weather works with **AI agent** integrations (agent loops), which call tools before they answer. A custom webhook integration receives the Weather server in its payload's MCP server list and can call it the same way.

## What the agent can do

Turning Weather on adds a **Weather** MCP server with two tools.

| Tool | What it does |
| - | - |
| `get-forecast` | Current conditions plus a daily forecast (1 to 16 days, 7 by default) for up to **10 places in one call**. It can add an hour-by-hour block for the next 1 to 48 hours, which the agent uses for "this afternoon" or "tonight" questions. Each condition has a plain-text description such as "Slight rain". |
| `search-locations` | Looks up to 10 places and returns each one's coordinates. If several places share a name, it also returns the alternatives. The agent uses it when a location is unclear, and asks the person which place they mean instead of picking one. |

Both tools only read data. The agent is told to call `get-forecast` whenever someone asks about the weather, temperature, rain, wind, sunrise or sunset, or what to wear or plan for.

## Turn it on

**1. Open the Behavior page**

In the dashboard, open your bot and go to **Behavior**.

**2. Switch on Weather**

Under **Agent Context**, turn on **Weather**. The switch is **off by default**.

**3. Add an API key (recommended)**

Paste an Open-Meteo API key into the field below the switch, or set one for the whole team (see [API keys](#api-keys)). Then click **Save Settings**.

The next reply already has the Weather tools. When you turn the switch off, the tools stop working right away: the server is removed from new replies, and any call that still reaches it is refused.

## API keys

The Weather server picks one Open-Meteo key per bot, in this order:

1. **This bot's key**: **Behavior → Open-Meteo API key (this bot)**. It overrides the team key.
2. **The team key**: **Agent Loops → Settings → Open-Meteo (weather)**. Every bot in the team that has no key of its own uses it.
3. **The free tier**: with no key at all, the bot uses Open-Meteo's free endpoint.

The Behavior page shows **Key in effect**: this bot's key, the team key, or Open-Meteo's free tier.

> [!WARNING]
>
> **Open-Meteo's free tier is for non-commercial use only** and is rate limited. If your bot serves customers or is part of a commercial product, get an API key from [Open-Meteo pricing](https://open-meteo.com/en/pricing).

Managing keys:

* **Test key** checks the key you typed, without saving it. If the field is empty, it checks the saved key, or the free tier when there is no key. The result says whether the key works, was refused, or is rate limited.
* An empty field keeps the saved key. To remove a key, click **Clear key**.
* Saved keys are shown masked. Only team owners and members whose role can update the team can change them.
* The key stays on our servers. It is never sent to your integration, to the model, or in the webhook payload.

## Locations

The agent passes locations as text, and the Weather server looks them up for you. One call can mix any of these formats:

| Format | Example | How it is read |
| - | - | - |
| Place name | `Springfield` | The most populous match. Other places with that name come back as alternatives |
| City and US state | `Austin tx`, `Austin, Texas`, `Springfield, IL, USA` | Limited to that state. A two-letter code that is both a state and a country means the **state**: `Austin, CA` is California. Write the country name to mean the country |
| City and country | `Paris, France`, `Paris FR`, `London UK` | Limited to that country (English name, common alias or ISO code) |
| US zip code | `78701`, `78701-1234` | The place that zip code belongs to |
| Coordinates | `{ "latitude": 30.27, "longitude": -97.74, "label": "Office" }` | Used as given. The optional label names the place in the answer |
| A list | `["Austin tx", "78701", "Paris, France"]` | Up to 10 places in total, answered with one forecast request |

When one place can't be found, that place gets an error and the others are still answered. Each place in the answer shows what it matched (`resolved`), so the agent can say *"Austin, Texas"* and point out other places with the same name.

## Time zones

Every time in the answer, including the current local time, the hourly rows, the days, and sunrise and sunset, uses one clock:

* **`auto`** (default): each place uses its own local time.
* **An IANA time zone name** such as `America/Chicago` or `Europe/Paris`: every place is put on that clock. The agent uses this to compare places for someone in their own time zone ("Paris at 3 pm *your* time").

Each place also has its zone abbreviation, its UTC offset and `local_time_now`. An invalid time zone is refused before any weather is fetched.

## Units

| Units | Temperature | Wind | Precipitation |
| - | - | - | - |
| `metric` (default) | °C | km/h | mm |
| `imperial` | °F | mph | inch |

The agent picks units from the person's locale: `imperial` for the United States and its territories, Liberia and Myanmar, and `metric` everywhere else. You can ask for the other units in chat ("in Celsius, please").

## Error messages

The agent gets these messages and passes them on in its own words.

| Situation | Message |
| - | - |
| Weather is off for the bot | *Weather is not enabled for this bot. Contact the bot administrator to enable this feature.* |
| A place could not be found | *No place matched "…". Try the city name with its state or country, for example "Austin, TX" or "Paris, France".* The other places are still answered |
| More than 10 places | *At most 10 places fit in one call; N were given. Split them into several calls.* |
| Invalid time zone | *"…" is not a timezone. Use an IANA name such as "America/Chicago" or "Europe/Paris", or "auto" for each place's own local time.* |
| Free tier rate limited | *The free Open-Meteo tier is rate limited right now. Try again in a minute. For steady use, an admin can add an Open-Meteo API key on the bot's Behavior page or in the team settings.* |
| Key refused | *Open-Meteo refused the API key. Check the Open-Meteo key in the bot or team settings.* |
| Open-Meteo unreachable or failing | *The weather service (Open-Meteo) could not be reached. Try again in a moment.* |

## Caching

A looked-up place is reused for 30 days. A forecast for the same places, options and key is reused for 10 minutes, so repeated questions answer quickly without using up your Open-Meteo quota.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.