Real Example: Extracting Data from a Weather API
Open-Meteo returns:
{
"latitude": 51.5074,
"longitude": -0.1278,
"current": {
"time": "2024-03-08T14:30",
"temperature_2m": 12.5,
"relative_humidity_2m": 72,
"weather_code": 1,
"wind_speed_10m": 18.5
}
}
Your workflow steps might reference:
- current.temperature_2m → 12.5
- current.relative_humidity_2m → 72
- current.wind_speed_10m → 18.5
Then you send a Slack message: London weather: {{current.temperature_2m}}°C, {{current.relative_humidity_2m}}% humidity, {{current.wind_speed_10m}} km/h wind