{
  "name": "Govern energy portfolios with GPT-4o, Perplexity, Slack, Gmail and Sheets",
  "nodes": [
    {
      "id": "ff1c52e9-74e1-4856-9c39-b5ce70648a13",
      "name": "Energy Analysis Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        256,
        496
      ]
    },
    {
      "id": "0806a3fe-9d07-40ca-9b25-f07388d8391a",
      "name": "Fetch Weather Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        304
      ]
    },
    {
      "id": "d668b40d-8da9-430b-b24d-220c1e62aa4c",
      "name": "Fetch Energy Demand",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        496
      ]
    },
    {
      "id": "d097b13e-4516-4d33-860a-50a0342f7711",
      "name": "Fetch Renewable Generation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        688
      ]
    },
    {
      "id": "8d45a455-1bd9-4043-876e-1a70520cb75d",
      "name": "Combine Energy Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        704,
        480
      ]
    },
    {
      "id": "1eb8242f-9f0e-4847-a82d-70fe493a6878",
      "name": "Energy Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1856,
        496
      ]
    },
    {
      "id": "2d8ebfc8-8528-4c04-91d4-95ad16b4053e",
      "name": "Governance Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        928,
        720
      ]
    },
    {
      "id": "d2201c9e-ea06-482a-9ce4-cbdd57b36e9c",
      "name": "Structured KPI Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2432,
        720
      ]
    },
    {
      "id": "802936ed-7ea7-4bbb-86e9-008cb1efe917",
      "name": "Renewable Forecasting Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1056,
        720
      ]
    },
    {
      "id": "3f8bc7ec-2e47-49ed-9c28-19e095a4d0ed",
      "name": "Forecasting Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1136,
        928
      ]
    },
    {
      "id": "ede50230-9b8c-43e3-85ee-51f2b52e2f9b",
      "name": "Weather Analysis Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1344,
        720
      ]
    },
    {
      "id": "423f6c8a-7375-4e85-a519-099468cffd35",
      "name": "Weather Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1424,
        928
      ]
    },
    {
      "id": "847bf588-0296-42e7-87dc-384424ae3e4d",
      "name": "Policy Compliance Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1632,
        720
      ]
    },
    {
      "id": "f8a74528-5082-43c5-a831-a8292268e336",
      "name": "Policy Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1712,
        928
      ]
    },
    {
      "id": "8a5335ce-0077-4231-93ec-6395c7d57a61",
      "name": "Energy Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        1920,
        720
      ]
    },
    {
      "id": "38408357-003d-469c-ae9f-3b63bfe613ed",
      "name": "Optimization Algorithm Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        2048,
        720
      ]
    },
    {
      "id": "82d2c6d0-8003-4fff-9e17-a9f68c3040f9",
      "name": "External Data API Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        2176,
        720
      ]
    },
    {
      "id": "9d3080ac-8a34-4a42-b563-c0346d09968c",
      "name": "Sustainability Research Tool",
      "type": "n8n-nodes-base.perplexityTool",
      "position": [
        2304,
        720
      ]
    },
    {
      "id": "6ab3a126-37a0-4ae3-9c8e-cd8d639e4ef4",
      "name": "Store Energy KPIs",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2864,
        688
      ]
    },
    {
      "id": "5bf20b2b-b500-4912-923b-c08ea0b676f6",
      "name": "Send Sustainability Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2640,
        304
      ]
    },
    {
      "id": "02b99fec-bde8-47ae-8e52-07fc4e9e5b3a",
      "name": "Email Performance Dashboard",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2640,
        496
      ]
    },
    {
      "id": "bfcd2f86-5138-4e7f-ab96-8c9257cfc7a5",
      "name": "Prepare Sheet Data",
      "type": "n8n-nodes-base.set",
      "position": [
        2640,
        688
      ]
    },
    {
      "id": "7e5c76e5-4f0c-4e30-9020-2eb81319d97a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        -48
      ],
      "parameters": {
        "width": 544,
        "height": 224,
        "content": "## Setup Steps\n1. Import workflow; configure the Energy Analysis Schedule trigger interval.\n2. Set API endpoint URLs for Fetch Weather Data, Fetch Energy Demand, and Fetch Renewable Generation nodes.\n"
      }
    },
    {
      "id": "ed5d9ac9-4772-4ea2-acc1-83df6b5b3dc6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        -176
      ],
      "parameters": {
        "width": 656,
        "height": 336,
        "content": "## How It Works\nThis workflow automates energy portfolio governance for energy managers, sustainability teams, and policy compliance officers. It eliminates the manual effort of aggregating multi-sour"
      }
    },
    {
      "id": "13cc82b0-eab4-4d0e-ba3c-9ca0eac32f81",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        -240
      ],
      "parameters": {
        "width": 624,
        "height": 416,
        "content": "## Prerequisites\n- OpenAI API key (or compatible LLM)\n- Slack workspace with bot credentials\n- Gmail account with OAuth credentials\n- Google Sheets with Energy KPIs tab pre-created\n## Use Cases\n- Ener"
      }
    },
    {
      "id": "0a084172-9c7b-4f1f-a679-46c3371ebd7f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2576,
        128
      ],
      "parameters": {
        "width": 480,
        "height": 976,
        "content": "## Send Sustainability Alert, Email Dashboard & Store Energy KPIs\n**Why** — Distributes governance outcomes via Slack alerts, Gmail dashboards, and Google Sheets KPI logs to keep all stakeholders info"
      }
    },
    {
      "id": "8998bbf3-4f53-4d1c-a58e-7c469c89c733",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        240
      ],
      "parameters": {
        "width": 1216,
        "height": 864,
        "content": "\n## Energy Calculator, Optimisation & External Data Tools\n**Why** — Applies quantitative calculation, algorithmic optimisation, and live external data enrichment to produce governance-grade energy rec"
      }
    },
    {
      "id": "2570a8a9-4e1f-445e-a277-80d70530b1a3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        208
      ],
      "parameters": {
        "width": 1056,
        "height": 896,
        "content": "## Energy Governance Agent & Specialist Agents\n**Why** — Coordinates Renewable Forecasting, Weather Analysis, and Policy Compliance agents using shared memory, enabling context-aware optimisation acro"
      }
    }
  ],
  "connections": {
    "Policy Model": {
      "ai_languageModel": [
        [
          {
            "node": "Policy Compliance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Weather Model": {
      "ai_languageModel": [
        [
          {
            "node": "Weather Analysis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Governance Model": {
      "ai_languageModel": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Energy Calculator": {
      "ai_tool": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Forecasting Model": {
      "ai_languageModel": [
        [
          {
            "node": "Renewable Forecasting Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Weather Data": {
      "main": [
        [
          {
            "node": "Combine Energy Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Sheet Data": {
      "main": [
        [
          {
            "node": "Store Energy KPIs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Energy Data": {
      "main": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Energy Demand": {
      "main": [
        [
          {
            "node": "Combine Energy Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Structured KPI Output": {
      "ai_outputParser": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "External Data API Tool": {
      "ai_tool": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Weather Analysis Agent": {
      "ai_tool": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Energy Governance Agent": {
      "main": [
        [
          {
            "node": "Prepare Sheet Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Sustainability Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email Performance Dashboard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Policy Compliance Agent": {
      "ai_tool": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Energy Analysis Schedule": {
      "main": [
        [
          {
            "node": "Fetch Weather Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Energy Demand",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Renewable Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Renewable Generation": {
      "main": [
        [
          {
            "node": "Combine Energy Data",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Optimization Algorithm Tool": {
      "ai_tool": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Renewable Forecasting Agent": {
      "ai_tool": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Sustainability Research Tool": {
      "ai_tool": [
        [
          {
            "node": "Energy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}