OpenWeatherMap

Geocode Place with OpenWeatherMap

Turns a place name into latitude and longitude.

Unverified

What the model is told

Find the latitude and longitude of a place from its name, for use with the weather tools. Pass the town or city and the country code, for example London,GB. Use the first result unless the customer says otherwise.

Request

GEThttps://api.openweathermap.org/geo/1.0/direct?q={{place}}&limit=3&appid=YOUR_OPENWEATHERMAP_API_KEY

Headers

None.

Parameters

  • place stringTown or city, then a comma and the ISO 3166 country code.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "30609bba-cd42-4799-aa8b-f623717a9670",
    "type": "HTTP_REQUEST",
    "label": "Geocode Place with OpenWeatherMap",
    "name": "geocode_place_with_openweathermap",
    "customName": false,
    "description": "Find the latitude and longitude of a place from its name, for use with the weather tools. Pass the town or city and the country code, for example London,GB. Use the first result unless the customer says otherwise.",
    "parameters": [
      {
        "name": "place",
        "type": "string",
        "description": "Town or city, then a comma and the ISO 3166 country code."
      }
    ],
    "config": {
      "endpoint": {
        "method": "GET",
        "url": "https://api.openweathermap.org/geo/1.0/direct?q={{place}}&limit=3&appid=YOUR_OPENWEATHERMAP_API_KEY"
      },
      "headers": [],
      "body": null,
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.