Files
n8n/flows/11.json

184 lines
6.2 KiB
JSON
Raw Normal View History

2022-05-26 20:57:30 +03:00
{
"id": 11,
"name": "avtomoto25",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-800,
1100
2022-08-03 21:00:21 +00:00
],
"id": "9dac1004-f978-449c-a92e-0b90f2ee9f06"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"path": "scool",
"responseMode": "responseNode",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
2022-06-22 21:00:33 +00:00
-800,
1280
2022-05-26 20:57:30 +03:00
],
2022-08-03 21:00:21 +00:00
"webhookId": "42d23674-abe0-4cb4-a158-3319140d97f0",
"id": "931df749-d755-4dfa-9ba9-6f1a1e21007d"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
2022-06-23 21:00:30 +00:00
"returnAll": true,
"additionalOptions": {}
2022-05-26 20:57:30 +03:00
},
2022-06-23 21:00:30 +00:00
"name": "Grist",
2022-05-26 20:57:30 +03:00
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-500,
1280
2022-05-26 20:57:30 +03:00
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
2022-08-03 21:00:21 +00:00
},
"id": "92e3c8bc-d8b3-44b3-8f42-d248e762a14a"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
2022-06-23 21:00:30 +00:00
"operation": "aggregateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
2022-05-26 20:57:30 +03:00
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "id"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "date_ru"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "date_ua"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "count"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "time"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_2_ua"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_1_ua"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_1_ru"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_2_ru"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "address"
2022-07-12 21:00:41 +00:00
},
{
"fieldToAggregate": "time_2"
2022-07-29 21:00:30 +00:00
},
{
"fieldToAggregate": "time_3"
},
{
"fieldToAggregate": "day_3_ua"
},
{
"fieldToAggregate": "day_3_ru"
2022-05-26 20:57:30 +03:00
}
]
2022-06-23 21:00:30 +00:00
},
"options": {}
2022-05-26 20:57:30 +03:00
},
2022-06-23 21:00:30 +00:00
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
2022-05-26 20:57:30 +03:00
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-280,
1280
2022-08-03 21:00:21 +00:00
],
"id": "af000df5-5893-4414-a635-9f408e0397cf"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
2022-06-23 21:00:30 +00:00
"respondWith": "json",
2022-08-03 21:00:21 +00:00
"responseBody": "={ \"data\": \n { \"data_rokoss\":\n {\n \"ru\": \"{{$json[\"date_ru\"][0]}}\",\n \"ua\": \"{{$json[\"date_ua\"][0]}}\"\n },\n \n \"data_masani\":\n {\n \"ru\": \"{{$json[\"date_ru\"][1]}}\",\n \"ua\": \"{{$json[\"date_ua\"][1]}}\"\n },\n \"data_prospect\":\n {\n \"ru\": \"{{$json[\"date_ru\"][2]}}\",\n \"ua\": \"{{$json[\"date_ua\"][2]}}\"\n } \n },\n \"count\":\n {\n \"rokoss\": \"{{$json[\"count\"][0]}}\",\n \"masani\": \"{{$json[\"count\"][1]}}\",\n \"prospect\": \"{{$json[\"count\"][2]}}\"\n },\n\n\"schedule\":\n {\n \"rokoss\":\n {\n \"day1\":\n {\n \"ru\": \"{{$json[\"day_1_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_1_ua\"][0]}}\"\n },\n \"day2\":\n {\n \"ru\": \"{{$json[\"day_2_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_2_ua\"][0]}}\"\n },\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][0]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][0]}}\"\n},\n \"time\": \"{{$json[\"time\"][0]}}\",\n \"time_2\": \"{{$json[\"time_2\"][0]}}\",\n \"time_3\": \"{{$json[\"time_3\"][0]}}\"\n },\n\"masani\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][1]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][1]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][1]}}\"\n},\n\"time\": \"{{$json[\"time\"][1]}}\",\n\"time_2\": \"{{$json[\"time_2\"][1]}}\",\n\"time_3\": \"{{$json[\"time_3\"][1]}}\"\n},\n\"prospect\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][2]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][2]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][2]}}\"\n},\n\"time\": \"{{$json[\"time\"][2]}}\",\n\"time_2\": \"{{$json[\"time_2\"][2]}}\",\n\"time_3\": \"{{$json[\"time_3\"][2]}}\"\n}\n}\n}",
2022-06-23 21:00:30 +00:00
"options": {
"responseCode": 200
2022-05-26 20:57:30 +03:00
}
},
2022-06-23 21:00:30 +00:00
"name": "Respond to Webhook2",
"type": "n8n-nodes-base.respondToWebhook",
2022-05-26 20:57:30 +03:00
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-40,
1280
2022-08-03 21:00:21 +00:00
],
"id": "2b49fef3-503f-4a4b-9462-5b28d2692964"
2022-05-26 20:57:30 +03:00
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
},
"Grist": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "Respond to Webhook2",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-04-29T07:24:59.929Z",
2022-08-03 21:00:21 +00:00
"updatedAt": "2022-08-03T13:35:44.256Z",
2022-05-26 20:57:30 +03:00
"settings": {
2022-05-27 07:03:35 +00:00
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"
2022-05-26 20:57:30 +03:00
},
2022-06-09 21:00:39 +00:00
"staticData": null,
2022-07-29 21:00:30 +00:00
"pinData": {},
2022-06-09 21:00:39 +00:00
"tags": [
{
"id": "1",
"name": "avtomoto25",
"createdAt": "2022-05-10T18:06:30.022Z",
"updatedAt": "2022-05-10T18:06:30.022Z"
}
]
2022-05-26 20:57:30 +03:00
}