Auto backup (2022-08-23T21:00:20.561Z)

This commit is contained in:
nia
2022-08-23 21:00:20 +00:00
parent 4731ee5b51
commit a0cc543213
6 changed files with 316 additions and 32 deletions

View File

@@ -280,11 +280,11 @@
}
},
"createdAt": "2022-04-29T05:12:17.339Z",
"updatedAt": "2022-08-22T09:33:19.763Z",
"updatedAt": "2022-08-23T08:02:11.622Z",
"settings": {},
"staticData": {
"node:IMAP Email": {
"lastMessageUid": 6512
"lastMessageUid": 6513
}
},
"pinData": {},

View File

@@ -1,7 +1,7 @@
{
"id": 19,
"name": "facebook mesages",
"active": true,
"active": false,
"nodes": [
{
"parameters": {},
@@ -32,13 +32,13 @@
380
],
"alwaysOutputData": false,
"id": "cb8030a4-a351-41c5-8d29-69811c917fc0",
"credentials": {
"gmailOAuth2": {
"id": "23",
"name": "Gmail account"
}
},
"id": "cb8030a4-a351-41c5-8d29-69811c917fc0"
}
},
{
"parameters": {
@@ -74,13 +74,13 @@
1020,
380
],
"id": "bdc17a68-8d26-4ecf-9267-bfb0825e2560",
"credentials": {
"telegramApi": {
"id": "15",
"name": "avtomoto25"
}
},
"id": "bdc17a68-8d26-4ecf-9267-bfb0825e2560"
}
},
{
"parameters": {
@@ -96,13 +96,13 @@
160
],
"alwaysOutputData": true,
"id": "f2e3bd52-5e94-41f9-abcb-444f0a5a9ea6",
"credentials": {
"gmailOAuth2": {
"id": "23",
"name": "Gmail account"
}
},
"id": "f2e3bd52-5e94-41f9-abcb-444f0a5a9ea6"
}
}
],
"connections": {
@@ -135,13 +135,13 @@
}
},
"createdAt": "2022-05-10T18:18:51.319Z",
"updatedAt": "2022-06-21T03:20:55.092Z",
"updatedAt": "2022-08-23T17:06:13.494Z",
"settings": {
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"
},
"staticData": null,
"pinData": null,
"pinData": {},
"tags": [
{
"id": "1",

View File

@@ -149,8 +149,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1420,
120
1520,
320
],
"id": "2c143579-e33d-4601-a23c-3b78479fd064",
"credentials": {
@@ -248,8 +248,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1600,
120
1740,
320
]
},
{
@@ -261,8 +261,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1780,
120
1920,
320
]
},
{
@@ -302,7 +302,7 @@
{
"value1": "={{$json[\"data\"][\"updated_time\"]}}",
"operation": "=after",
"value2": "={{$today.minus({days: 1})}}"
"value2": "={{$today.minus({days: 7})}}"
}
]
}
@@ -312,7 +312,7 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1200,
1220,
140
]
},
@@ -336,6 +336,235 @@
-240,
160
]
},
{
"parameters": {
"operation": "create",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Messages",
"fieldsToSend": {
"properties": [
{
"fieldId": "date",
"fieldValue": "={{ $json[\"created_time\"] }}"
},
{
"fieldId": "user_id",
"fieldValue": "={{$json[\"from\"][\"id\"]}}"
},
{
"fieldId": "message_id",
"fieldValue": "={{ $json[\"id\"] }}"
},
{
"fieldId": "message",
"fieldValue": "={{ $json[\"message\"] }}"
}
]
}
},
"id": "bedb684f-8790-4142-b4cf-bd97a639d3da",
"name": "Grist",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2160,
120
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"graphApiVersion": "v14.0",
"node": "={{$json[\"data\"][\"id\"]}}",
"edge": "messages",
"options": {
"fields": {
"field": [
{
"name": "message"
},
{
"name": "created_time"
},
{
"name": "from"
},
{
"name": "to"
},
{
"name": "tags"
},
{
"name": "id"
}
]
},
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$json[\"token\"]}}"
},
{
"name": "fields ",
"value": "message"
}
]
}
}
},
"name": "Facebook Graph API4",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1360,
-160
],
"id": "4ca110a1-3d4c-4888-9bdc-76862fab4791",
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"id": "665f7bc0-aa15-478a-984f-30564d104da5",
"name": "Item Lists3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1560,
-160
]
},
{
"parameters": {
"operation": "limit"
},
"id": "9be52810-7021-48cc-a92f-0602e9ca62b4",
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2320,
0
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"from\"][\"id\"]}}",
"operation": "notContains",
"value2": "105101524930750"
}
]
}
},
"id": "1c0fe986-90b7-4446-bb17-c7454f7f0678",
"name": "IF1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1740,
-160
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "id",
"propertyName2": "message_id"
},
"id": "9110d11a-0d12-4a69-892e-e4cbd6c2d73c",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1960,
-40
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Messages",
"returnAll": true,
"additionalOptions": {}
},
"id": "4f62146b-cc28-4621-8076-e608f0ac4058",
"name": "Grist1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1740,
80
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"chatId": "-1001369967688",
"text": "=Заявку скасовано",
"additionalFields": {
"parse_mode": "Markdown"
}
},
"name": "Telegram2",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
440,
400
],
"id": "2669e981-600b-424e-853b-c4b03f85042a",
"credentials": {
"telegramApi": {
"id": "15",
"name": "avtomoto25"
}
}
},
{
"parameters": {
"chatId": "-1001369967688",
"text": "=📫 <b>Повідомлення у Facebook</b> 📫\nвід: <b>{{$json[\"from\"][\"id\"]}}</b>\nповідомлення: <b>{{$json[\"message\"]}}</b>",
"additionalFields": {
"parse_mode": "HTML"
}
},
"id": "9737e0ab-7b49-4dc6-8075-869878647ae7",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
2180,
-180
],
"credentials": {
"telegramApi": {
"id": "15",
"name": "avtomoto25"
}
}
}
],
"connections": {
@@ -361,11 +590,6 @@
]
]
},
"Start": {
"main": [
[]
]
},
"Facebook Graph API": {
"main": [
[
@@ -436,7 +660,7 @@
"main": [
[
{
"node": "Facebook Graph API1",
"node": "Facebook Graph API4",
"type": "main",
"index": 0
}
@@ -453,10 +677,70 @@
}
]
]
},
"Facebook Graph API4": {
"main": [
[
{
"node": "Item Lists3",
"type": "main",
"index": 0
}
]
]
},
"Item Lists3": {
"main": [
[
{
"node": "IF1",
"type": "main",
"index": 0
}
]
]
},
"IF1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Grist",
"type": "main",
"index": 0
},
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Grist1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
}
},
"createdAt": "2022-06-23T08:35:12.154Z",
"updatedAt": "2022-08-22T20:40:37.415Z",
"updatedAt": "2022-08-23T17:04:30.686Z",
"settings": {},
"staticData": null,
"pinData": {},