n8n-workflows/workflows/354_workflow_354.json
2025-05-14 11:58:29 +03:00

81 lines
1.7 KiB
JSON

{
"nodes": [
{
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
450,
300
],
"webhookId": "213324b6-b84d-42f9-af3b-42804cc71cd1",
"parameters": {
"path": "213324b6-b84d-42f9-af3b-42804cc71cd1",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 1
},
{
"name": "PagerDuty",
"type": "n8n-nodes-base.pagerDuty",
"position": [
650,
300
],
"parameters": {
"email": "n8ndocsburner@gmail.com",
"operation": "update",
"incidentId": "={{$json[\"body\"][\"context\"][\"pagerduty_incident\"]}}",
"updateFields": {
"status": "acknowledged"
}
},
"credentials": {
"pagerDutyApi": "PagerDuty Credentials"
},
"typeVersion": 1
},
{
"name": "Mattermost",
"type": "n8n-nodes-base.mattermost",
"position": [
850,
300
],
"parameters": {
"message": "💪🏼 Incident status has been changed to Acknowledged on PagerDuty.",
"channelId": "={{$node[\"Webhook\"].json[\"body\"][\"channel_id\"]}}",
"attachments": [],
"otherOptions": {}
},
"credentials": {
"mattermostApi": "Mattermost Credentials"
},
"typeVersion": 1
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "PagerDuty",
"type": "main",
"index": 0
}
]
]
},
"PagerDuty": {
"main": [
[
{
"node": "Mattermost",
"type": "main",
"index": 0
}
]
]
}
}
}