{
  "name": "Telegram bot for finding top-rated restaurants with Google Maps via SerpAPI",
  "nodes": [
    {
      "id": "f8ce8570-13f0-4a6f-9b45-6ae95d011e0a",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -640,
        -80
      ]
    },
    {
      "id": "03d40b05-8552-43d5-8daa-bb7bf0755e31",
      "name": "Parse Area",
      "type": "n8n-nodes-base.function",
      "position": [
        -260,
        -80
      ]
    },
    {
      "id": "91bf1506-aa76-4db4-8cbf-aa7cc17e3c91",
      "name": "Find Restaurants (SerpAPI)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        420,
        -80
      ]
    },
    {
      "id": "0f1dd436-0472-47fa-af80-6ba706c6668f",
      "name": "Geocode (Nominatim)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        80,
        -80
      ]
    },
    {
      "id": "b201467a-20ad-465a-87d2-3040ca7f8c18",
      "name": "Format Reply",
      "type": "n8n-nodes-base.function",
      "position": [
        760,
        -80
      ]
    },
    {
      "id": "7eeb9f6c-b01e-4201-a50e-9879d5808577",
      "name": "Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1100,
        -80
      ]
    },
    {
      "id": "694181f1-fa81-491e-9961-39a6714a2d4f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -160
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "## Parse Area\nProcess Input"
      }
    },
    {
      "id": "599a57fb-977c-42c6-867d-d9fe96665095",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -160
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "## Geocode\nConvert area to map point"
      }
    },
    {
      "id": "20c03a86-19fe-4202-ae35-3fdd3c6cad20",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        -160
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "## Search\nFind Top 5 rated resturants"
      }
    },
    {
      "id": "b4e32a1d-fbb7-4e8b-ab1f-7c8cbeb82987",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        -160
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "## Response\nPrepare response"
      }
    },
    {
      "id": "57a0f6ff-af36-4620-ba1c-a0ae0c6bdb0a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -160
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "## Respond\nSend report to telegram"
      }
    },
    {
      "id": "bbe6544a-0f7e-41a0-86ae-5a9cfed7947d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -300
      ],
      "parameters": {
        "width": 320,
        "height": 120,
        "content": "## Prerequisites \n**SerpAPI**: api key\n**Countery Name**: eg.. Egypt"
      }
    }
  ],
  "connections": {
    "Parse Area": {
      "main": [
        [
          {
            "node": "Geocode (Nominatim)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Reply": {
      "main": [
        [
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Parse Area",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Geocode (Nominatim)": {
      "main": [
        [
          {
            "node": "Find Restaurants (SerpAPI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Restaurants (SerpAPI)": {
      "main": [
        [
          {
            "node": "Format Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}