Files
n8n/flows/36.json

2387 lines
50 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"id": 36,
"name": "avtomoto25 count",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-280,
280
]
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "Avtomoto25",
"options": {
"fields": {
"field": [
{
"name": "access_token"
}
]
}
}
},
"name": "Facebook Graph API",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
480,
60
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"url": "https://note.cynic.club/shares/sJeGN4mi8Xgto8A85QS027",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request2",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
0,
500
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract1",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
220,
500
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set2",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
480,
500
]
},
{
"parameters": {
"url": "https://note.cynic.club/shares/wjFwc3x9h7lDRK9BlubQC0",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request3",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
0,
840
]
},
{
"parameters": {
"url": "https://note.cynic.club/shares/978uO9kCnw65J1TMaH0XeR",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request4",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
0,
1300
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
},
{
"key": "schedule",
"cssSelector": "label.checkbox-label-checked",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract3",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
220,
1300
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set4",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
460,
1300
]
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "3",
"fieldsToSend": {
"properties": [
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
}
]
}
},
"name": "prospect",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1020,
1440
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"value": 10,
"unit": "minutes"
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-340,
740
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge3",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
780,
520
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "вул. Рокосовського 51"
}
]
}
}
},
"name": "rokoss1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
480,
660
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
}
]
}
},
"name": "rokoss2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1040,
680
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{24 - $json[\"count\"]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "recount rokoss",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1040,
520
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
220,
840
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
480,
840
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge4",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
780,
860
]
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "2",
"fieldsToSend": {
"properties": [
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
}
]
}
},
"name": "rokoss4",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1020,
1020
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "вул. Красносільського 59а"
}
]
}
}
},
"name": "masani1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
480,
1000
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
160,
280
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
400,
280
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
620,
280
]
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "conversations",
"options": {}
},
"name": "Facebook Graph API4",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
880,
40
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
780,
1320
]
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{24 - $json[\"count\"]}}"
}
]
},
"options": {}
},
"name": "recount masani",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
860
]
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{24 - $json[\"count\"]}}"
}
]
},
"options": {}
},
"name": "recount prospect",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
1300
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "Проспект Перемоги 39"
}
]
}
}
},
"name": "prospect1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
460,
1460
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages3",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
-340,
1820
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
-140,
1820
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?3",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
60,
1820
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "=Продовжується запис на навчання за адресою: \n{{$node[\"prospect1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"prospect1\"].json[\"date_ua\"]}}\nЗалишилося місць: {{$node[\"recount prospect\"].json[\"recount\"]}}"
},
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "link",
"value": "https://avtomoto25.cn.ua/booking/"
},
{
"name": "og_action_type_id",
"value": "383634835006146"
},
{
"name": "og_object_id",
"value": "387919524627259"
}
]
}
}
},
"name": "Facebook Graph API6",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
360,
1820
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "=Продовжується запис на навчання за адресою: \n{{$node[\"rokoss1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"rokoss1\"].json[\"date_ua\"]}}\nЗалишилося місць: {{$node[\"recount rokoss\"].json[\"recount\"]}}"
},
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "link",
"value": "https://avtomoto25.cn.ua/booking/"
},
{
"name": "og_action_type_id",
"value": "383634835006146"
},
{
"name": "og_object_id",
"value": "387919524627259"
},
{
"name": "place",
"value": "avtomoto2502"
}
]
}
}
},
"name": "Facebook Graph API7",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1040,
280
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"resource": "file",
"binaryPropertyName": "=data",
"path": "/var/www/html/driving_school/wp-content/uploads/",
"options": {
"fileName": "count_banner_masani.jpg"
}
},
"name": "SSH2",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
2500,
840
],
"credentials": {
"sshPassword": {
"id": "14",
"name": "SSH Password account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v14.0",
"node": "={{$json[\"id\"]}}",
"edge": "photos",
"options": {
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "url",
"value": "https://avtomoto25.cn.ua/wp-content/uploads/count_banner_masani.jpg"
},
{
"name": "caption",
"value": "=⏱ Продовжується набір в групу за адресою вул. Красносільського 59а\nДля реєстрації на навчання в нашій автошколі \nзаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500"
}
]
}
}
},
"name": "Facebook Graph API3",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
3220,
840
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages4",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2660,
840
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2840,
840
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?4",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
3000,
840
]
},
{
"parameters": {
"resource": "file",
"binaryPropertyName": "=data",
"path": "/var/www/html/driving_school/wp-content/uploads/",
"options": {
"fileName": "count_banner_rokoss.jpg"
}
},
"name": "SSH",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
2500,
460
],
"credentials": {
"sshPassword": {
"id": "14",
"name": "SSH Password account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "photos",
"options": {
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "url",
"value": "https://avtomoto25.cn.ua/wp-content/uploads/count_banner_rokoss.jpg"
},
{
"name": "caption",
"value": "=⏱ Продовжується набір в групу за адресою вул. Рокосовського 51\nДля реєстрації на навчання в нашій автошколі \nзаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500"
}
]
}
}
},
"name": "Facebook Graph API8",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
3220,
460
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages5",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2660,
460
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2820,
460
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?5",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
3000,
460
]
},
{
"parameters": {
"resource": "file",
"binaryPropertyName": "=data",
"path": "/var/www/html/driving_school/wp-content/uploads/",
"options": {
"fileName": "count_banner_prospect.jpg"
}
},
"name": "SSH3",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
2500,
1300
],
"credentials": {
"sshPassword": {
"id": "14",
"name": "SSH Password account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "photos",
"options": {
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "url",
"value": "https://avtomoto25.cn.ua/wp-content/uploads/count_banner_prospect.jpg"
},
{
"name": "caption",
"value": "=⏱ Продовжується набір в групу за адресою Проспект Перемоги 39\nДля реєстрації на навчання в нашій автошколі \nзаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500"
}
]
}
}
},
"name": "Facebook Graph API9",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
3220,
1300
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages6",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2660,
1300
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages6",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2840,
1300
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?6",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
3000,
1300
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
"text": "Проспект Перемоги 39",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionX": 530,
"positionY": 580,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
"positionY": 140,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "={{$node[\"recount prospect\"].json[\"recount\"]}}!",
"fontSize": 300,
"fontColor": "#FF0000",
"positionX": 750,
"positionY": 300,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image2",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2320,
1300
]
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json[\"recount\"]}}",
"value2": 30
}
]
}
},
"name": "IF1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1200,
860
]
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json[\"recount\"]}}",
"value2": 24
}
]
}
},
"name": "IF2",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1220,
1300
]
},
{
"parameters": {
"value1": "={{$json[\"recount\"]}}",
"rules": {
"rules": [
{
"value2": 23
},
{
"value2": 1,
"output": 1
}
]
},
"fallbackOutput": 3
},
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 1,
"position": [
1260,
480
]
},
{
"parameters": {
"url": "={{$json[\"urls\"][\"full\"]}}",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1640,
1300
]
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
"responseFormat": "file",
"dataPropertyName": "data2",
"options": {}
},
"name": "HTTP Request7",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1800,
1460
]
},
{
"parameters": {
"mode": "mergeByIndex",
"join": "inner"
},
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
2000,
1300
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "resize",
"width": 1200,
"height": -1,
"resizeOption": "onlyIfLarger"
},
{
"operation": "draw",
"color": "#000000b2",
"startPositionX": 25,
"startPositionY": 25,
"endPositionX": 1175,
"endPositionY": 605
},
{
"operation": "crop",
"width": 1200,
"height": 630
}
]
},
"options": {}
},
"name": "Edit Image3",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
1800,
1300
]
},
{
"parameters": {
"operation": "composite",
"dataPropertyNameComposite": "data2",
"operator": "Plus",
"positionX": 50,
"positionY": 330,
"options": {}
},
"name": "Edit Image4",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2160,
1300
]
},
{
"parameters": {
"url": "https://api.unsplash.com/photos/random?query=driving",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Authorization",
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
}
]
},
"queryParametersUi": {
"parameter": [
{
"name": "orientation",
"value": "landscape"
}
]
}
},
"name": "HTTP Request8",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1460,
1300
]
},
{
"parameters": {
"url": "={{$json[\"urls\"][\"full\"]}}",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request9",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1620,
840
]
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
"responseFormat": "file",
"dataPropertyName": "data2",
"options": {}
},
"name": "HTTP Request10",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1800,
1020
]
},
{
"parameters": {
"mode": "mergeByIndex",
"join": "inner"
},
"name": "Merge2",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1980,
840
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "resize",
"width": 1200,
"height": -1,
"resizeOption": "onlyIfLarger"
},
{
"operation": "draw",
"color": "#00000099",
"startPositionX": 25,
"startPositionY": 25,
"endPositionX": 1175,
"endPositionY": 605
},
{
"operation": "crop",
"width": 1200,
"height": 630
}
]
},
"options": {}
},
"name": "Edit Image5",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
1800,
840
]
},
{
"parameters": {
"operation": "composite",
"dataPropertyNameComposite": "data2",
"operator": "Plus",
"positionX": 50,
"positionY": 330,
"options": {}
},
"name": "Edit Image6",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2140,
840
]
},
{
"parameters": {
"url": "https://api.unsplash.com/photos/random?query=driving",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Authorization",
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
}
]
},
"queryParametersUi": {
"parameter": [
{
"name": "orientation",
"value": "landscape"
}
]
}
},
"name": "HTTP Request11",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1440,
840
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
"text": "вул. Красносільського 59а",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionX": 420,
"positionY": 580,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
"positionY": 140,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "={{$node[\"recount masani\"].json[\"recount\"]}}!",
"fontSize": 300,
"fontColor": "#FF0000",
"positionX": 750,
"positionY": 300,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image9",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2320,
840
]
},
{
"parameters": {
"url": "={{$json[\"urls\"][\"full\"]}}",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request12",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1600,
460
]
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
"responseFormat": "file",
"dataPropertyName": "data2",
"options": {}
},
"name": "HTTP Request13",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1780,
620
]
},
{
"parameters": {
"mode": "mergeByIndex",
"join": "inner"
},
"name": "Merge5",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1960,
460
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "resize",
"width": 1200,
"height": -1,
"resizeOption": "onlyIfLarger"
},
{
"operation": "draw",
"color": "#00000099",
"startPositionX": 25,
"startPositionY": 25,
"endPositionX": 1175,
"endPositionY": 605
},
{
"operation": "crop",
"width": 1200,
"height": 630
}
]
},
"options": {}
},
"name": "Edit Image",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
1780,
460
]
},
{
"parameters": {
"operation": "composite",
"dataPropertyNameComposite": "data2",
"operator": "Plus",
"positionX": 50,
"positionY": 330,
"options": {}
},
"name": "Edit Image7",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2140,
460
]
},
{
"parameters": {
"url": "https://api.unsplash.com/photos/random?query=driving",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Authorization",
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
}
]
},
"queryParametersUi": {
"parameter": [
{
"name": "orientation",
"value": "landscape"
}
]
}
},
"name": "HTTP Request14",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1440,
460
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
"text": "вул. Рокосовського 51",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionX": 550,
"positionY": 580,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
"positionY": 140,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "={{$node[\"recount rokoss\"].json[\"recount\"]}}!",
"fontSize": 300,
"fontColor": "#FF0000",
"positionX": 750,
"positionY": 300,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image10",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2300,
460
]
}
],
"connections": {
"Facebook Graph API": {
"main": [
[
{
"node": "Facebook Graph API4",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request2": {
"main": [
[
{
"node": "HTML Extract1",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract1": {
"main": [
[
{
"node": "Set2",
"type": "main",
"index": 0
}
]
]
},
"Set2": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request3": {
"main": [
[
{
"node": "HTML Extract",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request4": {
"main": [
[
{
"node": "HTML Extract3",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract3": {
"main": [
[
{
"node": "Set4",
"type": "main",
"index": 0
}
]
]
},
"Set4": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
{
"node": "HTTP Request2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request3",
"type": "main",
"index": 0
},
{
"node": "HTTP Request4",
"type": "main",
"index": 0
}
]
]
},
"Merge3": {
"main": [
[
{
"node": "rokoss2",
"type": "main",
"index": 0
},
{
"node": "recount rokoss",
"type": "main",
"index": 0
}
]
]
},
"rokoss1": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 1
}
]
]
},
"HTML Extract": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "Merge4",
"type": "main",
"index": 0
}
]
]
},
"Merge4": {
"main": [
[
{
"node": "rokoss4",
"type": "main",
"index": 0
},
{
"node": "recount masani",
"type": "main",
"index": 0
}
]
]
},
"masani1": {
"main": [
[
{
"node": "Merge4",
"type": "main",
"index": 1
}
]
]
},
"Get Pages1": {
"main": [
[
{
"node": "Split Pages1",
"type": "main",
"index": 0
}
]
]
},
"Split Pages1": {
"main": [
[
{
"node": "Is Tom Travels?1",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?1": {
"main": [
[
{
"node": "Facebook Graph API7",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "prospect",
"type": "main",
"index": 0
},
{
"node": "recount prospect",
"type": "main",
"index": 0
}
]
]
},
"prospect1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Get Pages3": {
"main": [
[
{
"node": "Split Pages3",
"type": "main",
"index": 0
}
]
]
},
"Split Pages3": {
"main": [
[
{
"node": "Is Tom Travels?3",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?3": {
"main": [
[
{
"node": "Facebook Graph API6",
"type": "main",
"index": 0
}
]
]
},
"recount prospect": {
"main": [
[
{
"node": "IF2",
"type": "main",
"index": 0
}
]
]
},
"SSH2": {
"main": [
[
{
"node": "Get Pages4",
"type": "main",
"index": 0
}
]
]
},
"Get Pages4": {
"main": [
[
{
"node": "Split Pages4",
"type": "main",
"index": 0
}
]
]
},
"Split Pages4": {
"main": [
[
{
"node": "Is Tom Travels?4",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?4": {
"main": [
[
{
"node": "Facebook Graph API3",
"type": "main",
"index": 0
}
]
]
},
"recount masani": {
"main": [
[
{
"node": "IF1",
"type": "main",
"index": 0
}
]
]
},
"SSH": {
"main": [
[
{
"node": "Get Pages5",
"type": "main",
"index": 0
}
]
]
},
"Get Pages5": {
"main": [
[
{
"node": "Split Pages5",
"type": "main",
"index": 0
}
]
]
},
"Split Pages5": {
"main": [
[
{
"node": "Is Tom Travels?5",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?5": {
"main": [
[
{
"node": "Facebook Graph API8",
"type": "main",
"index": 0
}
]
]
},
"recount rokoss": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"SSH3": {
"main": [
[
{
"node": "Get Pages6",
"type": "main",
"index": 0
}
]
]
},
"Get Pages6": {
"main": [
[
{
"node": "Split Pages6",
"type": "main",
"index": 0
}
]
]
},
"Split Pages6": {
"main": [
[
{
"node": "Is Tom Travels?6",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?6": {
"main": [
[
{
"node": "Facebook Graph API9",
"type": "main",
"index": 0
}
]
]
},
"Edit Image2": {
"main": [
[
{
"node": "SSH3",
"type": "main",
"index": 0
}
]
]
},
"IF1": {
"main": [
[
{
"node": "HTTP Request11",
"type": "main",
"index": 0
}
]
]
},
"IF2": {
"main": [
[
{
"node": "HTTP Request8",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "HTTP Request14",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "Edit Image3",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request7": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Merge1": {
"main": [
[
{
"node": "Edit Image4",
"type": "main",
"index": 0
}
]
]
},
"Edit Image3": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"Edit Image4": {
"main": [
[
{
"node": "Edit Image2",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request8": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request9": {
"main": [
[
{
"node": "Edit Image5",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request10": {
"main": [
[
{
"node": "Merge2",
"type": "main",
"index": 1
}
]
]
},
"Merge2": {
"main": [
[
{
"node": "Edit Image6",
"type": "main",
"index": 0
}
]
]
},
"Edit Image5": {
"main": [
[
{
"node": "Merge2",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request11": {
"main": [
[
{
"node": "HTTP Request9",
"type": "main",
"index": 0
}
]
]
},
"Edit Image6": {
"main": [
[
{
"node": "Edit Image9",
"type": "main",
"index": 0
}
]
]
},
"Edit Image9": {
"main": [
[
{
"node": "SSH2",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request12": {
"main": [
[
{
"node": "Edit Image",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request13": {
"main": [
[
{
"node": "Merge5",
"type": "main",
"index": 1
}
]
]
},
"Merge5": {
"main": [
[
{
"node": "Edit Image7",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
{
"node": "Merge5",
"type": "main",
"index": 0
}
]
]
},
"Edit Image7": {
"main": [
[
{
"node": "Edit Image10",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request14": {
"main": [
[
{
"node": "HTTP Request12",
"type": "main",
"index": 0
}
]
]
},
"Edit Image10": {
"main": [
[
{
"node": "SSH",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-18T21:12:12.483Z",
"updatedAt": "2022-07-12T05:59:27.482Z",
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"tags": [
{
"id": "1",
"name": "avtomoto25",
"createdAt": "2022-05-10T18:06:30.022Z",
"updatedAt": "2022-05-10T18:06:30.022Z"
}
]
}