{"product_id":"n8n-workflow-generate-co2e-emission-reports-w-gpt-4-1-slack","title":"n8n Workflow: Generate CO2e Emission Reports w\/ GPT-4.1 \u0026 Slack","description":"\u003ch3\u003eGenerate CO2e emission reports from real consumption data—then share them to Slack\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow ingests electricity and fuel consumption (via webhook, schedule, or manual run), calculates CO2e using a live grid carbon-intensity API with a safe fallback, creates a structured sustainability report with GPT-4.1, and sends only approved results to your ESG dashboard and \u003cstrong\u003eSlack\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStarts from your inputs:\u003c\/strong\u003e Triggers using a POST \u003cstrong\u003ewebhook\u003c\/strong\u003e, a \u003cstrong\u003emonthly schedule\u003c\/strong\u003e, or a manual test run, then loads reporting configuration and consumption data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches live grid carbon intensity:\u003c\/strong\u003e Calls \u003cstrong\u003eapi.carbonintensity.org.uk\u003c\/strong\u003e for current grid carbon-intensity. If the request fails, it applies a \u003cstrong\u003estatic emissions factor fallback\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalculates and classifies CO2e:\u003c\/strong\u003e Computes electricity, fuel, and total \u003cstrong\u003eCO2e\u003c\/strong\u003e, then categorizes the outcome into \u003cstrong\u003elow, medium, high, or critical\u003c\/strong\u003e using configurable thresholds.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHuman review gate:\u003c\/strong\u003e Pauses for a reviewer to validate the data. The workflow continues only when the run is resumed and marked as \u003cstrong\u003eapproved\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates an OpenAI sustainability report:\u003c\/strong\u003e Uses \u003cstrong\u003eOpenAI\u003c\/strong\u003e (Chat Model) with \u003cstrong\u003eGPT-4.1\u003c\/strong\u003e to produce a structured report from the calculated emissions, then parses the JSON payload with a safe fallback.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApproves or discards outputs:\u003c\/strong\u003e If approved, pushes the report to an \u003cstrong\u003eESG dashboard API\u003c\/strong\u003e endpoint and posts a formatted summary to a \u003cstrong\u003eSlack\u003c\/strong\u003e channel. If not approved, it marks the run as \u003cstrong\u003ediscarded\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomate monthly CO2e reporting for SaaS operations using energy and fuel data.\u003c\/li\u003e\n  \u003cli\u003eCreate an auditable review-and-approval workflow before emissions data reaches your ESG tooling.\u003c\/li\u003e\n  \u003cli\u003eNotify stakeholders in Slack with concise emissions summaries after approval.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes:\u003c\/strong\u003e if, set, code, wait, slack, switch\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e api.carbonintensity.org.uk (grid carbon intensity), OpenAI (GPT-4.1 sustainability report), Slack (chat:write), ESG dashboard API\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e add OpenAI credentials, add Slack credentials with permission to post (chat:write), and configure the target Slack channel and thresholds.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45891845816499,"sku":"N8N-18620","price":6.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/5sJy4B22Xib-NRFLWlwSC_pTKuAc0s.png?v=1787562416","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-generate-co2e-emission-reports-w-gpt-4-1-slack","provider":"N8N Commerce","version":"1.0","type":"link"}