Skip to main content

Calculate Embodied Carbon (CO2) for Revit/IFC Models using AI Classification

Workflow preview

Workflow preview
100%
Calculate Embodied Carbon (CO2) for Revit/IFC Models using AI Classification preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Estimate embodied carbon (CO2e) for grouped BIM/CAD elements. The workflow accepts an existing XLSX (grouped element data) or, if missing, can trigger a local RvtExporter.exe to generate one. It de...

Best for

  • AI Summarization automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.if, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.spreadsheetfile

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Artem Boiko.

Original n8n.io source

1.1 Workflow description

Title
Calculate Embodied Carbon (CO2) for Revit/IFC Models using AI Classification
Workflow name
Calculate Embodied Carbon (CO2) for Revit/IFC Models using AI Classification

Estimate embodied carbon (CO2e) for grouped BIM/CAD elements. The workflow accepts an existing XLSX (grouped element data) or, if missing, can trigger a local RvtExporter.exe to generate one. It detects category fields, filters out non-building elements, infers aggregation rules with AI, computes CO2 using densities & emission factors, and exports a multi-sheet Excel plus a clean HTML report.

What it does

  • Reads or builds XLSX (from your model via RvtExporter.exe when needed).
  • Finds category/volumetric fields; separates building vs. annotation elements.
  • Uses AI to infer aggregation rules (sum/mean/first) per header.
  • Groups rows by your group_by field and aggregates totals.
  • Prepares enhanced prompts and calls your LLM to classify materials and estimate CO2 (A1-A3 minimum).
  • Computes project totals and generates a multi-sheet XLSX + HTML report with charts and hotspots.

Prerequisites

  • LLM credentials for one provider (e.g., OpenAI, Anthropic, Gemini, Grok/OpenRouter). Enable one chat node and connect credentials.
  • Windows host only if you want to auto-extract from .rvt/.ifc via RvtExporter.exe. If you already have an XLSX, Windows is not required.
  • Optional: mapping/classifier files (XLSX/CSV/PDF) to improve material classification.

How to use

  1. Import this JSON into n8n.
  2. Open the Setup/Parameters node(s) and set:
    • project_file — path to your .rvt/.ifc or to an existing grouped *_rvt.xlsx
    • path_to_converterC:\\DDC_Converter_Revit\\datadrivenlibs\\RvtExporter.exe (optional)
    • group_by — e.g., Type Name / Category / IfcType
    • sheet_name — default Summary (if reading from XLSX)
  3. Enable one LLM node and attach credentials; keep others disabled.
  4. Execute (Manual Trigger). The workflow detects/builds the XLSX, analyzes, classifies, estimates CO2, then writes Excel and opens the HTML report.

Outputs

  • Excel (CO2_Analysis_Report_YYYY-MM-DD.xlsx, ~8 sheets): Executive Summary, All Elements, Material Summary, Category Analysis, Impact Analysis, Top 20 Hotspots, Data Quality, Recommendations.
  • HTML: executive report with key KPIs and charts.
  • Per-group fields include: Material (EU/DE/US), Quantity & Unit, Density, Mass, CO2 Factor, Total CO2 (kg/tonnes), CO2 %, Confidence, Assumptions.

Notes & tips

  • Input quantities (volumes/areas) are already aggregated per group — do not multiply by element count.
  • Use -no-collada upstream if you only need XLSX in extraction.
  • Prefer ASCII-safe paths and ensure write permissions to output folder.

Categories

Data Extraction · Files & Storage · ETL · CAD/BIM · Carbon/ESG

Tags

cad-bim, co2, carbon, embodied-carbon, lca, revit, ifc, xlsx, html-report, llm

Author

DataDrivenConstruction.io [email protected]

Consulting and Training

We work with leading construction, engineering, consulting agencies and technology firms around the world to help them implement open data principles, automate CAD/BIM processing and build robust ETL pipelines.

If you would like to test this solution with your own data, or are interested in adapting the workflow to real project tasks, feel free to contact us.

Docs & Issues:
Full Readme on GitHub

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Find Category Fields1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - Apply Classification to Groups1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Non-Building Elements Output1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Extract Headers and Data1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - AI Analyze All Headers1

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.3

Block 6 - Process AI Response1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Group Data with AI Rules1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - AI Classify Categories1

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.3

Block 9 - Is Building Element1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 10 - Check If All Batches Done

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 11 - Collect All Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Process in Batches1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 1

Block 13 - Clean Empty Values1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - AI Agent Enhanced

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 15 - Accumulate Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Anthropic Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 17 - Calculate Project Totals4

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Enhance Excel Output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Prepare Excel Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Create Excel File

Type / Role
n8n-nodes-base.spreadsheetFile - spreadsheetFile
Config choices
Version 2

Block 21 - Prepare Enhanced Prompts

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - Parse Enhanced Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Read Excel File

Type / Role
n8n-nodes-base.readBinaryFile - readBinaryFile
Config choices
Version 1

Block 24 - Parse Excel

Type / Role
n8n-nodes-base.spreadsheetFile - spreadsheetFile
Config choices
Version 2

Showing the first 24 of 57 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Calculate Embodied Carbon (CO2) for Revit/IFC Models using AI Classification
Complexity advanced
Nodes 57
Categories AI Summarization, Multimodal AI
Author Artem Boiko
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7653/7653.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Calculate Embodied Carbon (CO2) for Revit/IFC Models using AI Classification do?

Estimate embodied carbon (CO2e) for grouped BIM/CAD elements. The workflow accepts an existing XLSX (grouped element data) or, if missing, can trigger a local RvtExporter.exe to generate one. It de...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Summarization, Multimodal AI use case.