{
  "name": "Get real-time security insights with NixGuard RAG and Wazuh integration",
  "nodes": [
    {
      "id": "a5bc6043-aa78-4d48-a963-e222a07bf279",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        240,
        -140
      ]
    },
    {
      "id": "078e096f-8dd8-45cd-9d99-8daed60560a3",
      "name": "Execute Workflow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        240,
        40
      ]
    },
    {
      "id": "12df0479-e9b8-4e14-ade7-3093347c639f",
      "name": "Send Request to NixGuard API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        60
      ]
    },
    {
      "id": "511f9f45-b588-489e-be68-4b9524c15f9d",
      "name": "Format API Response",
      "type": "n8n-nodes-base.set",
      "position": [
        1420,
        280
      ]
    },
    {
      "id": "cc49de4b-51a8-42d3-826a-be24a33f7fc6",
      "name": "Prepare Final Output",
      "type": "n8n-nodes-base.code",
      "position": [
        1580,
        220
      ]
    },
    {
      "id": "cb9e71dc-2894-49da-b012-de32448e4474",
      "name": "Parse NixGuard Response",
      "type": "n8n-nodes-base.code",
      "position": [
        1260,
        340
      ]
    },
    {
      "id": "93e01374-8c80-4b8c-9b99-ccaea768c538",
      "name": "Merge Input Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        800,
        -80
      ]
    },
    {
      "id": "9d82ba68-ee6a-4078-8e77-33ae53598dba",
      "name": "Aggregate Security Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        960,
        -20
      ]
    },
    {
      "id": "51f2637f-c41a-417f-89e1-ae518489cfe0",
      "name": "Combine Security Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        20
      ]
    },
    {
      "id": "735957a6-1421-47e9-8bee-c7946cb637d6",
      "name": "Prepare API Request Data",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        -140
      ]
    },
    {
      "id": "2128ecaa-a5d4-4c8d-a7d8-c136831f8879",
      "name": "Data Aggregation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        80
      ],
      "parameters": {
        "width": 400,
        "height": 340,
        "content": "## Data Aggregation\n\nThis section combines multiple security data sources:\n1. **Merge Input Data**: Combines triggers from different sources\n2. **Aggregate Security Data**: Consolidates security event"
      }
    },
    {
      "id": "4fa5f6c0-63b5-47ab-b0f8-09a3cbb4e6e4",
      "name": "Workflow Overview1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -140
      ],
      "parameters": {
        "width": 500,
        "height": 380,
        "content": "## NixGuard Security Connector Workflow\n\nThis workflow integrates NixGuard's RAG (Retrieval-Augmented Generation) with Wazuh security data to provide real-time security insights.\n\n### Key Features:\n- "
      }
    },
    {
      "id": "f2fd2765-789b-4440-a6fc-7dead13cfae8",
      "name": "API Request Explanation1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        440
      ],
      "parameters": {
        "width": 400,
        "height": 380,
        "content": "## API Request Configuration\n\nThis node sends the security query to NixGuard's API endpoint with:\n- Proper authentication headers\n- Formatted request body\n- Required content type\n\n### Configuration:\n1"
      }
    },
    {
      "id": "c0acc267-23af-4d98-b0b2-1b5743ce3402",
      "name": "Response Processing1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        440
      ],
      "parameters": {
        "width": 400,
        "height": 320,
        "content": "## Response Processing\n\nThis section handles the NixGuard API response:\n1. **Parse NixGuard Response**: Converts JSON string to object\n2. **Format API Response**: Extracts relevant content\n3. **Prepar"
      }
    },
    {
      "id": "6a632ce2-5490-4a68-9fa7-22126cc7781a",
      "name": "Setup Guide1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        280
      ],
      "parameters": {
        "width": 400,
        "height": 440,
        "content": "## Getting Started\n\n### Prerequisites:\n- Valid NixGuard API key\n\n### Setup Instructions:\n1. Configure your NixGuard API key in 'Prepare API Request Data' node\n2. Set up trigger method (chat or manual)"
      }
    }
  ],
  "connections": {
    "Merge Input Data": {
      "main": [
        [
          {
            "node": "Aggregate Security Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format API Response": {
      "main": [
        [
          {
            "node": "Prepare Final Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Security Data": {
      "main": [
        [
          {
            "node": "Send Request to NixGuard API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Security Data": {
      "main": [
        [
          {
            "node": "Combine Security Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse NixGuard Response": {
      "main": [
        [
          {
            "node": "Format API Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Merge Input Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare API Request Data": {
      "main": [
        [
          {
            "node": "Merge Input Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Prepare API Request Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Request to NixGuard API": {
      "main": [
        [
          {
            "node": "Parse NixGuard Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}