Files
n8n/flows/39.json

230 lines
4.6 KiB
JSON

{
"id": 39,
"name": "avtomoto25 messages",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-140,
60
],
"id": "d6055ed9-a659-41ec-9374-abe41f7237ae"
},
{
"parameters": {
"graphApiVersion": "v14.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
100,
160
],
"id": "021a30f6-2ddb-4e69-a032-1809bc5a9003",
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
340,
160
],
"id": "7030dc12-89c3-4942-82d4-067829315a6b"
},
{
"parameters": {
"graphApiVersion": "v14.0",
"node": "={{$json[\"id\"]}}",
"edge": "conversations",
"options": {
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
}
]
}
}
},
"name": "Facebook Graph API",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
760,
160
],
"id": "f8e4a9c5-4a1d-441e-a015-a97d0f52ef9b",
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"id": "ebc0aa0c-fd48-40d6-bce9-5d50af0796d5",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
980,
160
]
},
{
"parameters": {
"graphApiVersion": "v14.0",
"node": "={{$json[\"id\"]}}",
"options": {
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$node[\"avtomoto\"].json[\"access_token\"]}}"
}
]
}
}
},
"name": "Facebook Graph API1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1220,
160
],
"id": "2c143579-e33d-4601-a23c-3b78479fd064",
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "avtomoto",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
540,
160
],
"id": "d0d185dd-e2a8-48fd-af9e-62d35d937446"
}
],
"connections": {
"Get Pages1": {
"main": [
[
{
"node": "Split Pages1",
"type": "main",
"index": 0
}
]
]
},
"Split Pages1": {
"main": [
[
{
"node": "avtomoto",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"main": [
[
{
"node": "Get Pages1",
"type": "main",
"index": 0
}
]
]
},
"Facebook Graph API": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "Facebook Graph API1",
"type": "main",
"index": 0
}
]
]
},
"avtomoto": {
"main": [
[
{
"node": "Facebook Graph API",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-23T08:35:12.154Z",
"updatedAt": "2022-08-10T12:30:07.788Z",
"settings": {},
"staticData": null,
"pinData": {},
"tags": [
{
"id": "1",
"name": "avtomoto25",
"createdAt": "2022-05-10T18:06:30.022Z",
"updatedAt": "2022-05-10T18:06:30.022Z"
}
]
}