{
  "name": "Track Udemy course discounts with Airtop, Google Sheets and Telegram alerts",
  "nodes": [
    {
      "id": "16da12c1-464c-4cde-ab5f-2f4c25601cf0",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1008,
        2000
      ]
    },
    {
      "id": "7b74a669-ea51-4c33-98fa-4673845a5237",
      "name": "Create a session",
      "type": "n8n-nodes-base.airtop",
      "position": [
        -784,
        2000
      ]
    },
    {
      "id": "50dcf645-8983-4c08-88d3-0fe81850016b",
      "name": "Create a window",
      "type": "n8n-nodes-base.airtop",
      "position": [
        -560,
        2000
      ]
    },
    {
      "id": "698d4048-0288-4929-81d6-a0f1b29691df",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        336,
        1904
      ]
    },
    {
      "id": "34766cef-6108-4506-aee3-149c606de4b9",
      "name": "Close a window",
      "type": "n8n-nodes-base.airtop",
      "position": [
        560,
        1600
      ]
    },
    {
      "id": "9d73187e-c02f-4db3-a3e3-00e52b62aff4",
      "name": "Terminate a session",
      "type": "n8n-nodes-base.airtop",
      "position": [
        768,
        1600
      ]
    },
    {
      "id": "7881e7e1-e5ea-457b-b077-10cbfa0be6a3",
      "name": "Split course data",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -112,
        2000
      ]
    },
    {
      "id": "ce3b5661-4f56-492d-86cd-ccad8d2417ca",
      "name": "Scrape course",
      "type": "n8n-nodes-base.airtop",
      "position": [
        -336,
        2000
      ]
    },
    {
      "id": "48caad7c-34e6-4403-83b3-1c980174d131",
      "name": "Check offer available or not",
      "type": "n8n-nodes-base.if",
      "position": [
        112,
        2000
      ]
    },
    {
      "id": "8fe3ce14-965d-4377-b68f-b224c300e6b6",
      "name": "Find discount",
      "type": "n8n-nodes-base.code",
      "position": [
        560,
        1920
      ]
    },
    {
      "id": "23b12285-eaf3-425a-9976-461aaa2b0c18",
      "name": "Append 50% up disc data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1008,
        1904
      ]
    },
    {
      "id": "8d578a9c-6950-467f-8bf8-2c7a48804dc4",
      "name": "Send notify course deal",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1216,
        1904
      ]
    },
    {
      "id": "508d795b-2cf2-4abf-a91e-16cc2a30bc5f",
      "name": "Check discount percentage 50%>",
      "type": "n8n-nodes-base.if",
      "position": [
        784,
        1920
      ]
    },
    {
      "id": "abd3cac0-21af-43f9-808c-3bbb64c5439d",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        336,
        2208
      ]
    },
    {
      "id": "fb1da1a4-adde-4bfb-8edb-62b1f994023b",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1584,
        1776
      ],
      "parameters": {
        "width": 528,
        "height": 528,
        "content": "## How it works\nThis workflow monitors Udemy courses for deep discounts (50%+) and alerts you via Telegram.\n\nEvery day, it launches a browser session using Airtop, scrapes course listings from Udemy s"
      }
    },
    {
      "id": "28836b1d-6303-4496-8367-ecb5979bfe0e",
      "name": "Browser Automation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        1888
      ],
      "parameters": {
        "width": 680,
        "height": 308,
        "content": "## Browser Automation\nLaunches Airtop session, opens Udemy search page, and scrapes course data using AI extraction."
      }
    },
    {
      "id": "b99e0060-9983-40ed-b3a7-8f438e226596",
      "name": "Data Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        1792
      ],
      "parameters": {
        "width": 840,
        "height": 400,
        "content": "## Data Processing\nSplits scraped courses into individual items and filters for those with active discount offers."
      }
    },
    {
      "id": "7140fc2b-4231-47fb-813a-404cfec2f299",
      "name": "Discount Detection",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        1792
      ],
      "parameters": {
        "width": 720,
        "height": 404,
        "content": "## Discount Detection\nCalculates discount percentage and saves courses with 50%+ discounts to Google Sheets, then sends Telegram alerts."
      }
    },
    {
      "id": "f7da6aca-6ff1-41d2-8cae-ec3ddeff1ead",
      "name": "Cleanup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        1504
      ],
      "parameters": {
        "width": 620,
        "height": 272,
        "content": "## Cleanup\nCloses browser window and terminates Airtop session after processing all courses."
      }
    }
  ],
  "connections": {
    "Find discount": {
      "main": [
        [
          {
            "node": "Check discount percentage 50%>",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape course": {
      "main": [
        [
          {
            "node": "Split course data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Close a window": {
      "main": [
        [
          {
            "node": "Terminate a session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a window": {
      "main": [
        [
          {
            "node": "Scrape course",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Close a window",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Find discount",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a session": {
      "main": [
        [
          {
            "node": "Create a window",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Create a session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split course data": {
      "main": [
        [
          {
            "node": "Check offer available or not",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append 50% up disc data": {
      "main": [
        [
          {
            "node": "Send notify course deal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send notify course deal": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check offer available or not": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check discount percentage 50%>": {
      "main": [
        [
          {
            "node": "Append 50% up disc data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}