Auto backup (2022-07-27T21:00:31.913Z)
This commit is contained in:
459
flows/36.json
459
flows/36.json
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user