{
  "name": "Monitor IoT sustainability compliance and ESG reports with OpenAI, Airtable, Slack and Gmail",
  "nodes": [
    {
      "id": "1a5e744b-c3d6-4829-8c46-7e1aa408e1ab",
      "name": "Every 15 Minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2112,
        256
      ]
    },
    {
      "id": "87ff49df-25f9-4924-b44a-c423a0af75c4",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1888,
        256
      ]
    },
    {
      "id": "ee4abdc7-7fc2-45d6-8b56-6be6e94fb2f8",
      "name": "Parse and Structure IoT Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -1456,
        256
      ]
    },
    {
      "id": "c261df18-be60-4199-8210-dbb7f3c768d4",
      "name": "Compliance Monitor Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1216,
        256
      ]
    },
    {
      "id": "7891ae3f-29c8-4834-a9ec-7fa9f33614d0",
      "name": "OpenAI Model - Compliance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1216,
        480
      ]
    },
    {
      "id": "0d315164-d830-4bb4-a2e1-0b679ef2b023",
      "name": "Compliance Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1088,
        480
      ]
    },
    {
      "id": "15bacddb-4f7e-4732-99c7-e816ad54a040",
      "name": "Anomaly Detection Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -864,
        256
      ]
    },
    {
      "id": "369a0f2f-2d8f-4d4f-bca6-1af3ff0a2d74",
      "name": "OpenAI Model - Anomaly",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -864,
        480
      ]
    },
    {
      "id": "644c57dd-e62d-4f13-b0aa-1ac3329479d3",
      "name": "Anomaly Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -736,
        480
      ]
    },
    {
      "id": "1d6db435-3ba0-4519-92f0-c237506a8853",
      "name": "Check for Issues",
      "type": "n8n-nodes-base.if",
      "position": [
        -512,
        256
      ]
    },
    {
      "id": "5139d3cf-8716-432f-a02f-87813baac4a8",
      "name": "Prepare Alert Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -288,
        96
      ]
    },
    {
      "id": "b4228e21-4ea5-468c-a794-6ffad4800d2b",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        0,
        96
      ]
    },
    {
      "id": "b93fabd2-3a6d-4667-aaa4-8a2ca3658051",
      "name": "Aggregate Daily Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -288,
        496
      ]
    },
    {
      "id": "177288ae-829b-4107-ba85-1a32c6c26c01",
      "name": "ESG Report Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -64,
        496
      ]
    },
    {
      "id": "b805a1ca-e22e-4c47-a002-f2ea72ea0bd0",
      "name": "OpenAI Model - ESG Report",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -64,
        688
      ]
    },
    {
      "id": "a00b53f7-b65b-4279-9acc-70978935cb3f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -784,
        -288
      ],
      "parameters": {
        "width": 576,
        "height": 304,
        "content": "\n## Prerequisites\nIoT sensor platform API access, OpenAI API key, Gmail/Slack accounts\n## Use Cases\nManufacturing quality control, environmental compliance monitoring\n## Customization\nModify sensor po"
      }
    },
    {
      "id": "335d005c-7a3c-4555-8364-3edbc061a985",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        -256
      ],
      "parameters": {
        "width": 416,
        "height": 192,
        "content": "## Setup Steps\n1. Configure AirTable credentials and set 15-minute schedule interval\n2. Add OpenAI API keys for compliance and anomaly detection agents, configure regulatory thresholds\n3. Set Gmail/Sl"
      }
    },
    {
      "id": "9b562fdb-0b8a-4792-988b-ea16744ff0f3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2064,
        -256
      ],
      "parameters": {
        "width": 768,
        "height": 224,
        "content": "## How It Works\nThis workflow automates IoT device compliance monitoring and anomaly detection for industrial operations. Designed for facility managers, quality assurance teams, and regulatory compli"
      }
    },
    {
      "id": "88b59bcc-b71a-4c4a-aaf8-c0c557293fab",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        64
      ],
      "parameters": {
        "width": 1760,
        "height": 800,
        "content": "## Intelligent Alert Routing & ESG Reporting\n\n**What:** Issues trigger email and Slack alerts for immediate action. \n\n**Why:** Alert fatigue from undifferentiated notifications delays responses. "
      }
    },
    {
      "id": "2212e5b3-21d9-4db9-abae-a6e46b0b4efb",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2144,
        64
      ],
      "parameters": {
        "width": 864,
        "height": 416,
        "content": "## Real-Time Compliance & Anomaly Detection\n\n**What:** Fetches IoT sensor data every 15 minutes, parses and structures readings  \n\n**Why:** Manual sensor monitoring misses critical violations and anom"
      }
    },
    {
      "id": "955e9e63-4e62-4f7b-a1c8-257501d7388b",
      "name": "Get IoT Data",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -1696,
        256
      ]
    },
    {
      "id": "49385d7b-8d68-4d69-842c-b451cd3755bb",
      "name": "📧 Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        256,
        496
      ]
    }
  ],
  "connections": {
    "Get IoT Data": {
      "main": [
        [
          {
            "node": "Parse and Structure IoT Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Issues": {
      "main": [
        [
          {
            "node": "Prepare Alert Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Aggregate Daily Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every 15 Minutes": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Alert Data": {
      "main": [
        [
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Daily Data": {
      "main": [
        [
          {
            "node": "ESG Report Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ESG Report Generator": {
      "main": [
        [
          {
            "node": "📧 Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anomaly Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Anomaly Detection Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Anomaly": {
      "ai_languageModel": [
        [
          {
            "node": "Anomaly Detection Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Get IoT Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anomaly Detection Agent": {
      "main": [
        [
          {
            "node": "Check for Issues",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Monitor Agent": {
      "main": [
        [
          {
            "node": "Anomaly Detection Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Compliance Monitor Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Compliance": {
      "ai_languageModel": [
        [
          {
            "node": "Compliance Monitor Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - ESG Report": {
      "ai_languageModel": [
        [
          {
            "node": "ESG Report Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse and Structure IoT Data": {
      "main": [
        [
          {
            "node": "Compliance Monitor Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}