2022-06-23 21:00:30 +00:00
|
|
|
{
|
|
|
|
|
"id": 39,
|
|
|
|
|
"name": "avtomoto25 messages",
|
2022-08-22 21:00:16 +00:00
|
|
|
"active": true,
|
2022-06-23 21:00:30 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"parameters": {},
|
|
|
|
|
"name": "Start",
|
|
|
|
|
"type": "n8n-nodes-base.start",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-08-22 21:00:16 +00:00
|
|
|
-240,
|
|
|
|
|
0
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "d6055ed9-a659-41ec-9374-abe41f7237ae"
|
2022-06-23 21:00:30 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
2022-08-10 21:00:50 +00:00
|
|
|
"graphApiVersion": "v14.0",
|
2022-06-23 21:00:30 +00:00
|
|
|
"node": "me",
|
|
|
|
|
"edge": "accounts",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "Get Pages1",
|
|
|
|
|
"type": "n8n-nodes-base.facebookGraphApi",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-08-22 21:00:16 +00:00
|
|
|
0,
|
2022-08-10 21:00:50 +00:00
|
|
|
160
|
2022-06-23 21:00:30 +00:00
|
|
|
],
|
2022-08-10 21:00:50 +00:00
|
|
|
"id": "021a30f6-2ddb-4e69-a032-1809bc5a9003",
|
2022-06-23 21:00:30 +00:00
|
|
|
"credentials": {
|
|
|
|
|
"facebookGraphApi": {
|
|
|
|
|
"id": "36",
|
|
|
|
|
"name": "Facebook Graph account"
|
|
|
|
|
}
|
2022-08-10 21:00:50 +00:00
|
|
|
}
|
2022-06-23 21:00:30 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"fieldToSplitOut": "data",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "Split Pages1",
|
|
|
|
|
"type": "n8n-nodes-base.itemLists",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-08-22 21:00:16 +00:00
|
|
|
220,
|
2022-06-23 21:00:30 +00:00
|
|
|
160
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "7030dc12-89c3-4942-82d4-067829315a6b"
|
2022-06-23 21:00:30 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
2022-08-10 21:00:50 +00:00
|
|
|
"graphApiVersion": "v14.0",
|
|
|
|
|
"node": "={{$json[\"id\"]}}",
|
|
|
|
|
"edge": "conversations",
|
|
|
|
|
"options": {
|
|
|
|
|
"queryParameters": {
|
|
|
|
|
"parameter": [
|
|
|
|
|
{
|
|
|
|
|
"name": "access_token",
|
|
|
|
|
"value": "={{$json[\"access_token\"]}}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2022-06-23 21:00:30 +00:00
|
|
|
}
|
|
|
|
|
},
|
2022-08-10 21:00:50 +00:00
|
|
|
"name": "Facebook Graph API",
|
|
|
|
|
"type": "n8n-nodes-base.facebookGraphApi",
|
2022-06-23 21:00:30 +00:00
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-08-22 21:00:16 +00:00
|
|
|
620,
|
|
|
|
|
140
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
2022-08-10 21:00:50 +00:00
|
|
|
"id": "f8e4a9c5-4a1d-441e-a015-a97d0f52ef9b",
|
|
|
|
|
"credentials": {
|
|
|
|
|
"facebookGraphApi": {
|
|
|
|
|
"id": "36",
|
|
|
|
|
"name": "Facebook Graph account"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"fieldToSplitOut": "data",
|
2022-08-22 21:00:16 +00:00
|
|
|
"include": "selectedOtherFields",
|
|
|
|
|
"fieldsToInclude": {
|
|
|
|
|
"fields": [
|
|
|
|
|
{
|
|
|
|
|
"fieldName": "token"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-08-10 21:00:50 +00:00
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"id": "ebc0aa0c-fd48-40d6-bce9-5d50af0796d5",
|
|
|
|
|
"name": "Item Lists",
|
|
|
|
|
"type": "n8n-nodes-base.itemLists",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-08-22 21:00:16 +00:00
|
|
|
1020,
|
|
|
|
|
140
|
2022-08-10 21:00:50 +00:00
|
|
|
]
|
2022-06-23 21:00:30 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
2022-08-10 21:00:50 +00:00
|
|
|
"graphApiVersion": "v14.0",
|
2022-08-22 21:00:16 +00:00
|
|
|
"node": "={{$json[\"data\"][\"id\"]}}",
|
|
|
|
|
"edge": "messages",
|
2022-06-23 21:00:30 +00:00
|
|
|
"options": {
|
2022-08-22 21:00:16 +00:00
|
|
|
"fields": {
|
|
|
|
|
"field": [
|
|
|
|
|
{
|
|
|
|
|
"name": "message"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "created_time"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "from"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "to"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "tags"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "id"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-06-23 21:00:30 +00:00
|
|
|
"queryParameters": {
|
|
|
|
|
"parameter": [
|
|
|
|
|
{
|
|
|
|
|
"name": "access_token",
|
2022-08-22 21:00:16 +00:00
|
|
|
"value": "={{$json[\"token\"]}}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "fields ",
|
|
|
|
|
"value": "message"
|
2022-06-23 21:00:30 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-08-10 21:00:50 +00:00
|
|
|
"name": "Facebook Graph API1",
|
2022-06-23 21:00:30 +00:00
|
|
|
"type": "n8n-nodes-base.facebookGraphApi",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-08-22 21:00:16 +00:00
|
|
|
1420,
|
|
|
|
|
120
|
2022-06-23 21:00:30 +00:00
|
|
|
],
|
2022-08-10 21:00:50 +00:00
|
|
|
"id": "2c143579-e33d-4601-a23c-3b78479fd064",
|
2022-06-23 21:00:30 +00:00
|
|
|
"credentials": {
|
|
|
|
|
"facebookGraphApi": {
|
|
|
|
|
"id": "36",
|
|
|
|
|
"name": "Facebook Graph account"
|
|
|
|
|
}
|
2022-08-10 21:00:50 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"conditions": {
|
|
|
|
|
"string": [
|
|
|
|
|
{
|
|
|
|
|
"value1": "={{$json[\"id\"]}}",
|
|
|
|
|
"value2": "105101524930750"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2022-08-03 21:00:21 +00:00
|
|
|
},
|
2022-08-10 21:00:50 +00:00
|
|
|
"name": "avtomoto",
|
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-08-22 21:00:16 +00:00
|
|
|
420,
|
2022-08-10 21:00:50 +00:00
|
|
|
160
|
|
|
|
|
],
|
|
|
|
|
"id": "d0d185dd-e2a8-48fd-af9e-62d35d937446"
|
2022-08-22 21:00:16 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"graphApiVersion": "v14.0",
|
|
|
|
|
"node": "m_pO1GARrieV528mZQAQ_Hc7CQlEvcIVIJYs2vXGQiJG_Pwu3AvlcVipBUk4cfcCQTSp78elD9bRQwCm0wm4k08A",
|
|
|
|
|
"options": {
|
|
|
|
|
"fields": {
|
|
|
|
|
"field": [
|
|
|
|
|
{
|
|
|
|
|
"name": "message"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"queryParameters": {
|
|
|
|
|
"parameter": [
|
|
|
|
|
{
|
|
|
|
|
"name": "access_token",
|
|
|
|
|
"value": "EAAHY4Ui0IJgBAE4R0Ay5puCrElc6arG3vlziIUyeNjm6KJkIgQHV9l1Sverlu5F5ly2b2yXBMG04ZCmuPUByqxDp3RKcQyE7BxAd8n4UX2xEjYGec0s9CjM0qE4gUXJqgmEuVBzF1ux1z5LJ9mE79wq1rKeZC3VS5gepXrInpCtpQg8cjuMxo8MnpWtYEZD"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Facebook Graph API2",
|
|
|
|
|
"type": "n8n-nodes-base.facebookGraphApi",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
620,
|
|
|
|
|
380
|
|
|
|
|
],
|
|
|
|
|
"id": "6979e524-17f4-4480-97d5-dab120b9bd19",
|
|
|
|
|
"credentials": {
|
|
|
|
|
"facebookGraphApi": {
|
|
|
|
|
"id": "36",
|
|
|
|
|
"name": "Facebook Graph account"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"values": {
|
|
|
|
|
"string": [
|
|
|
|
|
{
|
|
|
|
|
"name": "token",
|
|
|
|
|
"value": "={{$node[\"avtomoto\"].json[\"access_token\"]}}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"id": "dcd323a4-cb2b-49ff-99c1-d8b55e9b321d",
|
|
|
|
|
"name": "Set",
|
|
|
|
|
"type": "n8n-nodes-base.set",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
820,
|
|
|
|
|
140
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"fieldToSplitOut": "data",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"id": "5221f936-d736-4aba-a775-1a4a9c911eb7",
|
|
|
|
|
"name": "Item Lists1",
|
|
|
|
|
"type": "n8n-nodes-base.itemLists",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1600,
|
|
|
|
|
120
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"operation": "limit"
|
|
|
|
|
},
|
|
|
|
|
"id": "7c533190-35aa-44a5-a26f-2eba9797d562",
|
|
|
|
|
"name": "Item Lists2",
|
|
|
|
|
"type": "n8n-nodes-base.itemLists",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1780,
|
|
|
|
|
120
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"graphApiVersion": "v14.0",
|
|
|
|
|
"node": "108035462020822",
|
|
|
|
|
"options": {
|
|
|
|
|
"queryParameters": {
|
|
|
|
|
"parameter": [
|
|
|
|
|
{
|
|
|
|
|
"name": "access_token",
|
|
|
|
|
"value": "EAAHY4Ui0IJgBAE4R0Ay5puCrElc6arG3vlziIUyeNjm6KJkIgQHV9l1Sverlu5F5ly2b2yXBMG04ZCmuPUByqxDp3RKcQyE7BxAd8n4UX2xEjYGec0s9CjM0qE4gUXJqgmEuVBzF1ux1z5LJ9mE79wq1rKeZC3VS5gepXrInpCtpQg8cjuMxo8MnpWtYEZD"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Facebook Graph API3",
|
|
|
|
|
"type": "n8n-nodes-base.facebookGraphApi",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
620,
|
|
|
|
|
520
|
|
|
|
|
],
|
|
|
|
|
"id": "49fd15dd-5f68-4790-aabd-04b2a11b272b",
|
|
|
|
|
"credentials": {
|
|
|
|
|
"facebookGraphApi": {
|
|
|
|
|
"id": "36",
|
|
|
|
|
"name": "Facebook Graph account"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"conditions": {
|
|
|
|
|
"dateTime": [
|
|
|
|
|
{
|
|
|
|
|
"value1": "={{$json[\"data\"][\"updated_time\"]}}",
|
|
|
|
|
"operation": "=after",
|
|
|
|
|
"value2": "={{$today.minus({days: 1})}}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"id": "afbea4c5-4c5e-41d9-aede-8c9e5cf4e389",
|
|
|
|
|
"name": "IF",
|
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1200,
|
|
|
|
|
140
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"triggerTimes": {
|
|
|
|
|
"item": [
|
|
|
|
|
{
|
|
|
|
|
"mode": "everyX",
|
|
|
|
|
"value": 10,
|
|
|
|
|
"unit": "minutes"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"id": "24881d90-6d02-4af4-9903-7d5973ed2d7b",
|
|
|
|
|
"name": "Cron",
|
|
|
|
|
"type": "n8n-nodes-base.cron",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
-240,
|
|
|
|
|
160
|
|
|
|
|
]
|
2022-06-23 21:00:30 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"connections": {
|
|
|
|
|
"Get Pages1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Split Pages1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Split Pages1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-08-10 21:00:50 +00:00
|
|
|
"node": "avtomoto",
|
2022-06-23 21:00:30 +00:00
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-08-10 21:00:50 +00:00
|
|
|
"Start": {
|
2022-08-22 21:00:16 +00:00
|
|
|
"main": [
|
|
|
|
|
[]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Facebook Graph API": {
|
2022-06-23 21:00:30 +00:00
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-08-22 21:00:16 +00:00
|
|
|
"node": "Set",
|
2022-06-23 21:00:30 +00:00
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-08-22 21:00:16 +00:00
|
|
|
"Item Lists": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "IF",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"avtomoto": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Facebook Graph API",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Facebook Graph API1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Item Lists1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Set": {
|
2022-06-23 21:00:30 +00:00
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-08-10 21:00:50 +00:00
|
|
|
"node": "Item Lists",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-08-22 21:00:16 +00:00
|
|
|
"Item Lists1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Item Lists2",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"IF": {
|
2022-08-10 21:00:50 +00:00
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Facebook Graph API1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-08-22 21:00:16 +00:00
|
|
|
"Cron": {
|
2022-08-10 21:00:50 +00:00
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-08-22 21:00:16 +00:00
|
|
|
"node": "Get Pages1",
|
2022-06-23 21:00:30 +00:00
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"createdAt": "2022-06-23T08:35:12.154Z",
|
2022-08-22 21:00:16 +00:00
|
|
|
"updatedAt": "2022-08-22T20:40:37.415Z",
|
2022-06-23 21:00:30 +00:00
|
|
|
"settings": {},
|
|
|
|
|
"staticData": null,
|
2022-08-10 21:00:50 +00:00
|
|
|
"pinData": {},
|
2022-06-23 21:00:30 +00:00
|
|
|
"tags": [
|
|
|
|
|
{
|
|
|
|
|
"id": "1",
|
|
|
|
|
"name": "avtomoto25",
|
|
|
|
|
"createdAt": "2022-05-10T18:06:30.022Z",
|
|
|
|
|
"updatedAt": "2022-05-10T18:06:30.022Z"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|