{ "id": 53, "name": "olx ps4game che rss", "active": true, "nodes": [ { "parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [ 400, 140 ] }, { "parameters": { "docId": "d61nLm6Fn99jwqxd6hdT9d", "tableId": "Items", "returnAll": true, "additionalOptions": { "filter": { "filterProperties": [ { "field": "tag", "values": "ps4_games_ch" } ] } } }, "name": "Grist1", "type": "n8n-nodes-base.grist", "typeVersion": 1, "position": [ 600, 320 ], "credentials": { "gristApi": { "id": "21", "name": "Grist account" } } }, { "parameters": { "respondWith": "text", "responseBody": "={{$json[\"feed\"]}}", "options": { "responseHeaders": { "entries": [ { "name": "content-type", "value": "application/xml" } ] } } }, "name": "Respond to Webhook1", "type": "n8n-nodes-base.respondToWebhook", "position": [ 1180, 320 ], "typeVersion": 1 }, { "parameters": { "path": "ps4game_che", "responseMode": "responseNode", "options": {} }, "name": "Webhook1", "type": "n8n-nodes-base.webhook", "position": [ 400, 320 ], "webhookId": "f1a20d18-72bb-4d4a-8bad-0f465f6029c9", "typeVersion": 1 }, { "parameters": { "functionCode": "let feed =\n`\n\n\n\n olx ps4 игры Чернигов\n https://olx.ua\n Stay up to date with the latest changes and updates of olx\n ${items.map(e => e.json.rss_item).join('\\n')}\n\n\n`;\n\nreturn [{\n json: {\n feed: feed\n }\n}];" }, "name": "Prepare Response1", "type": "n8n-nodes-base.function", "position": [ 1000, 320 ], "typeVersion": 1 }, { "parameters": { "functionCode": "return {\n rss_item: \n`\n ${item.title} - ${item.price}\n ${item.link}\n ${item.content}\n ${item.date}\n \n ${item.image}\n ${item.title}\n ${item.link}\n \n ${item.tag}\n`\n}" }, "name": "Create RSS Items1", "type": "n8n-nodes-base.functionItem", "position": [ 800, 320 ], "typeVersion": 1 } ], "connections": { "Grist1": { "main": [ [ { "node": "Create RSS Items1", "type": "main", "index": 0 } ] ] }, "Webhook1": { "main": [ [ { "node": "Grist1", "type": "main", "index": 0 } ] ] }, "Prepare Response1": { "main": [ [ { "node": "Respond to Webhook1", "type": "main", "index": 0 } ] ] }, "Create RSS Items1": { "main": [ [ { "node": "Prepare Response1", "type": "main", "index": 0 } ] ] } }, "createdAt": "2022-07-15T11:11:44.964Z", "updatedAt": "2022-07-15T17:28:39.242Z", "settings": { "errorWorkflow": "25" }, "staticData": null, "tags": [ { "id": "3", "name": "olx", "createdAt": "2022-06-21T19:20:51.822Z", "updatedAt": "2022-06-21T19:20:51.822Z" } ] }