Generate carbon emission reports with GPT-4.1-mini, Slack, and ESG APIs
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects OpenAI Chat Model and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Set - Config (Edit Fields (Set)): sets 21 fields: companyName, facilityName, region…
- HTTP Request: calls an HTTP API
- JS - Calculate Carbon Emissions (Code): runs custom JavaScript code
- Switch: routes items into 4 branches
- Wait: pauses before continuing
- If: checks a condition and branches into true / false
- HTTP Request: calls an HTTP API
- JS - Compute YoY Trend (Code): runs custom JavaScript code
- Set - Discarded/Cancelled (Edit Fields (Set)): sets 1 field: finalStatus
- JS - Estimate Offset Cost (optional) (Code): runs custom JavaScript code
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Slack
n8n-nodes-base.slack
From the author
Quick Overview This workflow ingests electricity and fuel consumption via webhook, schedule, or manual run, estimates CO2e using a live grid carbon-intensity API with fallback factors, generates an OpenAI sustainability report after human review, then sends…