diff --git a/My workflow 4.json b/My workflow 4.json index d6859a4..6d33bdb 100644 --- a/My workflow 4.json +++ b/My workflow 4.json @@ -1,44 +1,155 @@ { - "updatedAt": "2025-11-11T20:48:10.000Z", - "createdAt": "2025-11-02T09:48:17.865Z", - "id": "quBDnsITqMFohlzI", + "updatedAt": "2026-07-31T21:59:48.757Z", + "createdAt": "2026-07-31T21:29:56.006Z", + "id": "yB3PWOy5O5bI82rv", "name": "My workflow 4", "active": false, - "isArchived": true, + "isArchived": false, "nodes": [ { - "parameters": {}, - "type": "n8n-nodes-base.manualTrigger", - "typeVersion": 1, + "parameters": { + "updates": [ + "message" + ], + "additionalFields": {} + }, + "type": "n8n-nodes-base.telegramTrigger", + "typeVersion": 1.3, "position": [ - 0, - 0 + -128, + -64 ], - "id": "703b7cfb-cc86-4954-9b18-1b0f1309edf2", - "name": "When clicking ‘Execute workflow’" + "id": "0207e09b-38a4-4ffc-8c46-9bfa8e4d7874", + "name": "Telegram Trigger", + "webhookId": "dd25e1b8-f9d1-4b09-bb08-b7c5e7663108", + "credentials": { + "telegramApi": { + "id": "rDFxPFGGKagsBKLV", + "name": "Telegram eBayNotifyBot" + } + } }, { "parameters": { - "url": "https://stackoverflow.com/questions/42108163/get-docker-compose-yml-file-location-from-running-container", - "operation": "getScreenshot", + "method": "POST", + "url": "http://198.168.178.133:3001/searches/add", + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"chatId\": \"={{ $('Telegram Trigger').item.json.message.chat.id }}\",\n \"query\": \"{{ $('Switch').item.json.positiveKeyword}}\",\n \"negativeKeywords\": {{ $('Switch').item.json.negativeKeywords }}\n}", "options": {} }, - "type": "CUSTOM.puppeteer", - "typeVersion": 1, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, "position": [ - 208, - 0 + 480, + -64 ], - "id": "eb783659-3947-4474-b40e-fa7d71009faa", - "name": "Puppeteer" + "id": "dc699f14-505d-46e2-92cf-a1f729b64b52", + "name": "HTTP Request" + }, + { + "parameters": { + "rules": { + "values": [ + { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 3 + }, + "conditions": [ + { + "leftValue": "={{ $json.comand }}", + "rightValue": "/add", + "operator": { + "type": "string", + "operation": "equals" + }, + "id": "e8bd8b22-bfe4-445b-8874-df28d37430d1" + } + ], + "combinator": "and" + } + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.switch", + "typeVersion": 3.4, + "position": [ + 272, + -64 + ], + "id": "18982561-fad5-4a12-895f-26c58314d3d3", + "name": "Switch" + }, + { + "parameters": { + "assignments": { + "assignments": [ + { + "id": "4e123384-87ed-4b4e-8b29-dcf65c77c900", + "name": "comand", + "value": "={{ $json.message.text.trim().split(/\\s+/)[0] }}", + "type": "string" + }, + { + "id": "51c90eec-93b9-4eab-9e0d-281ece7b3c26", + "name": "positiveKeyword", + "value": "={{ $json.message.text.trim().split(/\\s+/)[1] }}", + "type": "string" + }, + { + "id": "07598e9f-8cca-4646-80f2-d194fcbf228d", + "name": "negativeKeywords", + "value": "={{ $json.message.text.trim().split(/\\s+/).slice(2).map(w => w.replace(/^-/, '')) }}", + "type": "string" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.set", + "typeVersion": 3.4, + "position": [ + 64, + -64 + ], + "id": "9e0ba9c2-417c-4abe-8b24-22aca98d2b54", + "name": "Edit Fields" } ], "connections": { - "When clicking ‘Execute workflow’": { + "Telegram Trigger": { "main": [ [ { - "node": "Puppeteer", + "node": "Edit Fields", + "type": "main", + "index": 0 + } + ] + ] + }, + "Edit Fields": { + "main": [ + [ + { + "node": "Switch", + "type": "main", + "index": 0 + } + ] + ] + }, + "Switch": { + "main": [ + [ + { + "node": "HTTP Request", "type": "main", "index": 0 } @@ -47,21 +158,83 @@ } }, "settings": { - "executionOrder": "v1" + "executionOrder": "v1", + "binaryMode": "separate" }, "staticData": null, - "meta": null, - "pinData": {}, - "versionId": "43e6894b-204f-4a58-8672-370c67d13188", + "meta": { + "templateCredsSetupCompleted": true + }, + "pinData": { + "Telegram Trigger": [ + { + "json": { + "update_id": 412066095, + "message": { + "message_id": 5239, + "from": { + "id": 302560724, + "is_bot": false, + "first_name": "Pr4s4n", + "username": "pr4s4n", + "language_code": "de" + }, + "chat": { + "id": 302560724, + "first_name": "Pr4s4n", + "username": "pr4s4n", + "type": "private" + }, + "date": 1785533834, + "text": "/add playstation -controller -headset", + "entities": [ + { + "offset": 0, + "length": 4, + "type": "bot_command" + } + ] + } + } + } + ], + "Edit Fields": [ + { + "json": { + "comand": "/add", + "positiveKeyword": "playstation", + "negativeKeywords": "[\"controller\",\"headset\"]" + }, + "pairedItem": { + "item": 0 + } + } + ], + "Switch": [ + { + "json": { + "comand": "/add", + "positiveKeyword": "playstation", + "negativeKeywords": "[\"controller\",\"headset\"]" + }, + "pairedItem": { + "item": 0 + } + } + ] + }, + "versionId": "b921334a-86fa-4d3f-bf7e-78429fecb038", + "activeVersionId": null, "triggerCount": 0, "shared": [ { - "updatedAt": "2025-11-02T09:48:17.870Z", - "createdAt": "2025-11-02T09:48:17.870Z", + "updatedAt": "2026-07-31T21:29:56.021Z", + "createdAt": "2026-07-31T21:29:56.021Z", "role": "workflow:owner", - "workflowId": "quBDnsITqMFohlzI", - "projectId": "S4tmpzSj6JlGFOze" + "workflowId": "yB3PWOy5O5bI82rv", + "projectId": "cSAaWNJydnksD5EB" } ], + "activeVersion": null, "tags": [] } \ No newline at end of file