Orchestrate multi-agent energy optimization with OpenAI GPT and Claude
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model and Anthropic Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Perception Agent (AI Agent): runs an AI agent, with model: GPT Model - Perception; output parser: Perception Output Parser
- Energy Optimization Agent (AI Agent): runs an AI agent, with model: GPT Model - Energy; 2 tools (Energy Analysis Tool, Thermodynamic Calculator); output parser: Energy Output Parser
- Planning Agent (AI Agent): runs an AI agent, with model: GPT Model - Planning; 1 tool (Thermodynamic Calculator); output parser: Planning Output Parser
- Execution Agent (AI Agent): runs an AI agent, with model: Claude Model - Execution; 2 tools (Energy Analysis Tool, Thermodynamic Calculator); output parser: Execution Output Parser
- Validation Agent (AI Agent): runs an AI agent, with model: Claude Model - Validation; 1 tool (Thermodynamic Calculator); output parser: Validation Output Parser
- Route by Validation (Switch): routes items into 2 branches
- Generate System Report (Edit Fields (Set)): sets 7 fields: reportType, timestamp, perceptionData…
- Recalibration Agent (AI Agent): runs an AI agent, with model: Claude Model - Execution; 2 tools (Energy Analysis Tool, Thermodynamic Calculator)
- Merge: merges the data from its input branches
- Send Alert (HTTP Request): calls an HTTP API (POST)
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick Overview This workflow runs manually to orchestrate multi-agent analysis for a thermodynamic system, using OpenAI and Anthropic models to interpret sensor inputs, optimize energy usage, plan and execute tasks, validate results, and send an HTTP alert if…