{
  "name": "ATLAS Academy lab: city info",
  "nodes": [
    { "name": "Webhook", "type": "n8n-nodes-base.webhook",
      "typeVersion": 2, "position": [0, 0],
      "parameters": { "httpMethod": "POST", "path": "city-info" } },
    { "name": "HTTP Request", "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2, "position": [240, 0],
      "parameters": { "method": "GET",
        "url": "https://geocoding-api.open-meteo.com/v1/search",
        "sendQuery": true, "queryParameters": { "parameters": [
          { "name": "name", "value": "={{ $json.body.city }}" } ] } } },
    { "name": "Edit Fields", "type": "n8n-nodes-base.set",
      "typeVersion": 3.4, "position": [480, 0],
      "parameters": { "assignments": { "assignments": [
          { "id": "lab1-text", "name": "text",
            "value": "={{ $json.results[0].name }} is in {{ $json.results[0].country }}",
            "type": "string" } ] },
        "options": {} } }
  ],
  "connections": {
    "Webhook": { "main": [[{ "node": "HTTP Request", "type": "main", "index": 0 }]] },
    "HTTP Request": { "main": [[{ "node": "Edit Fields", "type": "main", "index": 0 }]] }
  }
}
