{ "updatedAt": "2026-08-01T00:31:55.821Z", "createdAt": "2026-07-31T22:23:07.630Z", "id": "S0UVDKAacyaQWYyb", "name": "eBayTracker-Schedule", "active": true, "isArchived": false, "nodes": [ { "parameters": { "method": "POST", "url": "http://192.168.178.133:3001/tracker/run", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ 240, 0 ], "id": "e6d9bb54-0979-4a46-857e-c2a5954a8771", "name": "HTTP Request" }, { "parameters": { "jsCode": "const items = $json.priceChanges || [];\n\nif (items.length === 0) {\n return [];\n}\n\nreturn items.map(item => {\n let text = \"\";\n\n if (item.type === 'NEW') {\n text += `🆕 *NEUES ANGEBOT*\\n\\n`;\n text += `📦 [${item.title}](${item.itemUrl})\\n`;\n text += `🏷️ Aktueller Preis: *${item.newPrice} €*\\n`;\n text += `🏪 Händler: ${item.seller}`;\n } else if (item.type === 'PRICE_CHANGE') {\n const icon = parseFloat(item.diff) < 0 ? \"📉 *PREISSENKUNG*\" : \"📈 *PREISERHÖHUNG*\";\n const bestpriceBadge = item.isAllTimeLow ? \"🔥 *NEUER ALLZEIT-BESTPREIS!*\\n\" : \"\";\n\n text += `${icon}\\n${bestpriceBadge}\\n`;\n text += `📦 [${item.title}](${item.itemUrl})\\n`;\n text += `🏷️ Aktueller Preis: *${item.newPrice} €* (${item.diff} €)\\n`;\n text += `💰 Vorheriger Preis: ~${item.oldPrice} €~\\n`;\n text += `📊 Niedrigster Preis (Historie): *${item.lowestPrice} €*\\n`;\n text += `🏪 Händler: ${item.seller}`;\n }\n\n return {\n json: {\n text: text,\n itemUrl: item.itemUrl,\n title: item.title\n }\n };\n});" }, "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ 464, 0 ], "id": "469226ed-a9de-4222-a711-3e9e16873a09", "name": "Code in JavaScript" }, { "parameters": { "chatId": "302560724", "text": "={{ $json.text }}", "additionalFields": {} }, "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ 688, 0 ], "id": "fca83e4b-e446-4a32-8ae7-90c9f959d85a", "name": "Send a text message", "webhookId": "a536b4bd-326c-49eb-a97b-fdbaa571682c", "credentials": { "telegramApi": { "id": "rDFxPFGGKagsBKLV", "name": "Telegram eBayNotifyBot" } } }, { "parameters": { "rule": { "interval": [ { "field": "hours", "hoursInterval": 3 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ 16, 0 ], "id": "0a8ee3b4-9289-433d-8985-015b3b3de39b", "name": "Schedule Trigger" } ], "connections": { "HTTP Request": { "main": [ [ { "node": "Code in JavaScript", "type": "main", "index": 0 } ] ] }, "Code in JavaScript": { "main": [ [ { "node": "Send a text message", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "HTTP Request", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1", "binaryMode": "separate" }, "staticData": { "node:Schedule Trigger": { "recurrenceRules": [] } }, "meta": { "templateCredsSetupCompleted": true }, "pinData": {}, "versionId": "af07df68-9e2b-41e8-b013-e49f895f8707", "activeVersionId": "af07df68-9e2b-41e8-b013-e49f895f8707", "triggerCount": 1, "shared": [ { "updatedAt": "2026-07-31T22:23:07.632Z", "createdAt": "2026-07-31T22:23:07.632Z", "role": "workflow:owner", "workflowId": "S0UVDKAacyaQWYyb", "projectId": "cSAaWNJydnksD5EB" } ], "activeVersion": { "updatedAt": "2026-08-01T00:31:57.000Z", "createdAt": "2026-08-01T00:31:55.822Z", "versionId": "af07df68-9e2b-41e8-b013-e49f895f8707", "workflowId": "S0UVDKAacyaQWYyb", "nodes": [ { "parameters": { "method": "POST", "url": "http://192.168.178.133:3001/tracker/run", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ 240, 0 ], "id": "e6d9bb54-0979-4a46-857e-c2a5954a8771", "name": "HTTP Request" }, { "parameters": { "jsCode": "const items = $json.priceChanges || [];\n\nif (items.length === 0) {\n return [];\n}\n\nreturn items.map(item => {\n let text = \"\";\n\n if (item.type === 'NEW') {\n text += `🆕 *NEUES ANGEBOT*\\n\\n`;\n text += `📦 [${item.title}](${item.itemUrl})\\n`;\n text += `🏷️ Aktueller Preis: *${item.newPrice} €*\\n`;\n text += `🏪 Händler: ${item.seller}`;\n } else if (item.type === 'PRICE_CHANGE') {\n const icon = parseFloat(item.diff) < 0 ? \"📉 *PREISSENKUNG*\" : \"📈 *PREISERHÖHUNG*\";\n const bestpriceBadge = item.isAllTimeLow ? \"🔥 *NEUER ALLZEIT-BESTPREIS!*\\n\" : \"\";\n\n text += `${icon}\\n${bestpriceBadge}\\n`;\n text += `📦 [${item.title}](${item.itemUrl})\\n`;\n text += `🏷️ Aktueller Preis: *${item.newPrice} €* (${item.diff} €)\\n`;\n text += `💰 Vorheriger Preis: ~${item.oldPrice} €~\\n`;\n text += `📊 Niedrigster Preis (Historie): *${item.lowestPrice} €*\\n`;\n text += `🏪 Händler: ${item.seller}`;\n }\n\n return {\n json: {\n text: text,\n itemUrl: item.itemUrl,\n title: item.title\n }\n };\n});" }, "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ 464, 0 ], "id": "469226ed-a9de-4222-a711-3e9e16873a09", "name": "Code in JavaScript" }, { "parameters": { "chatId": "302560724", "text": "={{ $json.text }}", "additionalFields": {} }, "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ 688, 0 ], "id": "fca83e4b-e446-4a32-8ae7-90c9f959d85a", "name": "Send a text message", "webhookId": "a536b4bd-326c-49eb-a97b-fdbaa571682c", "credentials": { "telegramApi": { "id": "rDFxPFGGKagsBKLV", "name": "Telegram eBayNotifyBot" } } }, { "parameters": { "rule": { "interval": [ { "field": "hours", "hoursInterval": 3 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ 16, 0 ], "id": "0a8ee3b4-9289-433d-8985-015b3b3de39b", "name": "Schedule Trigger" } ], "connections": { "HTTP Request": { "main": [ [ { "node": "Code in JavaScript", "type": "main", "index": 0 } ] ] }, "Code in JavaScript": { "main": [ [ { "node": "Send a text message", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "HTTP Request", "type": "main", "index": 0 } ] ] } }, "authors": "Prasanna Ranjan", "name": "Version af07df68", "description": "", "autosaved": true }, "tags": [] }