OpenWeatherMap

Get OpenWeatherMap 5 Day Forecast

Gets a 5 day forecast in 3 hour steps.

Unverified

What the model is told

Get the weather forecast for a place using latitude and longitude. The list is in 3 hour steps. Ask for as few steps as you need (8 steps is 24 hours). Summarise it in plain words, with temperatures in Celsius.

Request

GEThttps://api.openweathermap.org/data/2.5/forecast?lat={{latitude}}&lon={{longitude}}&cnt={{steps}}&units=metric&appid=YOUR_OPENWEATHERMAP_API_KEY

Headers

None.

Parameters

  • latitude stringLatitude in decimal degrees. Get it from the geocoding tool.
  • longitude stringLongitude in decimal degrees. Get it from the geocoding tool.
  • steps numberHow many 3 hour steps to return, from 1 to 40.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "7da482a7-bc7f-4148-955f-fa0d1f96b8c0",
    "type": "HTTP_REQUEST",
    "label": "Get OpenWeatherMap 5 Day Forecast",
    "name": "get_openweathermap_5_day_forecast",
    "customName": false,
    "description": "Get the weather forecast for a place using latitude and longitude. The list is in 3 hour steps. Ask for as few steps as you need (8 steps is 24 hours). Summarise it in plain words, with temperatures in Celsius.",
    "parameters": [
      {
        "name": "latitude",
        "type": "string",
        "description": "Latitude in decimal degrees. Get it from the geocoding tool."
      },
      {
        "name": "longitude",
        "type": "string",
        "description": "Longitude in decimal degrees. Get it from the geocoding tool."
      },
      {
        "name": "steps",
        "type": "number",
        "description": "How many 3 hour steps to return, from 1 to 40."
      }
    ],
    "config": {
      "endpoint": {
        "method": "GET",
        "url": "https://api.openweathermap.org/data/2.5/forecast?lat={{latitude}}&lon={{longitude}}&cnt={{steps}}&units=metric&appid=YOUR_OPENWEATHERMAP_API_KEY"
      },
      "headers": [],
      "body": null,
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.