# Generate carbon emission reports with OpenAI and Slack: n8n workflow

> Started by another system calling it, and works across Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/generate-carbon-emission-reports-with-openai-and-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Generate carbon emission reports with OpenAI and Slack

Started by another system calling it, and works across Slack. It hands the judgement calls to OpenAI. 21 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-carbon-emission-reports-with-openai-and-slack)

**21 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Model 2 Logic 11 Service 5

The steps in the order they run, from what starts it.

- 1 **Webhook - Consumption Data Uploaded** Webhook *Starts it*
- 2 **Schedule Trigger - Periodic Report** Schedule trigger *Starts it*
- 3 **Manual Trigger - Test Run** Manual trigger *Starts it*
- 4 **HTTP Request - Auto-Fetch Consumption Data (optional)** Http Request *Service*
- 5 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 6 **Set - Config** Set *Logic*
- 7 **AI - Generate Sustainability Report** Chain Llm *Model*
- 8 **HTTP Request - Fetch Grid Emission Factor** Http Request *Service*
- 9 **JS - Parse LLM Output & Build Report Payload** Code *Logic*
- 10 **JS - Calculate Carbon Emissions** Code *Logic*
- 11 **Wait - For Report Approval** Wait *Logic*
- 12 **Switch - Emission Level Router** Switch *Logic*
- 13 **IF - Report Approved** If *Logic*
- 14 **Wait - For Data Review** Wait *Logic*
- 15 **HTTP Request - Push Report to ESG Dashboard** Http Request *Service*
- 16 **Slack - Notify Management** Slack *Service*
- 17 **Set - Discarded/Cancelled** Set *Logic*
- 18 **IF - Review Approved** If *Logic*
- 19 **HTTP Request - Fetch Prior Period Report (optional)** Http Request *Service*
- 20 **JS - Compute YoY Trend** Code *Logic*
- 21 **JS - Estimate Offset Cost (optional)** Code *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 21, with 3 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Slack
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Slack account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-carbon-emission-reports-with-openai-and-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**AI research paper analysis & documentation with Decodo** 20 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/ai-research-paper-analysis-and-documentation-with-decodo)
- [**AI-powered viral trend analysis for TikTok and Instagram** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-viral-trend-analysis-for-tiktok-and-instagram)
- [**Analyze Google Business Reviews & send sentiment reports to Slack** 20 steps · calls a model · Google Business Profile, Slack](https://millionrounds.com/workflow/analyze-google-business-reviews-and-send-sentiment-reports-t)
- [**Audit AI decisions and route risks with OpenAI and Slack** 22 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/audit-ai-decisions-and-route-risks-with-openai-and-slack)
- [**Automate satellite data analysis and regulatory reporting** 22 steps · calls a model · Email, Postgres](https://millionrounds.com/workflow/automate-satellite-data-analysis-and-regulatory-reporting)
- [**Generate tender eligibility summaries and bid checklists** 20 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-tender-eligibility-summaries-and-bid-checklists)
