Skip to main content

Automate Wazuh alert triage and reporting with GPT-4o-mini and Telegram

Workflow preview

Workflow preview
100%
Automate Wazuh alert triage and reporting with GPT-4o-mini and Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Are alert storms overwhelming your Security Operations workflows? This n8n workflow supercharges your SOC by fully automating triage, analysis, and notification for Wazuh alerts—blending event dr...

Best for

  • SecOps automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.webhook, n8n-nodes-base.noop, @n8n/n8n-nodes-langchain.chainsummarization, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate Wazuh alert triage and reporting with GPT-4o-mini and Telegram
Workflow name
Automate Wazuh alert triage and reporting with GPT-4o-mini and Telegram

🚨Are alert storms overwhelming your Security Operations workflows?

This n8n workflow supercharges your SOC by fully automating triage, analysis, and notification for Wazuh alerts—blending event-driven automation, OpenAI-powered contextual analysis, and real-time collaboration for incident response.

🔑 Key Features:

✅ Automated Triage:

Instantly filters Wazuh alerts by severity to focus analyst effort on the signals that matter.

🤖 AI-Driven Investigation Reports:

Uses OpenAI's GPT-4o-mini to auto-generate context-rich incident reports, including:

  • MITRE Tactic & Technique mapping
  • Impacted scope (IP addresses, hostnames)
  • External artifact reputation checks
  • Actionable security recommendations
  • Fully customizable prompt format aligned with your SOC playbooks

📡 Multi-Channel Notification

Delivers clean, actionable reports directly to your SOC team via Telegram. Easily extendable to Slack, Outlook, Gmail, Discord, or any other preferred channel.

🔇 Noise Reduction

Eliminates alert fatigue using smart filters and custom AI prompts that suppress false positives and highlight real threats.

🔧 Fully Customizable

Tweak severity thresholds, update prompt logic, or integrate additional data sources and channels — all with minimal effort


⚙️ How It Works

  1. Webhook
    Listens for incoming Wazuh alerts in real time.

  2. If Condition
    Filters based on severity (1 low, 2 medium, etc.) or other logic you define.

  3. AI Investigation (LangChain + OpenAI)
    Summarizes full alert logs and context using custom prompts to generate:

    • Incident Overview
    • Key Indicators
    • Log Analysis
    • Threat Classification
    • Risk Assessment
    • Security Recommendations
  4. Notification Delivery
    The report is parsed, cleaned, and sent to your SOC team in real-time, enabling rapid response — even during high-alert volumes.

  5. No-Op Path
    Efficiently discards irrelevant alerts without breaking the flow.


🧠 Why n8n + AI?

Traditional alert triage is manual, slow, and error-prone — leading to analyst burnout and missed critical threats.

This workflow shows how combining workflow automation with a tailored AI model enables your SOC to shift from reactive to proactive. Analysts can now:

  • Focus on critical investigations
  • Respond to alerts faster
  • Eliminate copy-paste fatigue
  • Get instant contextual summaries

> ⚠️ Note: We learned that generic AI isn’t enough. Context-rich prompts and alignment with your actual SOC processes are key to meaningful, scalable automation.


🚀 Ready to build a smarter, less stressful SOC?

Clone this workflow, adapt it to your processes, and never miss a critical alert again.

📬 Contributions welcome!
Feel free to raise PRs, suggest new enhancements, or fork for your own use cases.


Created by Mariskarthick M
Senior Security Analyst | Detection Engineer | Threat Hunter | Open-Source Enthusiast

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 - If

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

Block 2 - Wazuh Alert

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

Block 3 - No Operations

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

Block 4 - Investigation Summarization

Type / Role
@n8n/n8n-nodes-langchain.chainSummarization - chainSummarization
Config choices
Version 2.1

Block 5 - SOC Team

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Customized AI Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

3. Summary Table

Workflow Automate Wazuh alert triage and reporting with GPT-4o-mini and Telegram
Complexity intermediate
Nodes 6
Categories SecOps, AI Summarization
Author mariskarthick
Published 04 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6978/6978.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 Automate Wazuh alert triage and reporting with GPT-4o-mini and Telegram do?

Are alert storms overwhelming your Security Operations workflows? This n8n workflow supercharges your SOC by fully automating triage, analysis, and notification for Wazuh alerts—blending event dr...

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 SecOps, AI Summarization use case.