OpenWeatherMap
Geocode Postcode with OpenWeatherMap
Turns a UK postcode into latitude and longitude.
Unverified
What the model is told
Find the latitude and longitude of a UK postcode, for use with the weather tools. Pass the postcode as the customer gives it.
Request
GEThttps://api.openweathermap.org/geo/1.0/zip?zip={{postcode}},GB&appid=YOUR_OPENWEATHERMAP_API_KEY
Headers
None.
Parameters
postcode stringA UK postcode.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "4e964686-04bf-48ae-a1e7-f1728b79891b",
"type": "HTTP_REQUEST",
"label": "Geocode Postcode with OpenWeatherMap",
"name": "geocode_postcode_with_openweathermap",
"customName": false,
"description": "Find the latitude and longitude of a UK postcode, for use with the weather tools. Pass the postcode as the customer gives it.",
"parameters": [
{
"name": "postcode",
"type": "string",
"description": "A UK postcode."
}
],
"config": {
"endpoint": {
"method": "GET",
"url": "https://api.openweathermap.org/geo/1.0/zip?zip={{postcode}},GB&appid=YOUR_OPENWEATHERMAP_API_KEY"
},
"headers": [],
"body": null,
"timeout": null
}
}
}IDs are regenerated on every copy.