{ "createdAt": "2022-05-11T17:19:39.626Z", "updatedAt": "2022-12-27T16:02:51.172Z", "id": 20, "name": "hosting", "active": true, "nodes": [ { "parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [ 400, 260 ], "id": "5ba68a2b-d5c1-45ca-9881-41f48faf1b38" }, { "parameters": { "operation": "getAll", "taskListId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgAuAAADIyRvDrjkMkCmTApWtV1lbAEAodXeAPq8WUqqkl0jol24wwAE1-QrCgAAAA==", "returnAll": true }, "name": "Microsoft To Do", "type": "n8n-nodes-base.microsoftToDo", "typeVersion": 1, "position": [ 660, 460 ], "credentials": { "microsoftToDoOAuth2Api": { "id": "4", "name": "Microsoft To Do account" } }, "id": "c73bebce-945e-4266-96a2-0d878ef8c253" }, { "parameters": { "triggerTimes": { "item": [ { "hour": 9 } ] } }, "name": "Cron", "type": "n8n-nodes-base.cron", "typeVersion": 1, "position": [ 400, 460 ], "id": "ccc72e50-87f6-4c70-95ee-2ab6113f420a" }, { "parameters": { "conditions": { "string": [ { "value1": "={{$json[\"status\"]}}", "operation": "notEqual", "value2": "completed" } ], "dateTime": [ { "value1": "={{$json[\"dueDateTime\"][\"dateTime\"]}}", "operation": "before", "value2": "={{$today.plus({days: 1}).toString()}}" } ] } }, "name": "IF", "type": "n8n-nodes-base.if", "typeVersion": 1, "position": [ 900, 460 ], "id": "3628dfae-15f6-4b5e-96a6-d380629ad345" }, { "parameters": { "values": { "string": [ { "name": "deadline_date", "value": "={{$json[\"dueDateTime\"][\"dateTime\"]}}" }, { "name": "dead_date", "value": "={{DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).plus({days: 7}).toString()}}" }, { "name": "days_to_dead", "value": "={{$today.diff(DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).plus({days: 7}), 'days').toObject().days.toString().substring(1, 2)}}" } ] }, "options": {} }, "name": "Set", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 1140, 460 ], "id": "8797f8ff-9f87-4e3b-bd1a-9a02cc1d1797" }, { "parameters": { "operation": "sendTemplate", "fromEmail": "nia@cynic.club", "toEmail": "Ihor.nahornyy@gmail.com ", "templateId": 3928678, "additionalFields": { "fromName": "DCXV", "templateLanguage": true }, "variablesUi": { "variablesValues": [ { "name": "server_name", "value": "={{$json[\"title\"]}}" }, { "name": "username", "value": "nahornyy" }, { "name": "price", "value": "={{$json[\"body\"][\"content\"]}}" }, { "name": "days_gone", "value": "={{$json[\"days_to_dead\"]}}" } ] } }, "name": "Mailjet", "type": "n8n-nodes-base.mailjet", "typeVersion": 1, "position": [ 1360, 460 ], "credentials": { "mailjetEmailApi": { "id": "27", "name": "Mailjet Email account" } }, "id": "5f5934a0-162f-405a-8fb1-bdce969c9a1e" }, { "parameters": { "conditions": { "string": [ { "value1": "={{$json[\"status\"]}}", "operation": "notEqual", "value2": "completed" } ], "dateTime": [ { "value1": "={{$json[\"dueDateTime\"][\"dateTime\"]}}", "operation": "before", "value2": "={{$today.plus({days: 7}).toString()}}" } ] } }, "name": "IF1", "type": "n8n-nodes-base.if", "typeVersion": 1, "position": [ 900, 280 ], "id": "916c85db-df05-48ce-bd99-ad914215fb2d" }, { "parameters": { "values": { "string": [ { "name": "deadline_date", "value": "={{DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).minus({days: 7}).toString()}}" }, { "name": "dead_date", "value": "={{DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).toString()}}" }, { "name": "days_to_dead", "value": "={{$today.minus({days: 1}).diff(DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]), 'days').toObject().days.toString().substring(1, 2)}}" }, { "name": "date", "value": "={{DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).plus({days: 1}).setLocale('ru').toFormat('dd MMMM yyyy года')}}" } ] }, "options": {} }, "name": "Set1", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 1140, 280 ], "id": "358bddd9-56d3-44e5-98a5-68a05acd2c99" }, { "parameters": { "operation": "sendTemplate", "fromEmail": "nia@cynic.club", "toEmail": "Ihor.nahornyy@gmail.com ", "templateId": 3928678, "additionalFields": { "fromName": "DCXV", "templateLanguage": true }, "variablesUi": { "variablesValues": [ { "name": "server_name", "value": "={{$json[\"title\"]}}" }, { "name": "username", "value": "nahornyy" }, { "name": "price", "value": "={{$json[\"body\"][\"content\"]}}" }, { "name": "days_gone", "value": "={{$json[\"days_to_dead\"]}}" }, { "name": "date", "value": "={{$json[\"date\"]}}" } ] } }, "name": "Mailjet1", "type": "n8n-nodes-base.mailjet", "typeVersion": 1, "position": [ 1360, 280 ], "credentials": { "mailjetEmailApi": { "id": "27", "name": "Mailjet Email account" } }, "id": "62c2c5c8-036d-4f02-be11-973639e66595" } ], "connections": { "Cron": { "main": [ [ { "node": "Microsoft To Do", "type": "main", "index": 0 } ] ] }, "Microsoft To Do": { "main": [ [ { "node": "IF", "type": "main", "index": 0 }, { "node": "IF1", "type": "main", "index": 0 } ] ] }, "Set": { "main": [ [ { "node": "Mailjet", "type": "main", "index": 0 } ] ] }, "IF1": { "main": [ [ { "node": "Set1", "type": "main", "index": 0 } ] ] }, "Set1": { "main": [ [ { "node": "Mailjet1", "type": "main", "index": 0 } ] ] } }, "settings": { "errorWorkflow": "25" }, "staticData": null, "dataLoaded": true, "pinData": {}, "versionId": "adc263f4-8cb8-4158-b686-5088633aa5a3", "triggerCount": 1, "tags": [] }