{
  "name": "Validate emissions data and generate carbon compliance reports with GPT-4o and Google Sheets",
  "nodes": [
    {
      "id": "e3bd3795-d1e2-4e2f-aa09-17ff5de7278c",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -880,
        560
      ]
    },
    {
      "id": "520bfe4e-07ab-4eb5-8ca1-0829bbaeb29c",
      "name": "Generate Sample Emissions Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -656,
        560
      ]
    },
    {
      "id": "4b96b0f6-f35e-405f-93d6-63ca5a98bd7e",
      "name": "Emissions Validation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -432,
        560
      ]
    },
    {
      "id": "0f514da6-e734-4fb5-b5e4-aa91309c19c7",
      "name": "OpenAI Model - Validation",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -464,
        784
      ]
    },
    {
      "id": "3096830a-8fa1-4733-b177-a1645a96b824",
      "name": "Validation Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -288,
        784
      ]
    },
    {
      "id": "49df4e9a-eb25-4be9-8262-bb1443a01474",
      "name": "Route by Validation Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        -80,
        544
      ]
    },
    {
      "id": "d10498a0-e370-458d-8b12-8b6a866d25f9",
      "name": "Carbon Accounting Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        272,
        704
      ]
    },
    {
      "id": "15b633ef-8137-4eaf-b4b1-3645738bb4ca",
      "name": "OpenAI Model - Accounting",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        224,
        896
      ]
    },
    {
      "id": "3e7ad908-5ca6-4698-bbd7-8e335e0bdfa1",
      "name": "Accounting Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        432,
        912
      ]
    },
    {
      "id": "6d4ea54f-2449-406e-a112-b16b3b019b0d",
      "name": "Regulatory Compliance Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        832,
        704
      ]
    },
    {
      "id": "408d58f4-a2c0-46db-bb20-133c0bbbbc14",
      "name": "OpenAI Model - Compliance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        864,
        912
      ]
    },
    {
      "id": "c3fc86c8-973b-4d26-a5d2-a372a2efc54f",
      "name": "Compliance Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1008,
        912
      ]
    },
    {
      "id": "dd69340b-648f-446e-b2fd-2dbffd19b9b8",
      "name": "Reporting Orchestrator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        432,
        496
      ]
    },
    {
      "id": "e7eea11b-6c9b-4cf2-b466-f772e8a5a954",
      "name": "OpenAI Model - Orchestrator",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        144,
        704
      ]
    },
    {
      "id": "2748314e-a2a2-4c30-9b37-c5322808c9d1",
      "name": "Report Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1136,
        720
      ]
    },
    {
      "id": "8d79f728-9f70-4793-ac3f-aee6db288565",
      "name": "Route by Compliance Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        1296,
        576
      ]
    },
    {
      "id": "bcb92280-5164-4918-a3a5-f3e0e082379c",
      "name": "Store Compliant Reports",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1520,
        496
      ]
    },
    {
      "id": "46f66392-4d24-4e5b-b8a9-681466097291",
      "name": "Store Non-Compliant Reports",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1520,
        688
      ]
    },
    {
      "id": "ac6b667a-77e8-4a1d-8d17-ba29fb322e62",
      "name": "Store Invalid Emissions Data",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        960,
        1104
      ]
    },
    {
      "id": "0a26673f-f90f-4115-8241-b4c92daacca7",
      "name": "Merge All Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        1744,
        672
      ]
    },
    {
      "id": "d8c6c9d0-cbce-4941-8b9c-59f33dc7eced",
      "name": "Format Final Summary",
      "type": "n8n-nodes-base.set",
      "position": [
        1968,
        688
      ]
    },
    {
      "id": "00b3b7ec-750a-42c3-8df6-1834bfcabd5e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 432,
        "height": 368,
        "content": "## Prerequisites\nNVIDIA NIM API key and Google Sheets access with write permissions.\n## Use Cases\nAutomates monthly GHG reporting and EPA compliance submissions\n## Customization\nExtend with region-spe"
      }
    },
    {
      "id": "20044ad2-52a4-4368-8c77-934889ff607d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        80
      ],
      "parameters": {
        "width": 400,
        "height": 288,
        "content": "## Setup Steps\n1. Configure API credentials with Llama-3.1-70B-Instruct model access\n2. Set up schedule trigger for monthly/quarterly reporting cycles\n3. Connect Google Sheets for compliant report sto"
      }
    },
    {
      "id": "7aa1e669-ba7e-4029-9f87-ffe318ccbf98",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        80
      ],
      "parameters": {
        "width": 592,
        "height": 288,
        "content": "## How It Works\nThis workflow automates emissions data validation and compliance reporting for environmental managers, sustainability officers, and compliance teams across manufacturing, energy, and t"
      }
    },
    {
      "id": "891c8b21-8d3a-41e6-80fe-22e293e2be72",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        416
      ],
      "parameters": {
        "width": 992,
        "height": 512,
        "content": "## Emissions Validation\nIdentifies data gaps and mathematical errors before regulatory submission to prevent compliance violations."
      }
    },
    {
      "id": "5e1149e5-2d92-4c68-88d5-766c82f8eef5",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        400
      ],
      "parameters": {
        "width": 848,
        "height": 752,
        "content": "## Accounting Review \nEnsures emissions categorization meets international reporting standards for stakeholder transparency."
      }
    },
    {
      "id": "fe9db634-f68c-430e-9cdc-e68db55bd16a",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        400
      ],
      "parameters": {
        "width": 1328,
        "height": 864,
        "content": "## Compliance Assessment \nConfirms legal compliance and identifies gaps requiring corrective action before filing deadlines."
      }
    },
    {
      "id": "617efb7b-3ff4-4b38-8d09-0cf586200598",
      "name": "Trigger for data collection",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1104,
        560
      ]
    }
  ],
  "connections": {
    "Merge All Results": {
      "main": [
        [
          {
            "node": "Format Final Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Report Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Reporting Orchestrator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Generate Sample Emissions Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Compliant Reports": {
      "main": [
        [
          {
            "node": "Merge All Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accounting Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Carbon Accounting Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Regulatory Compliance Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Validation Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Emissions Validation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Accounting": {
      "ai_languageModel": [
        [
          {
            "node": "Carbon Accounting Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Compliance": {
      "ai_languageModel": [
        [
          {
            "node": "Regulatory Compliance Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Validation": {
      "ai_languageModel": [
        [
          {
            "node": "Emissions Validation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Emissions Validation Agent": {
      "main": [
        [
          {
            "node": "Route by Validation Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Compliance Status": {
      "main": [
        [
          {
            "node": "Store Compliant Reports",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store Non-Compliant Reports",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Validation Status": {
      "main": [
        [
          {
            "node": "Reporting Orchestrator Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store Invalid Emissions Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Orchestrator": {
      "ai_languageModel": [
        [
          {
            "node": "Reporting Orchestrator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Store Non-Compliant Reports": {
      "main": [
        [
          {
            "node": "Merge All Results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Trigger for data collection": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Carbon Accounting Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Reporting Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Reporting Orchestrator Agent": {
      "main": [
        [
          {
            "node": "Route by Compliance Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Invalid Emissions Data": {
      "main": [
        [
          {
            "node": "Merge All Results",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Generate Sample Emissions Data": {
      "main": [
        [
          {
            "node": "Emissions Validation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Regulatory Compliance Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Reporting Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}