{
  "name": "Scrape hotel listings with prices from Booking.com using Brightdata & AI",
  "nodes": [
    {
      "id": "25856d57-7004-4e77-b424-267fc8a2136a",
      "name": "parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        272
      ]
    },
    {
      "id": "b1e2690a-2c9d-493a-9ebe-e2e60b10fe75",
      "name": "OpenRouter Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        720,
        -96
      ]
    },
    {
      "id": "53856c53-d3ac-4502-97ce-3dcc1b3c0944",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        -448
      ],
      "parameters": {
        "width": 704,
        "height": 496,
        "content": "# Booking Hotels Scraper\n\nThis workflow automates the extraction and presentation of hotel data from Booking.com. It is triggered by a chat message and uses the Bright Data API to scrape real-time inf"
      }
    },
    {
      "id": "0086bb48-c55d-4470-a0e0-3e03502bdb67",
      "name": "check Snapshot Again",
      "type": "n8n-nodes-base.noOp",
      "position": [
        400,
        384
      ]
    },
    {
      "id": "f025118a-7158-4c7f-8c16-cbd6735e618b",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        192,
        288
      ]
    },
    {
      "id": "f113acb4-d92c-4e28-ab8d-46a760c7a492",
      "name": "check if result ready",
      "type": "n8n-nodes-base.if",
      "position": [
        -176,
        216
      ]
    },
    {
      "id": "971b3f97-6bd8-4632-a369-0574b6ac57dd",
      "name": "Initiate batch extraction from URL",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        -976,
        272
      ]
    },
    {
      "id": "46ac9648-9c1f-4c4b-88c9-64f2bdc95c26",
      "name": "Check the status of a batch extraction",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        -400,
        216
      ]
    },
    {
      "id": "711d58dc-9f61-4050-a587-f967c18f9b36",
      "name": "hotels",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -624,
        288
      ]
    },
    {
      "id": "14ab09c3-230f-4c47-a48e-c98493791c34",
      "name": "Download the snapshot content",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        80,
        -192
      ]
    },
    {
      "id": "80eedc12-1084-4f69-946e-e694635b69cb",
      "name": "clean data",
      "type": "n8n-nodes-base.set",
      "position": [
        272,
        -320
      ]
    },
    {
      "id": "c84f4df4-bb8e-42b3-8072-08a7d8a52b3e",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -1424,
        272
      ]
    },
    {
      "id": "37667062-07ee-41eb-9358-5daa9c34be5f",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        496,
        -320
      ]
    },
    {
      "id": "c62e2982-00fb-43e1-9320-820ae7e5101c",
      "name": "Human Friendly Results",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        720,
        -320
      ]
    },
    {
      "id": "b8f16cb1-bf89-4c34-b9c1-c3a0422ac940",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        864,
        -96
      ]
    },
    {
      "id": "2e4ba580-7546-4360-b18b-99dc7c60fd83",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        128
      ],
      "parameters": {
        "width": 752,
        "height": 320,
        "content": "## Start\n\nAsk for City to scrape\nSend Hotel listing Request"
      }
    },
    {
      "id": "08e27b2b-a6b9-492b-92c1-79b8bcad2271",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        112
      ],
      "parameters": {
        "width": 1264,
        "height": 496,
        "content": "## Wait for results\n\nIt takes time to get result (scrap, bypass captchas...)"
      }
    },
    {
      "id": "d84fd647-a202-4158-a156-c04504143a44",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -416
      ],
      "parameters": {
        "width": 1136,
        "height": 496,
        "content": "## Process Hotel listing\nGet Hotel listing (if not ready, loop)\nProcess it in a Fiendly way"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "check Snapshot Again",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "hotels": {
      "main": [
        [],
        [
          {
            "node": "Check the status of a batch extraction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Human Friendly Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "Human Friendly Results",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "clean data": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "parameters": {
      "main": [
        [
          {
            "node": "Initiate batch extraction from URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check Snapshot Again": {
      "main": [
        [
          {
            "node": "hotels",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check if result ready": {
      "main": [
        [
          {
            "node": "Download the snapshot content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Human Friendly Results": {
      "main": [
        []
      ]
    },
    "OpenRouter Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Human Friendly Results",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download the snapshot content": {
      "main": [
        [
          {
            "node": "clean data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Initiate batch extraction from URL": {
      "main": [
        [
          {
            "node": "hotels",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check the status of a batch extraction": {
      "main": [
        [
          {
            "node": "check if result ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}