2208 lines
53 KiB
JSON
Executable File
2208 lines
53 KiB
JSON
Executable File
{
|
||
"createdAt": "2022-06-20T08:36:58.934Z",
|
||
"updatedAt": "2022-07-23T17:27:51.261Z",
|
||
"id": 37,
|
||
"name": "avtomoto25 new date old",
|
||
"active": false,
|
||
"nodes": [
|
||
{
|
||
"parameters": {},
|
||
"name": "Start",
|
||
"type": "n8n-nodes-base.start",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-980,
|
||
420
|
||
],
|
||
"id": "e6316ceb-a46f-44b0-8a48-59227c5e79b0"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
|
||
"eventId": "31g2bcqsnqavh7e5deusa8b2oq\t",
|
||
"updateFields": {
|
||
"allday": "yes",
|
||
"end": "= {{$json[\"date\"][\"google\"]}} 23:00:00",
|
||
"start": "= {{$json[\"date\"][\"google\"]}} 01:00:00"
|
||
}
|
||
},
|
||
"name": "Google Calendar",
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
500,
|
||
680
|
||
],
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "6",
|
||
"name": "Google Calendar account"
|
||
}
|
||
},
|
||
"id": "adcfc788-d225-489a-8583-964d07545cc6"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
|
||
"eventId": "3ptu0erou5f816kglu1f2p0p28",
|
||
"updateFields": {
|
||
"allday": "yes",
|
||
"end": "={{$json[\"date\"][\"google\"]}} 23:00:00",
|
||
"start": "={{$json[\"date\"][\"google\"]}} 01:00:00"
|
||
}
|
||
},
|
||
"name": "Google Calendar3",
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
500,
|
||
2040
|
||
],
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "6",
|
||
"name": "Google Calendar account"
|
||
}
|
||
},
|
||
"id": "34018879-1499-4687-bc9a-ff33b44b0f52"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://note.cynic.club/shares/sJeGN4mi8Xgto8A85QS027",
|
||
"responseFormat": "string",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request2",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-500,
|
||
500
|
||
],
|
||
"id": "07c21a9f-f084-4388-bc27-fd00d40cae88"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://note.cynic.club/shares/wjFwc3x9h7lDRK9BlubQC0",
|
||
"responseFormat": "string",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request3",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-520,
|
||
1040
|
||
],
|
||
"id": "2f8146e5-3bc8-46e1-af9e-b71890ed3a1c"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://note.cynic.club/shares/978uO9kCnw65J1TMaH0XeR",
|
||
"responseFormat": "string",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request4",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-520,
|
||
1700
|
||
],
|
||
"id": "6e49b688-7938-4df8-b13a-7e22a9a64b27"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"triggerTimes": {
|
||
"item": [
|
||
{
|
||
"mode": "everyX",
|
||
"value": 10,
|
||
"unit": "minutes"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "Cron",
|
||
"type": "n8n-nodes-base.cron",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-960,
|
||
980
|
||
],
|
||
"id": "b4d65f9f-47b5-453a-b1e6-cada9eb99bc1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||
"tableId": "Classrooms",
|
||
"returnAll": true,
|
||
"additionalOptions": {
|
||
"filter": {
|
||
"filterProperties": [
|
||
{
|
||
"field": "address",
|
||
"values": "вул. Рокосовського 51"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"name": "rokoss1",
|
||
"type": "n8n-nodes-base.grist",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-100,
|
||
700
|
||
],
|
||
"credentials": {
|
||
"gristApi": {
|
||
"id": "21",
|
||
"name": "Grist account"
|
||
}
|
||
},
|
||
"id": "551b6830-739f-4551-9d9e-1aa1f090d3a7"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||
"tableId": "Classrooms",
|
||
"returnAll": true,
|
||
"additionalOptions": {
|
||
"filter": {
|
||
"filterProperties": [
|
||
{
|
||
"field": "address",
|
||
"values": "вул. Красносільського 59а"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"name": "masani2",
|
||
"type": "n8n-nodes-base.grist",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-100,
|
||
1220
|
||
],
|
||
"credentials": {
|
||
"gristApi": {
|
||
"id": "21",
|
||
"name": "Grist account"
|
||
}
|
||
},
|
||
"id": "d2810153-93cf-4842-97cb-a39885b428f1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
|
||
"eventId": "397fskc0hc9vfl1dqffnbjlm7k",
|
||
"updateFields": {
|
||
"allday": "yes",
|
||
"end": "= {{$json[\"date\"][\"google\"]}} 23:00:00",
|
||
"start": "= {{$json[\"date\"][\"google\"]}} 01:00:00"
|
||
}
|
||
},
|
||
"name": "Google Calendar4",
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
500,
|
||
1420
|
||
],
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "6",
|
||
"name": "Google Calendar account"
|
||
}
|
||
},
|
||
"id": "2738cb09-1a8a-4a63-907e-4a3e052d6a2a"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||
"tableId": "Classrooms",
|
||
"returnAll": true,
|
||
"additionalOptions": {
|
||
"filter": {
|
||
"filterProperties": [
|
||
{
|
||
"field": "address",
|
||
"values": "Проспект Перемоги 39"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"name": "prospect",
|
||
"type": "n8n-nodes-base.grist",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-100,
|
||
1900
|
||
],
|
||
"credentials": {
|
||
"gristApi": {
|
||
"id": "21",
|
||
"name": "Grist account"
|
||
}
|
||
},
|
||
"id": "51f28315-d2e1-473c-97de-0709483c4c38"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"extractionValues": {
|
||
"values": [
|
||
{
|
||
"key": "data",
|
||
"cssSelector": "li",
|
||
"returnArray": true
|
||
},
|
||
{
|
||
"key": "schedule",
|
||
"cssSelector": "label.checkbox-label-checked",
|
||
"returnArray": true
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"name": "HTML Extract",
|
||
"type": "n8n-nodes-base.htmlExtract",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-280,
|
||
500
|
||
],
|
||
"id": "43fcafb5-fd23-4085-b05c-06af62c32c6a"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"keepOnlySet": true,
|
||
"values": {
|
||
"string": [
|
||
{
|
||
"name": "date.ua",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
|
||
},
|
||
{
|
||
"name": "date.ru",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
|
||
},
|
||
{
|
||
"name": "schedule.ua.day1",
|
||
"value": "={{$json[\"schedule\"][0]}}"
|
||
},
|
||
{
|
||
"name": "schedule.ua.day2",
|
||
"value": "={{$json[\"schedule\"][1]}}"
|
||
},
|
||
{
|
||
"name": "schedule.ru.day1",
|
||
"value": "={{$json[\"schedule\"][0].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
|
||
},
|
||
{
|
||
"name": "schedule.ru.day2",
|
||
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
|
||
},
|
||
{
|
||
"name": "schedule.time.day1",
|
||
"value": "={{$json[\"data\"][9]}}"
|
||
},
|
||
{
|
||
"name": "schedule.time.day2",
|
||
"value": "={{$json[\"data\"][10]}}"
|
||
},
|
||
{
|
||
"name": "date.google",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
|
||
}
|
||
]
|
||
},
|
||
"options": {
|
||
"dotNotation": true
|
||
}
|
||
},
|
||
"name": "Set rokoss",
|
||
"type": "n8n-nodes-base.set",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-100,
|
||
500
|
||
],
|
||
"id": "5bcd105f-306e-4b9b-91bd-c529816a1098"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||
"tableId": "Classrooms",
|
||
"rowId": "1",
|
||
"fieldsToSend": {
|
||
"properties": [
|
||
{
|
||
"fieldId": "date_ru",
|
||
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "date_ua",
|
||
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_1_ua",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_2_ua",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "time",
|
||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day1\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_1_ru",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_2_ru",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "date",
|
||
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "time_2",
|
||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day2\"]}}"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "rokoss2",
|
||
"type": "n8n-nodes-base.grist",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
500,
|
||
520
|
||
],
|
||
"credentials": {
|
||
"gristApi": {
|
||
"id": "21",
|
||
"name": "Grist account"
|
||
}
|
||
},
|
||
"id": "494e68de-36fe-43ed-9491-35760c6ca042"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "multiStep",
|
||
"operations": {
|
||
"operations": [
|
||
{
|
||
"operation": "text",
|
||
"text": "Розпочато запис на \nнавчання за адресою",
|
||
"fontSize": 64,
|
||
"fontColor": "#EDEDED",
|
||
"positionX": 450,
|
||
"positionY": 100
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "вул. Рокосовського 51",
|
||
"fontSize": 80,
|
||
"fontColor": "#FFFFFF",
|
||
"positionY": 400,
|
||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "Початок занятть",
|
||
"fontSize": 36,
|
||
"fontColor": "#EDEDED",
|
||
"positionY": 520
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "={{$node[\"Merge rokoss\"].json[\"date\"][\"ua\"]}}",
|
||
"fontSize": 56,
|
||
"fontColor": "#FFFFFF",
|
||
"positionY": 580,
|
||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"name": "Edit Image",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1380,
|
||
340
|
||
],
|
||
"id": "e159eabf-e57d-46d3-91cd-9d5d50cdd803"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"resource": "file",
|
||
"binaryPropertyName": "=data",
|
||
"path": "/var/www/html/driving_school/wp-content/uploads/",
|
||
"options": {
|
||
"fileName": "new_data_rokoss.jpg"
|
||
}
|
||
},
|
||
"name": "SSH",
|
||
"type": "n8n-nodes-base.ssh",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1560,
|
||
340
|
||
],
|
||
"credentials": {
|
||
"sshPassword": {
|
||
"id": "14",
|
||
"name": "SSH Password account"
|
||
}
|
||
},
|
||
"id": "1da42731-8df4-47a5-ba4d-5d9369cd73fe"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"graphApiVersion": "v14.0",
|
||
"node": "me",
|
||
"edge": "accounts",
|
||
"options": {}
|
||
},
|
||
"name": "Get Pages1",
|
||
"type": "n8n-nodes-base.facebookGraphApi",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1720,
|
||
340
|
||
],
|
||
"credentials": {
|
||
"facebookGraphApi": {
|
||
"id": "36",
|
||
"name": "Facebook Graph account"
|
||
}
|
||
},
|
||
"id": "60f3c26f-8260-48d5-95ba-cbcd28e6e133"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"fieldToSplitOut": "data",
|
||
"options": {}
|
||
},
|
||
"name": "Split Pages1",
|
||
"type": "n8n-nodes-base.itemLists",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1900,
|
||
340
|
||
],
|
||
"id": "aaf96d5c-30c7-4568-a5df-f7c19f47983e"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"string": [
|
||
{
|
||
"value1": "={{$json[\"id\"]}}",
|
||
"value2": "105101524930750"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "Is Tom Travels?1",
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
2080,
|
||
340
|
||
],
|
||
"id": "59bd187f-efa1-4746-a932-f38c6da91420"
|
||
},
|
||
{
|
||
"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/new_data_rokoss.jpg"
|
||
},
|
||
{
|
||
"name": "caption",
|
||
"value": "Розпочато нову реєстрацію на навчання в нашій автошколі. \nЗаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500\n"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"name": "Facebook Graph API",
|
||
"type": "n8n-nodes-base.facebookGraphApi",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
2300,
|
||
340
|
||
],
|
||
"credentials": {
|
||
"facebookGraphApi": {
|
||
"id": "36",
|
||
"name": "Facebook Graph account"
|
||
}
|
||
},
|
||
"id": "c1c88b5b-f38e-4d5f-8e62-d3c865c5105f"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"keepOnlySet": true,
|
||
"values": {
|
||
"string": [
|
||
{
|
||
"name": "date.ua",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
|
||
},
|
||
{
|
||
"name": "date.ru",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
|
||
},
|
||
{
|
||
"name": "schedule.ua.day1",
|
||
"value": "={{$json[\"schedule\"][0]}}"
|
||
},
|
||
{
|
||
"name": "schedule.ua.day2",
|
||
"value": "={{$json[\"schedule\"][1]}}"
|
||
},
|
||
{
|
||
"name": "schedule.ru.day1",
|
||
"value": "={{$json[\"schedule\"][0].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
|
||
},
|
||
{
|
||
"name": "schedule.ru.day2",
|
||
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
|
||
},
|
||
{
|
||
"name": "schedule.time",
|
||
"value": "={{$json[\"data\"][9]}}"
|
||
},
|
||
{
|
||
"name": "date.google",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
|
||
}
|
||
]
|
||
},
|
||
"options": {
|
||
"dotNotation": true
|
||
}
|
||
},
|
||
"name": "Set masani",
|
||
"type": "n8n-nodes-base.set",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-100,
|
||
1040
|
||
],
|
||
"id": "29020a97-2ce3-4c5e-86bc-60921a9afeb7"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"extractionValues": {
|
||
"values": [
|
||
{
|
||
"key": "data",
|
||
"cssSelector": "li",
|
||
"returnArray": true
|
||
},
|
||
{
|
||
"key": "schedule",
|
||
"cssSelector": "label.checkbox-label-checked",
|
||
"returnArray": true
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"name": "HTML Extract1",
|
||
"type": "n8n-nodes-base.htmlExtract",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-280,
|
||
1040
|
||
],
|
||
"id": "1dc7b78b-5997-41b4-b564-8ff2cf945d56"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"resource": "file",
|
||
"binaryPropertyName": "=data",
|
||
"path": "/var/www/html/driving_school/wp-content/uploads/",
|
||
"options": {
|
||
"fileName": "new_data_masani.jpg"
|
||
}
|
||
},
|
||
"name": "SSH2",
|
||
"type": "n8n-nodes-base.ssh",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1580,
|
||
920
|
||
],
|
||
"credentials": {
|
||
"sshPassword": {
|
||
"id": "14",
|
||
"name": "SSH Password account"
|
||
}
|
||
},
|
||
"id": "295d08b9-38ee-458d-b530-28d7c92530b2"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"graphApiVersion": "v14.0",
|
||
"node": "me",
|
||
"edge": "accounts",
|
||
"options": {}
|
||
},
|
||
"name": "Get Pages3",
|
||
"type": "n8n-nodes-base.facebookGraphApi",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1740,
|
||
920
|
||
],
|
||
"credentials": {
|
||
"facebookGraphApi": {
|
||
"id": "36",
|
||
"name": "Facebook Graph account"
|
||
}
|
||
},
|
||
"id": "2adcd60d-7130-46c1-9e23-e1d365d9e013"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"fieldToSplitOut": "data",
|
||
"options": {}
|
||
},
|
||
"name": "Split Pages3",
|
||
"type": "n8n-nodes-base.itemLists",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1920,
|
||
920
|
||
],
|
||
"id": "20157992-0451-4a43-ac9c-50974e40bbe1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"string": [
|
||
{
|
||
"value1": "={{$json[\"id\"]}}",
|
||
"value2": "105101524930750"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "Is Tom Travels?3",
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
2100,
|
||
920
|
||
],
|
||
"id": "f7411385-72d3-4613-a6ac-a90c74dc4bb7"
|
||
},
|
||
{
|
||
"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/new_data_masani.jpg"
|
||
},
|
||
{
|
||
"name": "caption",
|
||
"value": "Розпочато нову реєстрацію на навчання в нашій автошколі. \nЗаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500\n"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"name": "Facebook Graph API3",
|
||
"type": "n8n-nodes-base.facebookGraphApi",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
2340,
|
||
920
|
||
],
|
||
"credentials": {
|
||
"facebookGraphApi": {
|
||
"id": "36",
|
||
"name": "Facebook Graph account"
|
||
}
|
||
},
|
||
"id": "0c029ead-6d75-4204-9dc6-f1d28642e1fa"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||
"tableId": "Classrooms",
|
||
"rowId": "2",
|
||
"fieldsToSend": {
|
||
"properties": [
|
||
{
|
||
"fieldId": "date_ru",
|
||
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "date_ua",
|
||
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_1_ua",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_2_ua",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "time",
|
||
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_1_ru",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_2_ru",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "date",
|
||
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "masani",
|
||
"type": "n8n-nodes-base.grist",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
500,
|
||
1280
|
||
],
|
||
"credentials": {
|
||
"gristApi": {
|
||
"id": "21",
|
||
"name": "Grist account"
|
||
}
|
||
},
|
||
"id": "a952aa86-86c8-48d2-a639-05e78f72adf8"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"extractionValues": {
|
||
"values": [
|
||
{
|
||
"key": "data",
|
||
"cssSelector": "li",
|
||
"returnArray": true
|
||
},
|
||
{
|
||
"key": "schedule",
|
||
"cssSelector": "label.checkbox-label-checked",
|
||
"returnArray": true
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"name": "HTML Extract2",
|
||
"type": "n8n-nodes-base.htmlExtract",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-280,
|
||
1700
|
||
],
|
||
"id": "8234751e-2e7c-4d5a-879c-c2cb8e11b09a"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"keepOnlySet": true,
|
||
"values": {
|
||
"string": [
|
||
{
|
||
"name": "date.ua",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
|
||
},
|
||
{
|
||
"name": "date.ru",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
|
||
},
|
||
{
|
||
"name": "schedule.ua.day1",
|
||
"value": "={{$json[\"schedule\"][0]}}"
|
||
},
|
||
{
|
||
"name": "schedule.ua.day2",
|
||
"value": "={{$json[\"schedule\"][1]}}"
|
||
},
|
||
{
|
||
"name": "schedule.ru.day1",
|
||
"value": "={{$json[\"schedule\"][0].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
|
||
},
|
||
{
|
||
"name": "schedule.ru.day2",
|
||
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
|
||
},
|
||
{
|
||
"name": "schedule.time",
|
||
"value": "={{$json[\"data\"][9]}}"
|
||
},
|
||
{
|
||
"name": "date.google",
|
||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
|
||
}
|
||
]
|
||
},
|
||
"options": {
|
||
"dotNotation": true
|
||
}
|
||
},
|
||
"name": "Set prospect",
|
||
"type": "n8n-nodes-base.set",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-100,
|
||
1700
|
||
],
|
||
"id": "21d42488-dc28-432b-b756-6ae6a40e2b4d"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||
"tableId": "Classrooms",
|
||
"rowId": "3",
|
||
"fieldsToSend": {
|
||
"properties": [
|
||
{
|
||
"fieldId": "date_ru",
|
||
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "date_ua",
|
||
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_1_ua",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_2_ua",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "time",
|
||
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_1_ru",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "day_2_ru",
|
||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "date",
|
||
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "prospect1",
|
||
"type": "n8n-nodes-base.grist",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
500,
|
||
1880
|
||
],
|
||
"credentials": {
|
||
"gristApi": {
|
||
"id": "21",
|
||
"name": "Grist account"
|
||
}
|
||
},
|
||
"id": "f52001db-e02d-4b4d-b43b-7d9c0f1aedee"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "={{$json[\"urls\"][\"full\"]}}",
|
||
"responseFormat": "file",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request12",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
680,
|
||
340
|
||
],
|
||
"id": "2f10ea9e-a59a-466c-999c-f700405c949e"
|
||
},
|
||
{
|
||
"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": [
|
||
840,
|
||
500
|
||
],
|
||
"id": "83b81ef2-3ecf-41b9-ba41-46018a96e1ed"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "composite",
|
||
"dataPropertyNameComposite": "data2",
|
||
"operator": "Plus",
|
||
"positionX": 50,
|
||
"positionY": 50,
|
||
"options": {}
|
||
},
|
||
"name": "Edit Image7",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1200,
|
||
340
|
||
],
|
||
"id": "13a26244-36c1-4de7-b0cd-66180445fd61"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://api.unsplash.com/photos/random?query=schedule",
|
||
"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": [
|
||
500,
|
||
340
|
||
],
|
||
"id": "78bcce02-6978-4219-b9da-59b5faa24305"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"mode": "mergeByIndex",
|
||
"join": "inner"
|
||
},
|
||
"name": "Merge",
|
||
"type": "n8n-nodes-base.merge",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1020,
|
||
340
|
||
],
|
||
"id": "0774d0fe-8d1b-44de-9aba-b79eb663759c"
|
||
},
|
||
{
|
||
"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 Image1",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
840,
|
||
340
|
||
],
|
||
"id": "db220c55-4076-4c5b-951a-dda87f8a3f57"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"mode": "removeKeyMatches",
|
||
"propertyName1": "date.google",
|
||
"propertyName2": "date"
|
||
},
|
||
"name": "Merge rokoss",
|
||
"type": "n8n-nodes-base.merge",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
160,
|
||
520
|
||
],
|
||
"id": "a4a12797-e040-4e10-bbf3-9f5bc4805c89"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "multiStep",
|
||
"operations": {
|
||
"operations": [
|
||
{
|
||
"operation": "text",
|
||
"text": "Розпочато запис на \nнавчання за адресою",
|
||
"fontSize": 64,
|
||
"fontColor": "#EDEDED",
|
||
"positionX": 450,
|
||
"positionY": 100
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "вул. Красносільського 59а",
|
||
"fontSize": 80,
|
||
"fontColor": "#FFFFFF",
|
||
"positionY": 400,
|
||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "Початок занятть",
|
||
"fontSize": 36,
|
||
"fontColor": "#EDEDED",
|
||
"positionY": 520
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "={{$node[\"Merge masani\"].json[\"date\"][\"ua\"]}}",
|
||
"fontSize": 56,
|
||
"fontColor": "#FFFFFF",
|
||
"positionY": 580,
|
||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"name": "Edit Image4",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1400,
|
||
920
|
||
],
|
||
"id": "d8e710f4-681f-4e6c-8a13-b7da5db690cc"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "={{$json[\"urls\"][\"full\"]}}",
|
||
"responseFormat": "file",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request15",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
680,
|
||
920
|
||
],
|
||
"id": "713e4faf-48d0-4d12-9ef9-6db9ff99f430"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
|
||
"responseFormat": "file",
|
||
"dataPropertyName": "data2",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request16",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
860,
|
||
1080
|
||
],
|
||
"id": "d8253525-bde4-4e0c-806c-cabd3fcc6526"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "composite",
|
||
"dataPropertyNameComposite": "data2",
|
||
"operator": "Plus",
|
||
"positionX": 50,
|
||
"positionY": 50,
|
||
"options": {}
|
||
},
|
||
"name": "Edit Image8",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1220,
|
||
920
|
||
],
|
||
"id": "dea026bc-cb31-4a82-b0b5-fd6b2b3dc731"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://api.unsplash.com/photos/random?query=schedule",
|
||
"options": {},
|
||
"headerParametersUi": {
|
||
"parameter": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
|
||
}
|
||
]
|
||
},
|
||
"queryParametersUi": {
|
||
"parameter": [
|
||
{
|
||
"name": "orientation",
|
||
"value": "landscape"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "HTTP Request17",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
500,
|
||
920
|
||
],
|
||
"id": "af1f782b-dc95-4da3-ad40-de24e5c6a92e"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"mode": "mergeByIndex",
|
||
"join": "inner"
|
||
},
|
||
"name": "Merge1",
|
||
"type": "n8n-nodes-base.merge",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1040,
|
||
920
|
||
],
|
||
"id": "eed8de2c-3a2f-4504-8ed3-d6568cd38106"
|
||
},
|
||
{
|
||
"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": [
|
||
860,
|
||
920
|
||
],
|
||
"id": "89058f56-de04-47cd-99a3-26bd927c4abe"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"mode": "removeKeyMatches",
|
||
"propertyName1": "date.google",
|
||
"propertyName2": "date"
|
||
},
|
||
"name": "Merge masani",
|
||
"type": "n8n-nodes-base.merge",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
160,
|
||
1060
|
||
],
|
||
"id": "6956f9bb-9870-41e5-8b77-e74357090145"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"resource": "file",
|
||
"binaryPropertyName": "=data",
|
||
"path": "/var/www/html/driving_school/wp-content/uploads/",
|
||
"options": {
|
||
"fileName": "new_data_masani.jpg"
|
||
}
|
||
},
|
||
"name": "SSH5",
|
||
"type": "n8n-nodes-base.ssh",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1580,
|
||
1660
|
||
],
|
||
"credentials": {
|
||
"sshPassword": {
|
||
"id": "14",
|
||
"name": "SSH Password account"
|
||
}
|
||
},
|
||
"id": "84be0f2b-4fd2-48e2-a95a-375755645779"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"graphApiVersion": "v14.0",
|
||
"node": "me",
|
||
"edge": "accounts",
|
||
"options": {}
|
||
},
|
||
"name": "Get Pages5",
|
||
"type": "n8n-nodes-base.facebookGraphApi",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1740,
|
||
1660
|
||
],
|
||
"credentials": {
|
||
"facebookGraphApi": {
|
||
"id": "36",
|
||
"name": "Facebook Graph account"
|
||
}
|
||
},
|
||
"id": "50fbf8d7-7ef2-402e-aba2-916fa5a0af49"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"fieldToSplitOut": "data",
|
||
"options": {}
|
||
},
|
||
"name": "Split Pages5",
|
||
"type": "n8n-nodes-base.itemLists",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1920,
|
||
1660
|
||
],
|
||
"id": "a3d2e33c-e600-4f12-8a50-20ddcd0e0e36"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"string": [
|
||
{
|
||
"value1": "={{$json[\"id\"]}}",
|
||
"value2": "105101524930750"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "Is Tom Travels?5",
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
2100,
|
||
1660
|
||
],
|
||
"id": "40128954-60f3-45e8-bcc8-3a9c2d65c2c5"
|
||
},
|
||
{
|
||
"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/new_data_masani.jpg"
|
||
},
|
||
{
|
||
"name": "caption",
|
||
"value": "Розпочато нову реєстрацію на навчання в нашій автошколі. \nЗаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500\n"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"name": "Facebook Graph API6",
|
||
"type": "n8n-nodes-base.facebookGraphApi",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
2360,
|
||
1640
|
||
],
|
||
"credentials": {
|
||
"facebookGraphApi": {
|
||
"id": "36",
|
||
"name": "Facebook Graph account"
|
||
}
|
||
},
|
||
"id": "dc6dd043-972d-43b1-a948-061f0d751a11"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "multiStep",
|
||
"operations": {
|
||
"operations": [
|
||
{
|
||
"operation": "text",
|
||
"text": "Розпочато запис на \nнавчання за адресою",
|
||
"fontSize": 64,
|
||
"fontColor": "#EDEDED",
|
||
"positionX": 450,
|
||
"positionY": 100
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "Проспект Перемоги 39",
|
||
"fontSize": 80,
|
||
"fontColor": "#FFFFFF",
|
||
"positionY": 400,
|
||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "Початок занятть",
|
||
"fontSize": 36,
|
||
"fontColor": "#EDEDED",
|
||
"positionY": 520
|
||
},
|
||
{
|
||
"operation": "text",
|
||
"text": "={{$node[\"Merge prospect\"].json[\"date\"][\"ua\"]}}",
|
||
"fontSize": 56,
|
||
"fontColor": "#FFFFFF",
|
||
"positionY": 580,
|
||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"name": "Edit Image11",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1400,
|
||
1660
|
||
],
|
||
"id": "dc06d117-fb6b-48a9-a70c-5622170c48c1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "={{$json[\"urls\"][\"full\"]}}",
|
||
"responseFormat": "file",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request21",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
680,
|
||
1660
|
||
],
|
||
"id": "987be6d3-4495-4cc5-a37e-fd0ce58b408f"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
|
||
"responseFormat": "file",
|
||
"dataPropertyName": "data2",
|
||
"options": {}
|
||
},
|
||
"name": "HTTP Request22",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
860,
|
||
1820
|
||
],
|
||
"id": "51a27b72-8729-477a-a939-723939c4ba00"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "composite",
|
||
"dataPropertyNameComposite": "data2",
|
||
"operator": "Plus",
|
||
"positionX": 50,
|
||
"positionY": 50,
|
||
"options": {}
|
||
},
|
||
"name": "Edit Image12",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1220,
|
||
1660
|
||
],
|
||
"id": "70c24623-ea1e-4548-b057-def6ff85adb8"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://api.unsplash.com/photos/random?query=schedule",
|
||
"options": {},
|
||
"headerParametersUi": {
|
||
"parameter": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
|
||
}
|
||
]
|
||
},
|
||
"queryParametersUi": {
|
||
"parameter": [
|
||
{
|
||
"name": "orientation",
|
||
"value": "landscape"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "HTTP Request23",
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
500,
|
||
1660
|
||
],
|
||
"id": "898e2921-faa0-49a0-82f1-2ed255da60b5"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"mode": "mergeByIndex",
|
||
"join": "inner"
|
||
},
|
||
"name": "Merge3",
|
||
"type": "n8n-nodes-base.merge",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1040,
|
||
1660
|
||
],
|
||
"id": "a1731a83-132c-4686-8cc3-cb41e0a34aa1"
|
||
},
|
||
{
|
||
"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 Image13",
|
||
"type": "n8n-nodes-base.editImage",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
860,
|
||
1660
|
||
],
|
||
"id": "bd9bcec0-c4dd-46fa-97a5-67f8d04c5f48"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"mode": "removeKeyMatches",
|
||
"propertyName1": "date.google",
|
||
"propertyName2": "date"
|
||
},
|
||
"name": "Merge prospect",
|
||
"type": "n8n-nodes-base.merge",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
160,
|
||
1720
|
||
],
|
||
"id": "eb6c97bf-b315-498f-a601-343715c7655b"
|
||
}
|
||
],
|
||
"connections": {
|
||
"HTTP Request2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTML Extract",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request3": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTML Extract1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request4": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTML Extract2",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Cron": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTTP Request3",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "HTTP Request4",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"rokoss1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge rokoss",
|
||
"type": "main",
|
||
"index": 1
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"masani2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge masani",
|
||
"type": "main",
|
||
"index": 1
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"prospect": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge prospect",
|
||
"type": "main",
|
||
"index": 1
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTML Extract": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Set rokoss",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Set rokoss": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge rokoss",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"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 API",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"SSH": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get Pages1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Set masani": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge masani",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTML Extract1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Set masani",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"SSH2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get Pages3",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"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 API3",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTML Extract2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Set prospect",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Set prospect": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge prospect",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request12": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request13": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge",
|
||
"type": "main",
|
||
"index": 1
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image7": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request14": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTTP Request12",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Merge": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image7",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Merge rokoss": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Google Calendar",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "rokoss2",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "HTTP Request14",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "SSH",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image4": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "SSH2",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request15": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image5",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request16": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge1",
|
||
"type": "main",
|
||
"index": 1
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image8": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image4",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request17": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTTP Request15",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Merge1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image8",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image5": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Merge masani": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Google Calendar4",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "masani",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "HTTP Request17",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"SSH5": {
|
||
"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 API6",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image11": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "SSH5",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request21": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image13",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request22": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge3",
|
||
"type": "main",
|
||
"index": 1
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image12": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image11",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request23": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTTP Request21",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Merge3": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Edit Image12",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Edit Image13": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge3",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Merge prospect": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Google Calendar3",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "prospect1",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "HTTP Request23",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
}
|
||
},
|
||
"settings": {
|
||
"errorWorkflow": "25"
|
||
},
|
||
"staticData": null,
|
||
"pinData": {},
|
||
"tags": [
|
||
{
|
||
"createdAt": "2022-05-10T18:06:30.022Z",
|
||
"updatedAt": "2022-05-10T18:06:30.022Z",
|
||
"id": "1",
|
||
"name": "avtomoto25"
|
||
}
|
||
],
|
||
"hash": "8872c44a0e8add42e4ac87face19a5ed"
|
||
} |