Skip to main content

Govern energy portfolios with GPT-4o, Perplexity, Slack, Gmail and Sheets

Workflow preview

Workflow preview
100%
Govern energy portfolios with GPT-4o, Perplexity, Slack, Gmail and Sheets preview
Open on n8n.io

1. Workflow Overview

How It Works This workflow automates energy portfolio governance for energy managers, sustainability teams, and policy compliance officers. It eliminates the manual effort of aggregating multi sour...

Best for

  • Engineering automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agenttool, @n8n/n8n-nodes-langchain.toolcalculator

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cheng Siong Chin.

Original n8n.io source

1.1 Workflow description

Title
Govern energy portfolios with GPT-4o, Perplexity, Slack, Gmail and Sheets
Workflow name
Govern energy portfolios with GPT-4o, Perplexity, Slack, Gmail and Sheets

How It Works

This workflow automates energy portfolio governance for energy managers, sustainability teams, and policy compliance officers. It eliminates the manual effort of aggregating multi-source energy data, applying forecasting and optimisation logic, and distributing performance outcomes to stakeholders. Three scheduled API feeds, weather data, energy demand, and renewable generation, are combined into a unified dataset. The Energy Governance Agent, backed by shared memory and a governance model, coordinates three specialist agents: a Renewable Forecasting Agent (predictive generation modelling), a Weather Analysis Agent (climate-adjusted demand assessment), and a Policy Compliance Agent (regulatory alignment checking). Five tools support the orchestration: an Energy Calculator, Optimisation Algorithm Tool, External Data API Tool, Sustainability Research Tool, and Structured KPI Output parser. Results are distributed across three outputs, a Slack sustainability alert, a Gmail performance dashboard email, and a Google Sheets KPI store, giving stakeholders immediate, channel-appropriate visibility into energy governance outcomes.

Setup Steps

  1. Import workflow; configure the Energy Analysis Schedule trigger interval.
  2. Set API endpoint URLs for Fetch Weather Data, Fetch Energy Demand, and Fetch Renewable Generation nodes.
  3. Add AI model credentials to the Agents.
  4. Connect Slack credentials to the Send Sustainability Alert node.
  5. Link Gmail credentials to the Email Performance Dashboard node.
  6. Link Google Sheets credentials; set the sheet ID for the Energy KPIs tab.

Prerequisites

  • OpenAI API key (or compatible LLM)
  • Slack workspace with bot credentials
  • Gmail account with OAuth credentials
  • Google Sheets with Energy KPIs tab pre-created

Use Cases

  • Energy managers automating renewable generation forecasting against real-time demand data

Customisation

  • Swap the Optimisation Algorithm Tool parameters to target carbon intensity, cost, or grid stability objectives

Benefits

  • Parallel triple-source ingestion ensures governance decisions are based on complete, synchronised energy data

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Energy Analysis Schedule

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 2 - Fetch Weather Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 3 - Fetch Energy Demand

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 4 - Fetch Renewable Generation

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 5 - Combine Energy Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 6 - Energy Governance Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 7 - Governance Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 8 - Structured KPI Output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 9 - Renewable Forecasting Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 10 - Forecasting Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 11 - Weather Analysis Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 12 - Weather Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 13 - Policy Compliance Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 14 - Policy Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 15 - Energy Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 16 - Optimization Algorithm Tool

Type / Role
@n8n/n8n-nodes-langchain.toolCode - toolCode
Config choices
Version 1.3

Block 17 - External Data API Tool

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.4

Block 18 - Sustainability Research Tool

Type / Role
n8n-nodes-base.perplexityTool - perplexityTool
Config choices
Version 1

Block 19 - Store Energy KPIs

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 20 - Send Sustainability Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 21 - Email Performance Dashboard

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 22 - Prepare Sheet Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Govern energy portfolios with GPT-4o, Perplexity, Slack, Gmail and Sheets
Complexity advanced
Nodes 28
Categories Engineering, AI RAG
Author Cheng Siong Chin
Published 29 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14438/14438.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Govern energy portfolios with GPT-4o, Perplexity, Slack, Gmail and Sheets do?

How It Works This workflow automates energy portfolio governance for energy managers, sustainability teams, and policy compliance officers. It eliminates the manual effort of aggregating multi sour...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI RAG use case.