Detect campus energy leaks with Google Sheets, Google Calendar and Gemini
Needs changesWhat this workflow does
This AI workflow has 21 nodes and runs on a schedule (every 15 minutes) (plus 1 other trigger). Along the way it connects Google Sheets, Google Calendar, Slack and Google Gemini Chat Model. It also calls api.campus-bms-gateway.internal, api.open-meteo.com and api.maintainx.com over HTTP.
How it runs
Trigger: On a schedule (every 15 minutes) (plus 1 other trigger).
- Merge: merges the data from its input branches
- Fetch Smart Meter Data (HTTP Request): calls api.campus-bms-gateway.internal
- Split Building Data (Split Out): splits a list into separate items
- Read Building Baseline from Sheets (Google Sheets): uses Google Sheets
- Get School Master Calendar (Google Calendar): get many
- Fetch Campus Weather Data (HTTP Request): calls api.open-meteo.com
- Set Schedule & Occupancy Fields (Edit Fields (Set)): sets 8 fields: building_id, building_name, is_weekend…
- Set Financial & Anomaly Fields (Edit Fields (Set)): sets 11 fields: weather_compensation_factor, dynamic_allowed_kw, current_kw…
- Filter: keeps only the items that match a condition
- Deduplicate Energy Alerts (Remove Duplicates): removes duplicate items
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Slack templates (309)
HTTP calls to: api.campus-bms-gateway.internal, api.open-meteo.com, api.maintainx.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Energy Audit Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Energy Audit Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (16)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Webhook
n8n-nodes-base.webhook - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets - Google Calendar
n8n-nodes-base.googleCalendar - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - Remove Duplicates
n8n-nodes-base.removeDuplicates - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
From the author
Quick overview Youtube Video: https://www.youtube.com/shorts/vwW0553ZAJE This workflow monitors campus building power use by combining BMS telemetry with smart meter snapshots, Sheets baselines, Calendar occupancy signals, and local weather, then uses Gemini…