{
  "name": "Google Play review intelligence with Bright Data & Telegram alerts",
  "nodes": [
    {
      "id": "81566f57-58b6-4876-ad16-3b585bbf75d4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        60
      ],
      "parameters": {
        "width": 360,
        "height": 260,
        "content": "Evaluates if the dataset scraping process is complete (status: \"ready\"). Loops if not."
      }
    },
    {
      "id": "5c6189f3-3e89-4dc0-84f6-6641c213bc8c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -940,
        20
      ],
      "parameters": {
        "width": 300,
        "height": 300,
        "content": "Pauses the workflow for 45 seconds before checking the status again — used for polling Bright Data API.\n\n"
      }
    },
    {
      "id": "82192678-1180-4491-a629-926a566f0c47",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1260,
        20
      ],
      "parameters": {
        "width": 280,
        "height": 280,
        "content": "Checks the current processing status of the dataset request using the snapshot ID."
      }
    },
    {
      "id": "a39574eb-692e-45f9-ba8a-b18ca5b8bd6c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1580,
        20
      ],
      "parameters": {
        "width": 280,
        "height": 280,
        "content": "Sends a POST request to Bright Data API to start scraping reviews and app details based on user input.\n\n"
      }
    },
    {
      "id": "9d64ea9a-bd63-4231-b459-90376f8b4eb6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1900,
        20
      ],
      "parameters": {
        "width": 280,
        "height": 280,
        "content": "Triggers the workflow with user input — takes Google Play Store URL and number of reviews to fetch.\n\n"
      }
    },
    {
      "id": "656204ee-b437-4e61-8a73-745365ec45c2",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        40
      ],
      "parameters": {
        "width": 320,
        "height": 280,
        "content": "Retrieves the final scraped data (reviews and app info) once the dataset is ready.\n\n"
      }
    },
    {
      "id": "8489a0c1-ff08-4293-b9a1-9d60840b2a5d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -220
      ],
      "parameters": {
        "width": 300,
        "height": 280,
        "content": "Appends selected app and review data into a connected Google Sheet for storage.\n\n"
      }
    },
    {
      "id": "c1cc4ad6-fd24-4198-ad99-e6cb15f038d8",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        120
      ],
      "parameters": {
        "width": 280,
        "height": 320,
        "content": "Filters out reviews with rating below 4 to flag low-performing apps."
      }
    },
    {
      "id": "1f8ee417-cef0-4496-aa6c-d89fd798dbb6",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        120
      ],
      "parameters": {
        "width": 300,
        "height": 320,
        "content": "Sends a Telegram alert if the app has low ratings, indicating poor performance."
      }
    },
    {
      "id": "b275d814-2941-455e-b256-710e14569221",
      "name": "✅ Trigger Input Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1800,
        120
      ]
    },
    {
      "id": "afcfa8b5-c5bb-4636-88dc-7c8ada2b7aa4",
      "name": "🚀 Start Scraping Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1500,
        120
      ]
    },
    {
      "id": "31fe5e15-7520-42a1-a818-0391b156ea16",
      "name": "🔄 Check Scrape Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1160,
        120
      ]
    },
    {
      "id": "de081ff7-c9a0-43e1-8748-976e7eff0490",
      "name": "⏱️ Wait for Response 45 sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        -840,
        120
      ]
    },
    {
      "id": "68fcadf3-b117-4dd3-baf5-bc1c904c168a",
      "name": "🧩 Verify Completion",
      "type": "n8n-nodes-base.if",
      "position": [
        -460,
        120
      ]
    },
    {
      "id": "4adb27d2-b056-4a72-aefe-b7482f55d6ee",
      "name": "📥 Fetch Scraped Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -40,
        120
      ]
    },
    {
      "id": "b81d03b8-6d18-4539-be74-3beb853bdf35",
      "name": "📊 Save to Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        380,
        -120
      ]
    },
    {
      "id": "0a0c0cbb-694d-47b8-80ee-235df0a9a426",
      "name": "⚠️ Check Low Ratings",
      "type": "n8n-nodes-base.if",
      "position": [
        360,
        240
      ]
    },
    {
      "id": "9508b6fa-f1d5-4ca9-8ca7-8e4a0a18f638",
      "name": "📣 Send Alert to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        680,
        260
      ]
    }
  ],
  "connections": {
    "✅ Trigger Input Form": {
      "main": [
        [
          {
            "node": "🚀 Start Scraping Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧩 Verify Completion": {
      "main": [
        [
          {
            "node": "📥 Fetch Scraped Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🔄 Check Scrape Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📥 Fetch Scraped Data": {
      "main": [
        [
          {
            "node": "📊 Save to Google Sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "⚠️ Check Low Ratings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚠️ Check Low Ratings": {
      "main": [
        [],
        [
          {
            "node": "📣 Send Alert to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Check Scrape Status": {
      "main": [
        [
          {
            "node": "⏱️ Wait for Response 45 sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🚀 Start Scraping Request": {
      "main": [
        [
          {
            "node": "🔄 Check Scrape Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏱️ Wait for Response 45 sec": {
      "main": [
        [
          {
            "node": "🧩 Verify Completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}