Estimate compressed air leak costs with ThingsBoard, Google Sheets and Gemini
UnknownWhat this workflow does
This AI workflow has 25 nodes and runs on a schedule (every 6 hours). Along the way it connects Google Sheets, Redis, Google Gemini Chat Model and Slack and 2 more. It also calls api.open-meteo.com, api.eia.gov and api.pdfendpoint.com over HTTP.
How it runs
Trigger: On a schedule (every 6 hours).
- Fetch Compressor Config from Sheets (Google Sheets): uses Google Sheets
- Fetch Telemetry Timeseries (Things Board): work with telemetry
- Split Telemetry Readings (Split Out): splits a list into separate items
- Prepare Telemetry Data (Edit Fields (Set)): sets 6 fields: compressor_id, ts, hour_local…
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Aggregate Off-Shift Data (Summarize): summarizes / groups the items
- Fetch Ambient Weather Data (HTTP Request): calls api.open-meteo.com
- Fetch Industrial Power Tariff (HTTP Request): calls api.eia.gov
- Calculate Leak Costs (Code): runs custom JavaScript code
…plus 12 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
HTTP calls to: api.open-meteo.com, api.eia.gov, api.pdfendpoint.com
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @thingsboard/n8n-nodes-thingsboard is verified or supports 3.0 (used in Fetch Telemetry Timeseries).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (16)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Things Board
@thingsboard/n8n-nodes-thingsboard.thingsBoard - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - Summarize
n8n-nodes-base.summarize - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Redis
n8n-nodes-base.redis - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack - HTML
n8n-nodes-base.html - Gmail
n8n-nodes-base.gmail - Split Out
n8n-nodes-base.splitOut
From the author
Quick overview Youtube Video: https://youtu.be/X6l8klc6LGI?si=-UvUFEb0I7su8mOt This workflow runs every six hours to pull compressor configuration from Google Sheets and pressure/flow/power telemetry from ThingsBoard, enriches it with Open-Meteo weather and…