Automation library · AI assistants

Orchestrate multi-agent energy optimization with OpenAI

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to Claude and OpenAI. 25 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude, OpenAI

25 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 1Model 19Logic 4Service 1

The steps in the order they run, from what starts it.

  1. 1Initialize SystemManual triggerStarts it
  2. 2GPT Model - PerceptionLm Chat Open AiModel
  3. 3Perception Output ParserOutput Parser StructuredModel
  4. 4GPT Model - EnergyLm Chat Open AiModel
  5. 5Thermodynamic CalculatorTool CalculatorModel
  6. 6Energy Analysis ToolTool CodeModel
  7. 7Energy Output ParserOutput Parser StructuredModel
  8. 8GPT Model - PlanningLm Chat Open AiModel
  9. 9Planning Output ParserOutput Parser StructuredModel
  10. 10Claude Model - ExecutionLm Chat AnthropicModel
  11. 11Execution Output ParserOutput Parser StructuredModel
  12. 12Claude Model - ValidationLm Chat AnthropicModel
  13. 13Validation Output ParserOutput Parser StructuredModel
  14. 14Claude Model - Execution1Lm Chat AnthropicModel
  15. 15Perception AgentAgentModel
  16. 16Energy Optimization AgentAgentModel
  17. 17Planning AgentAgentModel
  18. 18Execution AgentAgentModel
  19. 19Validation AgentAgentModel
  20. 20Recalibration AgentAgentModel
  21. 21Route by ValidationSwitchLogic
  22. 22Send AlertHttp RequestService
  23. 23Generate System ReportSetLogic
  24. 24Merge Final ResultsMergeLogic
  25. 25Final System StateSetLogic

How it's built

Starts on
An event in a connected app
Steps
25, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
Claude, OpenAI

Questions

What does it need to run?

An n8n account, and a key for Claude and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Claude and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 25 steps before you point it at anything that matters.