Files
n8n/flows/36.json

2221 lines
46 KiB
JSON
Raw Normal View History

2022-06-19 21:00:54 +00:00
{
"id": 36,
2022-06-21 21:00:40 +00:00
"name": "avtomoto25 count",
"active": true,
2022-06-19 21:00:54 +00:00
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-280,
280
]
},
{
"parameters": {
2022-06-21 21:00:40 +00:00
"graphApiVersion": "v13.0",
2022-06-19 21:00:54 +00:00
"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"
}
}
},
2022-06-21 21:00:40 +00:00
{
"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,
2022-06-22 21:00:33 +00:00
1300
]
2022-06-21 21:00:40 +00:00
},
{
"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,
2022-06-22 21:00:33 +00:00
1300
2022-06-21 21:00:40 +00:00
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set4",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
2022-06-22 21:00:33 +00:00
460,
1300
2022-06-21 21:00:40 +00:00
]
},
{
"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": [
2022-06-22 21:00:33 +00:00
1020,
1440
2022-06-21 21:00:40 +00:00
],
"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",
2022-06-27 21:00:30 +00:00
"value": "={{24 - $json[\"count\"]}}"
2022-06-21 21:00:40 +00:00
}
]
},
2022-06-22 21:00:33 +00:00
"options": {
"dotNotation": true
}
2022-06-21 21:00:40 +00:00
},
"name": "recount rokoss",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
2022-06-22 21:00:33 +00:00
1040,
520
2022-06-21 21:00:40 +00:00
]
},
{
"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"
}
}
},
2022-06-22 21:00:33 +00:00
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
2022-06-23 21:00:30 +00:00
"values": "вул. Красносільського 59а"
2022-06-22 21:00:33 +00:00
}
]
}
}
},
"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
]
},
2022-06-21 21:00:40 +00:00
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
2022-07-11 21:00:41 +00:00
"value": "={{24 - $json[\"count\"]}}"
2022-06-21 21:00:40 +00:00
}
]
},
"options": {}
},
2022-06-22 21:00:33 +00:00
"name": "recount masani",
2022-06-21 21:00:40 +00:00
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
860
]
},
2022-06-22 21:00:33 +00:00
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
2022-06-27 21:00:30 +00:00
"value": "={{24 - $json[\"count\"]}}"
2022-06-22 21:00:33 +00:00
}
]
},
"options": {}
},
"name": "recount prospect",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
1300
]
},
2022-06-21 21:00:40 +00:00
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
2022-06-22 21:00:33 +00:00
"values": "Проспект Перемоги 39"
2022-06-21 21:00:40 +00:00
}
]
}
}
},
2022-06-22 21:00:33 +00:00
"name": "prospect1",
2022-06-21 21:00:40 +00:00
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2022-06-22 21:00:33 +00:00
460,
1460
2022-06-21 21:00:40 +00:00
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
2022-06-22 21:00:33 +00:00
"name": "Get Pages3",
2022-06-21 21:00:40 +00:00
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
-340,
1820
2022-06-21 21:00:40 +00:00
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
2022-06-22 21:00:33 +00:00
"name": "Split Pages3",
2022-06-21 21:00:40 +00:00
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
-140,
1820
2022-06-21 21:00:40 +00:00
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
2022-06-22 21:00:33 +00:00
"name": "Is Tom Travels?3",
2022-06-21 21:00:40 +00:00
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
60,
1820
2022-06-21 21:00:40 +00:00
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
2022-06-22 21:00:33 +00:00
"node": "={{$json[\"id\"]}}",
"edge": "feed",
2022-06-21 21:00:40 +00:00
"options": {
2022-06-22 21:00:33 +00:00
"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"
}
]
}
2022-06-21 21:00:40 +00:00
}
},
2022-06-22 21:00:33 +00:00
"name": "Facebook Graph API6",
2022-06-21 21:00:40 +00:00
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
360,
1820
2022-06-22 21:00:33 +00:00
],
"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,
2022-06-19 21:00:54 +00:00
280
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
2022-06-23 21:00:30 +00:00
},
{
"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": [
2022-07-11 21:00:41 +00:00
2540,
840
2022-06-23 21:00:30 +00:00
],
"credentials": {
"sshPassword": {
"id": "14",
"name": "SSH Password account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
2022-07-11 21:00:41 +00:00
"graphApiVersion": "v14.0",
2022-06-23 21:00:30 +00:00
"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",
2022-06-29 21:00:55 +00:00
"value": "=⏱ Продовжується набір в групу за адресою вул. Красносільського 59а\nДля реєстрації на навчання в нашій автошколі \nзаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500"
2022-06-23 21:00:30 +00:00
}
]
}
}
},
"name": "Facebook Graph API3",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
3280,
840
2022-06-23 21:00:30 +00:00
],
"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": [
2022-07-11 21:00:41 +00:00
2720,
840
2022-06-23 21:00:30 +00:00
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
2900,
840
2022-06-23 21:00:30 +00:00
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?4",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
3080,
840
2022-06-23 21:00:30 +00:00
]
2022-06-27 21:00:30 +00:00
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/count_banner.jpg",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
2022-06-29 21:00:55 +00:00
1500,
440
2022-06-27 21:00:30 +00:00
]
},
{
"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": [
2022-06-29 21:00:55 +00:00
1880,
440
2022-06-27 21:00:30 +00:00
],
"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",
2022-06-29 21:00:55 +00:00
"value": "=⏱ Продовжується набір в групу за адресою вул. Рокосовського 51\nДля реєстрації на навчання в нашій автошколі \nзаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500"
2022-06-27 21:00:30 +00:00
}
]
}
}
},
"name": "Facebook Graph API8",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2022-06-29 21:00:55 +00:00
2680,
420
2022-06-27 21:00:30 +00:00
],
"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": [
2022-06-29 21:00:55 +00:00
2060,
440
2022-06-27 21:00:30 +00:00
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2022-06-29 21:00:55 +00:00
2240,
440
2022-06-27 21:00:30 +00:00
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?5",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2022-06-29 21:00:55 +00:00
2440,
440
2022-06-27 21:00:30 +00:00
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
2022-06-29 21:00:55 +00:00
"text": "вул. Рокосовського 51",
2022-06-27 21:00:30 +00:00
"fontSize": 56,
"positionX": 550,
"positionY": 750,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
"positionY": 160,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "={{$json[\"recount\"]}}!",
"fontSize": 400,
"fontColor": "#FF0000",
2022-06-29 21:00:55 +00:00
"positionX": 850,
2022-06-27 21:00:30 +00:00
"positionY": 500,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image1",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2022-06-29 21:00:55 +00:00
1700,
440
2022-06-27 21:00:30 +00:00
]
},
{
"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": [
2022-07-11 21:00:41 +00:00
2560,
1300
2022-06-27 21:00:30 +00:00
],
"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",
2022-06-29 21:00:55 +00:00
"value": "=⏱ Продовжується набір в групу за адресою Проспект Перемоги 39\nДля реєстрації на навчання в нашій автошколі \nзаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500"
2022-06-27 21:00:30 +00:00
}
]
}
}
},
"name": "Facebook Graph API9",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
3300,
1300
2022-06-27 21:00:30 +00:00
],
"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": [
2022-07-11 21:00:41 +00:00
2740,
1300
2022-06-27 21:00:30 +00:00
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages6",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
2920,
1300
2022-06-27 21:00:30 +00:00
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?6",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
3100,
1300
2022-06-27 21:00:30 +00:00
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
"text": "Проспект Перемоги 39",
"fontSize": 56,
2022-07-11 21:00:41 +00:00
"fontColor": "#FFFFFF",
2022-06-27 21:00:30 +00:00
"positionX": 550,
2022-07-11 21:00:41 +00:00
"positionY": 580,
2022-06-27 21:00:30 +00:00
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
2022-07-11 21:00:41 +00:00
"positionY": 140,
2022-06-27 21:00:30 +00:00
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
2022-07-11 21:00:41 +00:00
"text": "={{$node[\"recount prospect\"].json[\"recount\"]}}!",
"fontSize": 300,
2022-06-27 21:00:30 +00:00
"fontColor": "#FF0000",
2022-07-11 21:00:41 +00:00
"positionX": 750,
"positionY": 300,
2022-06-27 21:00:30 +00:00
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image2",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
2400,
1300
2022-06-27 21:00:30 +00:00
]
2022-06-21 21:00:40 +00:00
},
2022-06-29 21:00:55 +00:00
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json[\"recount\"]}}",
2022-07-01 21:00:52 +00:00
"value2": 30
2022-06-29 21:00:55 +00:00
}
]
}
},
"name": "IF1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1200,
2022-07-11 21:00:41 +00:00
860
2022-06-21 21:00:40 +00:00
]
},
2022-06-29 21:00:55 +00:00
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json[\"recount\"]}}",
"value2": 24
}
]
}
},
"name": "IF2",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2022-07-11 21:00:41 +00:00
1220,
1300
2022-06-21 21:00:40 +00:00
]
},
2022-06-29 21:00:55 +00:00
{
"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
]
2022-07-11 21:00:41 +00:00
},
{
"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": [
2200,
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": [
2000,
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": [
2180,
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": [
2380,
840
]
2022-06-29 21:00:55 +00:00
}
],
"connections": {
"Facebook Graph API": {
2022-06-21 21:00:40 +00:00
"main": [
[
{
2022-06-29 21:00:55 +00:00
"node": "Facebook Graph API4",
2022-06-21 21:00:40 +00:00
"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": [
[
{
2022-06-22 21:00:33 +00:00
"node": "Merge",
2022-06-21 21:00:40 +00:00
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
{
"node": "HTTP Request2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request3",
"type": "main",
"index": 0
2022-06-22 21:00:33 +00:00
},
{
"node": "HTTP Request4",
"type": "main",
"index": 0
2022-06-21 21:00:40 +00:00
}
]
]
},
"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": {
2022-06-19 21:00:54 +00:00
"main": [
[
{
2022-06-21 21:00:40 +00:00
"node": "Set",
2022-06-19 21:00:54 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-21 21:00:40 +00:00
"Set": {
2022-06-19 21:00:54 +00:00
"main": [
[
{
2022-06-21 21:00:40 +00:00
"node": "Merge4",
2022-06-19 21:00:54 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-21 21:00:40 +00:00
"Merge4": {
2022-06-19 21:00:54 +00:00
"main": [
[
{
2022-06-21 21:00:40 +00:00
"node": "rokoss4",
"type": "main",
"index": 0
},
{
2022-06-22 21:00:33 +00:00
"node": "recount masani",
2022-06-19 21:00:54 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-21 21:00:40 +00:00
"masani1": {
2022-06-19 21:00:54 +00:00
"main": [
[
{
2022-06-21 21:00:40 +00:00
"node": "Merge4",
"type": "main",
"index": 1
}
]
]
},
"Get Pages1": {
"main": [
[
{
"node": "Split Pages1",
"type": "main",
"index": 0
}
]
]
},
"Split Pages1": {
"main": [
[
{
"node": "Is Tom Travels?1",
2022-06-19 21:00:54 +00:00
"type": "main",
"index": 0
}
]
]
2022-06-21 21:00:40 +00:00
},
"Is Tom Travels?1": {
"main": [
[
{
2022-06-22 21:00:33 +00:00
"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": [
[
{
2022-06-29 21:00:55 +00:00
"node": "IF2",
2022-06-22 21:00:33 +00:00
"type": "main",
"index": 0
}
]
2022-06-21 21:00:40 +00:00
]
2022-06-23 21:00:30 +00:00
},
"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": [
[
{
2022-06-29 21:00:55 +00:00
"node": "IF1",
2022-06-23 21:00:30 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-27 21:00:30 +00:00
"HTTP Request": {
"main": [
[
{
"node": "Edit Image1",
"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
}
]
]
},
"Edit Image1": {
"main": [
[
{
"node": "SSH",
"type": "main",
"index": 0
}
]
]
},
"recount rokoss": {
"main": [
[
{
2022-06-29 21:00:55 +00:00
"node": "Switch",
2022-06-27 21:00:30 +00:00
"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
}
]
]
2022-06-29 21:00:55 +00:00
},
"IF1": {
"main": [
[
{
2022-07-11 21:00:41 +00:00
"node": "HTTP Request11",
2022-06-29 21:00:55 +00:00
"type": "main",
"index": 0
}
]
]
},
"IF2": {
"main": [
[
{
2022-07-11 21:00:41 +00:00
"node": "HTTP Request8",
2022-06-29 21:00:55 +00:00
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
2022-07-11 21:00:41 +00:00
},
"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
}
]
]
2022-06-19 21:00:54 +00:00
}
},
"createdAt": "2022-06-18T21:12:12.483Z",
2022-07-11 21:00:41 +00:00
"updatedAt": "2022-07-11T19:38:16.811Z",
2022-06-21 21:00:40 +00:00
"settings": {
"errorWorkflow": "25"
},
2022-06-19 21:00:54 +00:00
"staticData": null,
"tags": [
{
"id": "1",
"name": "avtomoto25",
"createdAt": "2022-05-10T18:06:30.022Z",
"updatedAt": "2022-05-10T18:06:30.022Z"
}
]
}