Workflow: Mattermost Webhook Automate

Workflow Details

Download Workflow
{
    "nodes": [
        {
            "name": "Mattermost",
            "type": "n8n-nodes-base.mattermost",
            "position": [
                1050,
                200
            ],
            "parameters": {
                "message": "\ud83d\udcaa This issue got closed in PagerDuty and Jira.",
                "channelId": "={{$node[\"Webhook\"].json[\"body\"][\"channel_id\"]}}",
                "attachments": [],
                "otherOptions": []
            },
            "credentials": {
                "mattermostApi": "Mattermost Credentials"
            },
            "typeVersion": 1
        },
        {
            "name": "Mattermost1",
            "type": "n8n-nodes-base.mattermost",
            "position": [
                1050,
                400
            ],
            "parameters": {
                "message": "=\ud83c\udf89 The incident ({{$node[\"PagerDuty\"].json[\"summary\"]}}) was resolved by the lovely folks in the on-call team!",
                "channelId": "k1h3du9r9byyfg7sys8ib6p3ey",
                "attachments": [],
                "otherOptions": []
            },
            "credentials": {
                "mattermostApi": "Mattermost Credentials"
            },
            "typeVersion": 1
        },
        {
            "name": "Jira",
            "type": "n8n-nodes-base.jira",
            "position": [
                850,
                300
            ],
            "parameters": {
                "issueKey": "={{$node[\"Webhook\"].json[\"body\"][\"context\"][\"jira_key\"]}}",
                "operation": "update",
                "updateFields": {
                    "statusId": "31"
                }
            },
            "credentials": {
                "jiraSoftwareCloudApi": "jira"
            },
            "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": "resolved"
                }
            },
            "credentials": {
                "pagerDutyApi": "PagerDuty Credentials"
            },
            "typeVersion": 1
        },
        {
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "position": [
                450,
                300
            ],
            "webhookId": "1bd40693-c7dd-43f5-97d9-6d8986e62fc1",
            "parameters": {
                "path": "1bd40693-c7dd-43f5-97d9-6d8986e62fc1",
                "options": [],
                "httpMethod": "POST"
            },
            "typeVersion": 1
        }
    ],
    "connections": {
        "Jira": {
            "main": [
                [
                    {
                        "node": "Mattermost",
                        "type": "main",
                        "index": 0
                    },
                    {
                        "node": "Mattermost1",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Webhook": {
            "main": [
                [
                    {
                        "node": "PagerDuty",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "PagerDuty": {
            "main": [
                [
                    {
                        "node": "Jira",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

Integrating AI with Open-Meteo API for Enhanced Weather Forecasting
View
✨📊Multi-AI Agent Chatbot for Postgres/Supabase DB and QuickCharts + Tool Router
View
Openai Twitter Create
View
Receive updates when a subscriber is added through a form in ConvertKit
View
Telegram Mondaycom Automate Triggered
View
Manual Markdown Create Webhook
View
HTTP Stickynote Automation Webhook
View
Extract & Summarize Indeed Company Info with Bright Data and Google Gemini
View
AI Voice Chat using Webhook, Memory Manager, OpenAI, Google Gemini & ElevenLabs
View
Slack Typeform Automate Triggered
View