Skip to main content

Triage Microsoft 365 incidents into Jira with GPT-4o-mini, PagerDuty and Teams

Workflow preview

Workflow preview
100%
Triage Microsoft 365 incidents into Jira with GPT-4o-mini, PagerDuty and Teams preview
Open on n8n.io

1. Workflow Overview

Manual incident triage kills your MTTR. This workflow automates the first response so your engineers get actionable tickets instead of raw alerts. This workflow takes unstructured incident reports ...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.jira, n8n-nodes-base.if, n8n-nodes-base.pagerduty, n8n-nodes-base.microsoftteams

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mychel Garzon.

Original n8n.io source

1.1 Workflow description

Title
Triage Microsoft 365 incidents into Jira with GPT-4o-mini, PagerDuty and Teams
Workflow name
Triage Microsoft 365 incidents into Jira with GPT-4o-mini, PagerDuty and Teams

Manual incident triage kills your MTTR. This workflow automates the first response so your engineers get actionable tickets instead of raw alerts.

This workflow takes unstructured incident reports from Microsoft 365 and turns them into structured Jira tickets with severity, affected systems, root cause hypothesis, and recommended actions. It analyzes impact, routes critical failures to PagerDuty, and posts clear summaries to Teams.


How it works

The workflow operates in four synchronized stages:

The workflow runs in four stages:

  1. Reliable ingestion: Webhook triggers and returns 202 Accepted immediately. This prevents the source system from timing out or sending duplicate retries while the AI processes the data. Security and deduplication:

  2. Validation: Checks webhook signatures and sanitizes input to block prompt injection. Idempotency: Compares incident ID against a 1,000-event rolling window in staticData. No duplicate tickets for the same issue.

  3. AI analysis: GPT-4o-mini analyzes the report. Extracts a title, assigns severity (P1-P4), identifies affected systems, generates root cause hypothesis and next steps. The Parse & Enrich node catches malformed AI output and fails gracefully into a "Manual Review" state. Orchestrated response:

  4. Ticketing: Creates a Jira Incident with mapped priorities and triage labels. Escalation: Triggers PagerDuty for P1 and P2 incidents only.

  5. Visibility: Posts an Adaptive Card to Teams with summary and direct link to the Jira ticket.


Key Benefits

  • Async handshake: 202 response prevents webhook timeout issues with Microsoft 365 and Teams.
  • Deduplication: Idempotency gate blocks duplicate alerts from flooding your ticketing system and on-call engineers.
  • Actionable output: Engineers get likely root cause and suggested actions, not just "system down" alerts.
  • Audit trail: Every execution logs structured data for tracking AI accuracy, execution time, and incident patterns.

Setup Steps

  • Credentials: Add credentials for OpenAI (LangChain), Jira Software, PagerDuty, and Microsoft Teams.
  • Environment Variables: Define WEBHOOK_SECRET, JIRA_PROJECT_KEY, JIRA_DOMAIN, PAGERDUTY_SERVICE_ID, and PAGERDUTY_EMAIL.
  • Jira Config: Ensure your Jira project has the "Incident" issue type enabled and the priority levels match (Highest, High, Medium, Low).
  • Webhook Link: Copy the n8n Production Webhook URL and paste it into your Microsoft 365 outgoing webhook settings or Teams app configuration.

Who this is for

  • SRE & DevOps Teams: Need to cut alert noise and automate first-line incident response.
  • IT Operations Managers: Want audit trails for incident handling (SOC 2 compliance).
  • Managed Service Providers (MSPs): Offering AI triage as a service to enterprise clients.

Required APIs & Credentials

  • ITSM & Alerts: Jira Software, PagerDuty.
  • Communication: Microsoft Teams.
  • AI Provider: OpenAI (GPT-4o-mini).

How to customise it

  • Adjust Severity Logic: Modify the "Severity Guide" in the AI Brain prompt to match your company's specific SLAs.
  • Swap Ticketing Systems: Replace the Jira node with ServiceNow, Zendesk, or GitHub Issues.
  • Add Post-Mortem Prep: Add a branch to automatically create a dedicated Slack or Teams channel and a Zoom/Teams bridge for P1 incidents.
  • Local LLM Option: Swap the OpenAI node for Ollama if you prefer to run triage on your own infrastructure for maximum data privacy.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Microsoft 365 Trigger

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Webhook Response

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1

Block 3 - Extract & Validate

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Idempotency Check

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - AI Brain (GPT-4o-mini)

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.3

Block 6 - Parse & Enrich

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Create Jira Incident

Type / Role
n8n-nodes-base.jira - jira
Config choices
Version 1

Block 8 - Build Enhanced Card

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - P1/P2 Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 10 - Trigger PagerDuty

Type / Role
n8n-nodes-base.pagerDuty - pagerDuty
Config choices
Version 1

Block 11 - Post to Teams

Type / Role
n8n-nodes-base.microsoftTeams - microsoftTeams
Config choices
Version 2

Block 12 - Log Success

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Main Triage Documentation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note - Section 1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note - Section 2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note - Section 3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Triage Microsoft 365 incidents into Jira with GPT-4o-mini, PagerDuty and Teams
Complexity advanced
Nodes 16
Categories Ticket Management, AI Summarization
Author Mychel Garzon
Published 12 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15674/15674.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Triage Microsoft 365 incidents into Jira with GPT-4o-mini, PagerDuty and Teams do?

Manual incident triage kills your MTTR. This workflow automates the first response so your engineers get actionable tickets instead of raw alerts. This workflow takes unstructured incident reports ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.