Library / Reports, Analytics & Dashboards
Reports, Analytics & Dashboards
Calculate CO2e emissions by GHG scope and report via Slack with OpenAI
Triggered by webhook, converts electricity and fuel data to CO2e, classifies emissions by GHG Scope 1, 2 or 3, compares with the prior period and drafts a report with approval checkpoints.
What it does
## Carbon Emission Monitoring, Scope Classification & Offset Reporting Converts electricity + fuel consumption data into estimated CO2e emissions, classifies it by GHG Protocol Scope 1/2/3, compares it against the prior reporting period, estimates a carbon offset cost, and generates a periodic sustainability report for management — with human checkpoints for data review and report approval, plus an extra checkpoint if emissions are Critical. ### How to set up 1. Import this workflow into n8n 2. Add credentials: OpenAI (Chat Model) and Slack (chat:write). The HTTP Request nodes work without credentials against public/demo endpoints — swap in your real carbon-intensity API, historical-data source, and ESG dashboard/API and add auth as needed 3. Edit Set - Config: emission factors, thresholds (low/medium/high/critical, in kg CO2e), scope mapping, offset price per tonne, region, reportingPeriod, notifyChannel, dashboardApiUrl 4. Point the webhook trigger at your metering/facilities data source, OR enable the optional 'Auto-Fetch Consumption Data' node if you have a metering API 5. Point the four Wait nodes' resume webhooks at your review UI's 'acknowledge alert', 'approve data' and 'approve report' actions 6. Activate the workflow, or use the Manual Trigger to test end to end ### Optional / floating nodes (plug in as needed) - HTTP Request - Auto-Fetch Consumption Data: not wired into the main path by default — connect it ahead of Set - Config instead of the manual webhook if you have a metering API to poll - HTTP Request - Fetch Prior Period Report: pulls last period's total from your dashboard so JS - Compute YoY Trend can report a real delta instead of an LLM guess. Disconnect if you don't have historical data yet - JS - Estimate Offset Cost: turns total emissions into a tonnes-CO2e figure and an estimated offset purchase cost using your configured price/tonne. Remove if offsetting isn't part of your program - PDF Export via pdf skill / Convert to File node: swap or add alongside Slack - Notify Management if you want a downloadable report instead of, or in addition to, a chat message
The steps
- Webhook - Consumption Data Uploaded
- Schedule Trigger - Periodic Report
- Manual Trigger - Test Run
- HTTP Request - Auto-Fetch Consumption Data (optional)
- Set - Config
- HTTP Request - Fetch Grid Emission Factor
- JS - Calculate Carbon Emissions
- Switch - Emission Level Router
- Wait - For Data Review
- IF - Review Approved
- HTTP Request - Fetch Prior Period Report (optional)
- JS - Compute YoY Trend
- JS - Estimate Offset Cost (optional)
- OpenAI Chat Model
21 steps in total.
Similar automations
Reports, Analytics & DashboardsCalculate Freight Shipment CO2 Emissions from Gmail with OpenAI7 stepsReports, Analytics & DashboardsCalculate Business Travel CO2 Emissions from Gmail with OpenAI9 stepsEmail AutomationDraft change-order replies to out-of-scope client emails with Gmail and OpenAI11 stepsDocuments, PDF & OCRDetect scope creep in Gmail requests against SOWs with OpenAI and Google Docs14 steps