Auto backup (2022-07-27T21:00:31.913Z)

This commit is contained in:
nia
2022-07-27 21:00:31 +00:00
parent 1ba2c6971b
commit 7fad800d59
5 changed files with 293 additions and 484 deletions

View File

@@ -9,8 +9,8 @@
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-480,
440
-40,
540
]
},
{
@@ -23,7 +23,7 @@
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
260,
160,
300
]
},
@@ -47,7 +47,7 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
520,
360,
300
]
},
@@ -60,7 +60,7 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
760,
540,
300
]
},
@@ -95,7 +95,7 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
980,
720,
300
]
},
@@ -114,73 +114,13 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1180,
900,
300
]
},
{
"parameters": {
"node": "Avtomoto25",
"options": {
"fields": {
"field": [
{
"name": "access_token"
}
]
}
}
},
"name": "Facebook Graph API",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1220,
780
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"node": "Avtomoto25/feed/",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "Hello fans"
},
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
}
]
}
}
},
"name": "Facebook Graph API1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1440,
780
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"graphApiVersion": "v14.0",
"node": "me",
"edge": "accounts",
"options": {}
@@ -189,8 +129,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
220,
740
1340,
300
],
"credentials": {
"facebookGraphApi": {
@@ -208,8 +148,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
500,
740
1540,
300
]
},
{
@@ -227,13 +167,14 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
740,
740
1740,
300
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v14.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
@@ -241,7 +182,7 @@
"parameter": [
{
"name": "message",
"value": "Розпочато запис на навчання за адресою: м. Чернігів вул. Рокосовського 51 Початок занятть: 20 липня 2022 року"
"value": "=Новий відгук від нашого випускника - {{$node[\"Merge\"].json[\"title\"]}}\n{{$node[\"Merge\"].json[\"content\"]}}"
},
{
"name": "access_token",
@@ -249,7 +190,7 @@
},
{
"name": "link",
"value": "https://avtomoto25.cn.ua/booking/"
"value": "={{$node[\"Merge\"].json[\"link\"]}}"
}
]
}
@@ -259,131 +200,14 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
960,
740
1960,
280
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
},
"disabled": true
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"additionalOptions": {}
},
"name": "rokoss1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
220,
900
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"value": 10,
"unit": "minutes"
}
]
}
},
"name": "Cron1",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-60,
900
],
"disabled": true
},
{
"parameters": {
"value1": "={{$json[\"id\"]}}",
"rules": {
"rules": [
{
"operation": "equal",
"value2": 1
},
{
"operation": "equal",
"value2": 2,
"output": 1
},
{
"operation": "equal",
"value2": 3,
"output": 2
}
]
},
"fallbackOutput": 3
},
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 1,
"position": [
440,
900
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
860,
960
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "вул. Рокосовського 51"
}
]
}
}
},
"name": "rokoss2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
440,
1100
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
@@ -396,30 +220,10 @@
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1460,
1140,
300
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Reviews",
"additionalOptions": {}
},
"name": "rokoss5",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1680,
560
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
@@ -431,7 +235,7 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1180,
900,
500
],
"credentials": {
@@ -452,8 +256,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1680,
300
1340,
500
],
"credentials": {
"gristApi": {
@@ -528,17 +332,6 @@
]
]
},
"Facebook Graph API": {
"main": [
[
{
"node": "Facebook Graph API1",
"type": "main",
"index": 0
}
]
]
},
"Get Pages": {
"main": [
[
@@ -572,50 +365,6 @@
]
]
},
"Cron1": {
"main": [
[
{
"node": "rokoss1",
"type": "main",
"index": 0
}
]
]
},
"rokoss1": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"rokoss2": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
@@ -634,6 +383,11 @@
"node": "review1",
"type": "main",
"index": 0
},
{
"node": "Get Pages",
"type": "main",
"index": 0
}
]
]
@@ -662,12 +416,12 @@
}
},
"createdAt": "2022-06-18T18:03:07.218Z",
"updatedAt": "2022-06-21T07:23:53.224Z",
"updatedAt": "2022-07-27T07:08:47.548Z",
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"pinData": null,
"pinData": {},
"tags": [
{
"id": "1",

View File

@@ -9,38 +9,10 @@
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-280,
280
-620,
340
]
},
{
"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",
@@ -221,8 +193,8 @@
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-340,
740
-620,
760
]
},
{
@@ -371,80 +343,6 @@
}
}
},
{
"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",
@@ -629,57 +527,6 @@
}
}
},
{
"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",
@@ -1947,20 +1794,185 @@
2380,
500
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {}
},
"name": "masani2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
-320,
140
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"url": "={{$json[\"url\"]}}",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request5",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
-140,
140
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract2",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
40,
140
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
240,
140
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {}
},
"name": "get all",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
240,
300
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge8",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
520,
160
]
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{24 - $json[\"count\"]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "recount",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
800,
160
]
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
}
]
}
},
"name": "rokoss",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1160,
320
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
},
"disabled": true
},
{
"parameters": {},
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"typeVersion": 1,
"position": [
800,
360
]
}
],
"connections": {
"Facebook Graph API": {
"main": [
[
{
"node": "Facebook Graph API4",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request2": {
"main": [
[
@@ -2055,6 +2067,11 @@
"node": "HTTP Request4",
"type": "main",
"index": 0
},
{
"node": "masani2",
"type": "main",
"index": 0
}
]
]
@@ -2108,39 +2125,6 @@
]
]
},
"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": [
[
@@ -2784,10 +2768,81 @@
}
]
]
},
"masani2": {
"main": [
[
{
"node": "HTTP Request5",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request5": {
"main": [
[
{
"node": "HTML Extract2",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract2": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "Merge8",
"type": "main",
"index": 0
}
]
]
},
"get all": {
"main": [
[
{
"node": "Merge8",
"type": "main",
"index": 1
}
]
]
},
"Merge8": {
"main": [
[
{
"node": "recount",
"type": "main",
"index": 0
},
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-18T21:12:12.483Z",
"updatedAt": "2022-07-22T17:38:41.592Z",
"updatedAt": "2022-07-27T17:56:54.713Z",
"settings": {
"errorWorkflow": "25"
},