Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Webhook - Consumption Data Uploaded
  2. Schedule Trigger - Periodic Report
  3. Manual Trigger - Test Run
  4. HTTP Request - Auto-Fetch Consumption Data (optional)
  5. Set - Config
  6. HTTP Request - Fetch Grid Emission Factor
  7. JS - Calculate Carbon Emissions
  8. Switch - Emission Level Router
  9. Wait - For Data Review
  10. IF - Review Approved
  11. HTTP Request - Fetch Prior Period Report (optional)
  12. JS - Compute YoY Trend
  13. JS - Estimate Offset Cost (optional)
  14. OpenAI Chat Model

21 steps in total.

Similar automations