first commit
This commit is contained in:
171
flows/10.json
Normal file
171
flows/10.json
Normal file
@@ -0,0 +1,171 @@
|
||||
{
|
||||
"id": 10,
|
||||
"name": "OpenData to Mattermost",
|
||||
"active": true,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "Start",
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-200,
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"channelId": "u8419oxttpbptfqxu9mhzumhwa",
|
||||
"message": "=Оприлюднити \"{{$json[\"subject\"]}}\" від {{$json[\"from\"]}}",
|
||||
"attachments": [
|
||||
{
|
||||
"title": "Відкриті дані",
|
||||
"color": "#F2FF00",
|
||||
"author_name": "={{$json[\"from\"]}}"
|
||||
}
|
||||
],
|
||||
"otherOptions": {}
|
||||
},
|
||||
"name": "Mattermost",
|
||||
"type": "n8n-nodes-base.mattermost",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
440,
|
||||
40
|
||||
],
|
||||
"credentials": {
|
||||
"mattermostApi": {
|
||||
"id": "11",
|
||||
"name": "Mattermost account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"postProcessAction": "nothing",
|
||||
"options": {}
|
||||
},
|
||||
"name": "IMAP Email",
|
||||
"type": "n8n-nodes-base.emailReadImap",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-200,
|
||||
60
|
||||
],
|
||||
"credentials": {
|
||||
"imap": {
|
||||
"id": "12",
|
||||
"name": "IMAP account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"to\"]}}",
|
||||
"operation": "contains",
|
||||
"value2": "data@chernigiv-rada.gov.ua"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
20,
|
||||
60
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"fromEmail": "it@chernigiv-rada.gov.ua",
|
||||
"toEmail": "={{$json[\"from\"]}}",
|
||||
"subject": "=Відповідь на \"{{$json[\"subject\"]}}\"",
|
||||
"text": "=Ми отримали Ваш запит \"{{$json[\"subject\"]}}\"на публікацію відкритих даних на порталі https://data.gov.ua\nЗробимо все, що від нас залежить.\nВаші дані будуть відкриті як ніколи до цього",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Send Email",
|
||||
"type": "n8n-nodes-base.emailSend",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
440,
|
||||
260
|
||||
],
|
||||
"credentials": {
|
||||
"smtp": {
|
||||
"id": "18",
|
||||
"name": "SMTP account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"taskListId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgAuAAADIyRvDrjkMkCmTApWtV1lbAEAodXeAPq8WUqqkl0jol24wwAFPoYtoAAAAA==",
|
||||
"title": "=Открытые данные от {{$json[\"from\"]}}",
|
||||
"additionalFields": {
|
||||
"content": "={{$json[\"subject\"]}}",
|
||||
"dueDateTime": "={{$json[\"date\"]}}"
|
||||
}
|
||||
},
|
||||
"name": "Microsoft To Do",
|
||||
"type": "n8n-nodes-base.microsoftToDo",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
440,
|
||||
440
|
||||
],
|
||||
"credentials": {
|
||||
"microsoftToDoOAuth2Api": {
|
||||
"id": "4",
|
||||
"name": "Microsoft To Do account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"IMAP Email": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "IF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"IF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Mattermost",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Microsoft To Do",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Send Email",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-04-29T05:12:17.339Z",
|
||||
"updatedAt": "2022-05-26T08:54:33.774Z",
|
||||
"settings": {},
|
||||
"staticData": {
|
||||
"node:IMAP Email": {
|
||||
"lastMessageUid": 6240
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user