# Generate carbon emissions 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-emissions-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 emissions reports with OpenAI and Slack

Started by another system calling it, and works across Slack. It hands the judgement calls to OpenAI. 17 steps, 3 branches, 2 loops or waits: a working afternoon to understand properly.

Medium Calls a model: OpenAI

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

**17 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Model 2 Logic 9 Service 3

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 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 5 **Set - Config** Set *Logic*
- 6 **AI - Generate Sustainability Report** Chain Llm *Model*
- 7 **HTTP Request - Fetch Grid Emission Factor** Http Request *Service*
- 8 **JS - Parse LLM Output & Build Report Payload** Code *Logic*
- 9 **JS - Calculate Carbon Emissions** Code *Logic*
- 10 **Wait - For Report Approval** Wait *Logic*
- 11 **Switch - Emission Level Router** Switch *Logic*
- 12 **IF - Report Approved** If *Logic*
- 13 **Wait - For Data Review** Wait *Logic*
- 14 **HTTP Request - Push Report to ESG Dashboard** Http Request *Service*
- 15 **Slack - Notify Management** Slack *Service*
- 16 **Set - Discarded/Cancelled** Set *Logic*
- 17 **IF - Review Approved** If *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 17, with 3 branches, 2 loops or waits
- **Size:** Medium: a working afternoon
- **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?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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 17 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-emissions-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.

- [**Document summarizer - Google Drive to Slack with OpenAI** 17 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/document-summarizer-google-drive-to-slack-with-openai)
- [**Track daily brand mentions from Hacker News to Slack** 17 steps · calls a model · Slack](https://millionrounds.com/workflow/track-daily-brand-mentions-from-hacker-news-to-slack)
- [**Correlate mobile crash reports with GitHub and Claude** 17 steps · Slack](https://millionrounds.com/workflow/correlate-mobile-crash-reports-with-github-and-claude)
- [**Analyse GitHub PRs for vulnerabilities with OpenAI and Slack** 18 steps · calls a model · GitHub, Slack](https://millionrounds.com/workflow/analyse-github-prs-for-vulnerabilities-with-openai-and-slack)
- [**Automate Google Ads search term analysis with Gemini** 16 steps · calls a model · Slack](https://millionrounds.com/workflow/automate-google-ads-search-term-analysis-with-gemini)
- [**Autonomous Expert Intelligence Layer: Strategic Insight Engine** 16 steps · calls a model · Notion, Slack](https://millionrounds.com/workflow/autonomous-expert-intelligence-layer-strategic-insight-engin)
