{ "id": 41, "name": "certificate", "active": false, "nodes": [ { "parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [ 400, 260 ], "id": "ba2ff90e-b1a2-4623-aaab-f259de46d31c" }, { "parameters": { "operation": "getAll", "taskListId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgAuAAADIyRvDrjkMkCmTApWtV1lbAEAodXeAPq8WUqqkl0jol24wwAE1-QrCwAAAA==", "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": "458d850d-b9e2-477a-a8c2-be86c9c9c8d3" }, { "parameters": { "triggerTimes": { "item": [ { "hour": 9 } ] } }, "name": "Cron", "type": "n8n-nodes-base.cron", "typeVersion": 1, "position": [ 400, 460 ], "id": "a2be601a-e2fc-4431-afe3-fcfd4b5bd0a6" }, { "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": "93439b97-d6b7-40a6-8d35-9f1ca3d88bed" }, { "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": "fe552646-d3c1-460d-b290-25e5cb785c80" }, { "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": "8a9e708a-c9cf-42b9-bae7-89aa33e1755a" }, { "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": "03a0d19c-6501-4ed8-8c6b-a9bdf622ccf4" }, { "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.diff(DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]), 'days').toObject().days.toString().substring(1, 2)}}" } ] }, "options": {} }, "name": "Set1", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 1140, 280 ], "id": "b8147f14-d2a6-4372-9b1f-4ad94ed637d5" }, { "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": "Mailjet1", "type": "n8n-nodes-base.mailjet", "typeVersion": 1, "position": [ 1360, 280 ], "credentials": { "mailjetEmailApi": { "id": "27", "name": "Mailjet Email account" } }, "id": "1d8409e5-dc99-45f7-a44f-ff146211a044" }, { "parameters": { "conditions": { "string": [ { "value1": "={{$json[\"status\"]}}", "operation": "notEqual", "value2": "completed" } ] } }, "name": "IF2", "type": "n8n-nodes-base.if", "typeVersion": 1, "position": [ 900, 160 ], "id": "539b1801-1697-408e-aaaa-79d9192efe5f" }, { "parameters": { "values": { "string": [ { "name": "due_date", "value": "={{DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).toString()}}" }, { "name": "domain_name", "value": "={{$json[\"title\"]}}" }, { "name": "price", "value": "={{$json[\"body\"][\"content\"]}}" } ] }, "options": {} }, "name": "Set2", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 1140, 140 ], "id": "19c70202-2fb3-4c68-8e49-2606747a6b59" }, { "parameters": { "operation": "sendTemplate", "fromEmail": "nia@cynic.club", "toEmail": "Ihor.nahornyy@gmail.com ", "templateId": 4038440, "additionalFields": { "fromName": "SSL.com.ua", "templateLanguage": true }, "variablesUi": { "variablesValues": [ { "name": "domain_name", "value": "={{$json[\"title\"]}}" }, { "name": "price", "value": "={{$json[\"body\"][\"content\"]}}" }, { "name": "due_date", "value": "={{$json[\"due_date\"]}}" } ] } }, "name": "Mailjet2", "type": "n8n-nodes-base.mailjet", "typeVersion": 1, "position": [ 1360, 140 ], "credentials": { "mailjetEmailApi": { "id": "27", "name": "Mailjet Email account" } }, "id": "0684eafb-4bd7-4380-867a-f2cc29b354c5" } ], "connections": { "Cron": { "main": [ [ { "node": "Microsoft To Do", "type": "main", "index": 0 } ] ] }, "Microsoft To Do": { "main": [ [ { "node": "IF", "type": "main", "index": 0 }, { "node": "IF2", "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 } ] ] }, "Set2": { "main": [ [ { "node": "Mailjet2", "type": "main", "index": 0 } ] ] }, "IF2": { "main": [ [ { "node": "Set2", "type": "main", "index": 0 } ] ] } }, "createdAt": "2022-06-28T19:00:12.278Z", "updatedAt": "2022-06-29T09:53:50.611Z", "settings": { "errorWorkflow": "25" }, "staticData": null, "pinData": null, "tags": [] }