{ "nodes": [ { "name": "HTTP Request", "type": "n8n-nodes-base.httpRequest", "position": [ 520, 440 ], "parameters": { "method": "GET", "url": "https://news.ycombinator.com/", "options": { "response": { "response": { "responseFormat": "text", "outputPropertyName": "body" } } } }, "typeVersion": 4.2, "id": "alert-on-web-page-changes-0" }, { "name": "Wait", "type": "n8n-nodes-base.wait", "position": [ 680, 440 ], "parameters": { "unit": "minutes", "amount": 5 }, "typeVersion": 1, "id": "alert-on-web-page-changes-1" }, { "name": "HTTP Request1", "type": "n8n-nodes-base.httpRequest", "position": [ 880, 440 ], "parameters": { "method": "GET", "url": "https://news.ycombinator.com/", "options": { "response": { "response": { "responseFormat": "text", "outputPropertyName": "body" } } } }, "typeVersion": 4.2, "id": "alert-on-web-page-changes-2" }, { "name": "Compare the responses", "type": "n8n-nodes-base.code", "position": [ 1100, 440 ], "parameters": { "mode": "runOnceForAllItems", "jsCode": "return [{json:{changed:$('HTTP Request').first().json.body!==$input.first().json.body}}];" }, "typeVersion": 2, "id": "alert-on-web-page-changes-3" }, { "name": "Cron", "type": "n8n-nodes-base.cron", "position": [ 320, 440 ], "parameters": { "triggerTimes": { "item": [ { "mode": "everyX", "unit": "minutes", "value": 5 } ] } }, "typeVersion": 1, "id": "alert-on-web-page-changes-4" }, { "name": "Telegram1", "type": "n8n-nodes-base.telegram", "position": [ 1320, 520 ], "parameters": { "chatId": "123456789", "text": "Something got changed", "additionalFields": {} }, "typeVersion": 1, "id": "alert-on-web-page-changes-5" }, { "name": "Page changed?", "type": "n8n-nodes-base.if", "typeVersion": 2.2, "parameters": { "conditions": { "options": { "caseSensitive": true, "typeValidation": "strict", "version": 2 }, "conditions": [ { "id": "changed", "leftValue": "={{ $json.changed }}", "rightValue": true, "operator": { "type": "boolean", "operation": "true", "singleValue": true } } ], "combinator": "and" }, "options": {} }, "id": "alert-on-web-page-changes-6" } ], "connections": { "Cron": { "main": [ [ { "node": "HTTP Request", "type": "main", "index": 0 } ] ] }, "HTTP Request": { "main": [ [ { "node": "Wait", "type": "main", "index": 0 } ] ] }, "Wait": { "main": [ [ { "node": "HTTP Request1", "type": "main", "index": 0 } ] ] }, "HTTP Request1": { "main": [ [ { "node": "Compare the responses", "type": "main", "index": 0 } ] ] }, "Compare the responses": { "main": [ [ { "node": "Page changed?", "type": "main", "index": 0 } ] ] }, "Page changed?": { "main": [ [ { "node": "Telegram1", "type": "main", "index": 0 } ], [] ] } }, "name": "Alert on Web Page Changes", "active": false, "settings": { "timezone": "UTC", "executionOrder": "v1" }, "pinData": {} }