OpenWeatherMap
Get OpenWeatherMap Current Weather
Gets current weather for a latitude and longitude.
Unverified
What the model is told
Get the current weather at a place, using latitude and longitude. If you only have a place name, use the geocoding tool first. Report temperature in Celsius (main.temp), the conditions (weather[0].description) and wind, in plain words.
Request
GEThttps://api.openweathermap.org/data/2.5/weather?lat={{latitude}}&lon={{longitude}}&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.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "ed825acf-5212-4a20-aa1a-9b1e2eef7c9d",
"type": "HTTP_REQUEST",
"label": "Get OpenWeatherMap Current Weather",
"name": "get_openweathermap_current_weather",
"customName": false,
"description": "Get the current weather at a place, using latitude and longitude. If you only have a place name, use the geocoding tool first. Report temperature in Celsius (main.temp), the conditions (weather[0].description) and wind, in plain words.",
"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."
}
],
"config": {
"endpoint": {
"method": "GET",
"url": "https://api.openweathermap.org/data/2.5/weather?lat={{latitude}}&lon={{longitude}}&units=metric&appid=YOUR_OPENWEATHERMAP_API_KEY"
},
"headers": [],
"body": null,
"timeout": null
}
}
}IDs are regenerated on every copy.