{
  "name": "Monitor grid telemetry and automate compliance alerts with GPT-4o and Slack",
  "nodes": [
    {
      "id": "1f0754ad-5e58-44b4-be9f-0c87fac4f743",
      "name": "Grid Telemetry Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        256,
        496
      ]
    },
    {
      "id": "83695746-82b3-425c-b818-084acb5fbbfe",
      "name": "Coordination Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1056,
        512
      ]
    },
    {
      "id": "6f96b93e-46cb-4568-b6da-a635b885c1d0",
      "name": "Coordination Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        720
      ]
    },
    {
      "id": "caababd6-e667-4838-95e2-54a7b09b39f5",
      "name": "Coordination Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        608,
        720
      ]
    },
    {
      "id": "8d54e7ed-3c66-4aec-8c17-8a0b9558a12c",
      "name": "Grid Signal Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        736,
        720
      ]
    },
    {
      "id": "9774fd0f-714f-4a33-bd85-2195ec6b02ae",
      "name": "Grid Signal Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        544,
        928
      ]
    },
    {
      "id": "3c39161e-a918-4586-a6d8-3c12e0908164",
      "name": "Telemetry Structure Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        896,
        928
      ]
    },
    {
      "id": "063154d9-e790-4590-9bf4-8a5233b07efe",
      "name": "Telemetry Validation Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        704,
        928
      ]
    },
    {
      "id": "3dbb5895-3587-46a3-82b7-6e51ea309471",
      "name": "Compliance Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1024,
        720
      ]
    },
    {
      "id": "ecd0b8e2-2afb-4938-877e-db108c3bdea8",
      "name": "Compliance Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1072,
        928
      ]
    },
    {
      "id": "cb4e5ea4-a769-43d8-9d6f-41d396ff226a",
      "name": "Compliance History Tool",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        1232,
        928
      ]
    },
    {
      "id": "1245ea5c-38bd-4012-8fd4-75906f9abc57",
      "name": "Reporting Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1392,
        720
      ]
    },
    {
      "id": "558209d6-3e5a-4aa2-8439-83c86e2419ea",
      "name": "Reporting Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1440,
        928
      ]
    },
    {
      "id": "41e8ff02-be78-46be-9f91-280b51a463d2",
      "name": "Notification Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1664,
        720
      ]
    },
    {
      "id": "4e103ff9-0ab5-43b0-b23a-0703a959172d",
      "name": "Notification Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1664,
        928
      ]
    },
    {
      "id": "094ffd8d-6227-41e1-9e99-8fd9e2bc9ff5",
      "name": "Slack Notification Tool",
      "type": "n8n-nodes-base.slackTool",
      "position": [
        1824,
        928
      ]
    },
    {
      "id": "f2540f66-f949-4cbe-8ce8-277a660e2644",
      "name": "Prepare Telemetry Storage",
      "type": "n8n-nodes-base.set",
      "position": [
        2048,
        656
      ]
    },
    {
      "id": "61ec9e9a-fe2c-44ce-98b7-557cfbbd022d",
      "name": "Store Validated Telemetry",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2272,
        464
      ]
    },
    {
      "id": "4351eb1e-23e7-4f8d-af21-ec9350887011",
      "name": "Prepare Compliance Alerts",
      "type": "n8n-nodes-base.set",
      "position": [
        2272,
        656
      ]
    },
    {
      "id": "6e1b1d11-1d23-4b90-8d9b-4781b87a4874",
      "name": "Store Compliance Alerts",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2496,
        656
      ]
    },
    {
      "id": "c68df617-b6f9-41ad-b608-f7503fa85429",
      "name": "Send Report Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2272,
        848
      ]
    },
    {
      "id": "bc3f3106-78ab-4acc-b7a1-86010b760374",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        -128
      ],
      "parameters": {
        "width": 496,
        "height": 432,
        "content": "## Prerequisites\n- Slack workspace and bot token\n- Email account (SMTP or Gmail OAuth2)\n- Database or Google Sheets for telemetry and alert storage\n## Use Cases\n- Real-time anomaly detection and alert"
      }
    },
    {
      "id": "a41050a4-ab6d-4939-a497-c06883bd51c3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        48
      ],
      "parameters": {
        "width": 352,
        "height": 272,
        "content": "## Setup Steps\n1. Configure webhook URL in **Grid Telemetry Webhook** node.\n2. Set AI model credentials (OpenAI/Anthropic) in all agent and model nodes.\n3. Connect Slack credentials and target channel"
      }
    },
    {
      "id": "dd5263db-509a-4467-8156-861a8607938e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        0
      ],
      "parameters": {
        "width": 496,
        "height": 336,
        "content": "## How It Works\nThis workflow automates real-time energy grid telemetry ingestion, compliance validation, and multi-channel reporting for grid operators, energy managers, and compliance teams. Telemet"
      }
    },
    {
      "id": "7c5ea94f-f748-4e9e-8d17-0a29a454a116",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        352
      ],
      "parameters": {
        "width": 592,
        "height": 752,
        "content": "## Reporting & Notification\n**What** — Reporting Agent generates summaries; Notification Agent triggers Slack alerts.\n**Why** — Delivers actionable intelligence instantly to the right teams."
      }
    },
    {
      "id": "5ce31105-6782-4f7b-85f0-8384b97d4382",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        368
      ],
      "parameters": {
        "width": 352,
        "height": 672,
        "content": "## Compliance Check\n**What** — Compliance Agent cross-references telemetry against compliance history.\n**Why** — Detects violations in real time without manual policy review."
      }
    },
    {
      "id": "168bfc83-4976-4701-ae63-e07436d5a816",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        368
      ],
      "parameters": {
        "width": 832,
        "height": 736,
        "content": "\n## Signal Validation & Parsing\n**What** — Grid Signal Agent validates telemetry and parses structure via dedicated tools.\n**Why** — Ensures only clean, correctly structured data proceeds to analysis."
      }
    },
    {
      "id": "ba09a044-e321-4bce-95f7-e8c036b89bfe",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2016,
        352
      ],
      "parameters": {
        "width": 656,
        "height": 768,
        "content": "## Store & Distribute\n**What** — Stores validated telemetry, compliance alerts, and sends report emails.\n**Why** — Creates persistent records for audit trails and regulatory reporting."
      }
    }
  ],
  "connections": {
    "Reporting Agent": {
      "ai_tool": [
        [
          {
            "node": "Coordination Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Reporting Model": {
      "ai_languageModel": [
        [
          {
            "node": "Reporting Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Agent": {
      "ai_tool": [
        [
          {
            "node": "Coordination Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Model": {
      "ai_languageModel": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Grid Signal Agent": {
      "ai_tool": [
        [
          {
            "node": "Coordination Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Grid Signal Model": {
      "ai_languageModel": [
        [
          {
            "node": "Grid Signal Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Coordination Agent": {
      "main": [
        [
          {
            "node": "Prepare Telemetry Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Coordination Model": {
      "ai_languageModel": [
        [
          {
            "node": "Coordination Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Notification Agent": {
      "ai_tool": [
        [
          {
            "node": "Coordination Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Notification Model": {
      "ai_languageModel": [
        [
          {
            "node": "Notification Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Coordination Memory": {
      "ai_memory": [
        [
          {
            "node": "Coordination Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Grid Telemetry Webhook": {
      "main": [
        [
          {
            "node": "Coordination Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance History Tool": {
      "ai_tool": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Slack Notification Tool": {
      "ai_tool": [
        [
          {
            "node": "Notification Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Compliance Alerts": {
      "main": [
        [
          {
            "node": "Store Compliance Alerts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Telemetry Storage": {
      "main": [
        [
          {
            "node": "Store Validated Telemetry",
            "type": "main",
            "index": 0
          },
          {
            "node": "Prepare Compliance Alerts",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Report Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telemetry Validation Tool": {
      "ai_tool": [
        [
          {
            "node": "Grid Signal Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telemetry Structure Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Grid Signal Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}