OpenConstructionEstimate-DDC-CWICR

Open multilingual construction cost database for AI Agents - 55K+ work items, 27K+ resources, 30 regions. Semantic search via Qdrant vector DB

148
Stars
36
Forks
HTML
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/datadrivenconstruction/OpenConstructionEstimate-DDC-CWICR

快速入门

使用 OpenConstructionEstimate-DDC-CWICR 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

DDC CWICR - Construction Work Items, Components & Resources
+ Pipelines n8n for calculating estimates based on descriptions, photos, and CAD (BIM)

🇬🇧 English🇨🇳 中文🇪🇸 Español🇧🇷 Português🇷🇺 Русский🇯🇵 日本語🇩🇪 Deutsch🇫🇷 Français

OpenConstructionEstimate

Work Items Resources Languages Countries
License Version Embeddings Qdrant n8n

OpenConstructionEstimate

⚡ n8n Workflows

Choose your input → Get cost estimate



📝 Text

Quick scope-to-estimate
from a short description

Input: Telegram / chat message
Output: Matched work items + estimate


📖 Documentation

Download


📷 Photo / PDF

Site photos, scanned BOQ,
photo-PDF from the field

Input: Image or PDF pages
Output: Extracted scope → estimate


📖 Photo Docs · 📖 Universal Bot

Photo   Bot


🧊 CAD / BIM

Revit / IFC / DWG-based
quantification & estimating

Input: Model export
Output: 4D/5D estimate + breakdown


📖 Documentation

Download


Live Demo


🏗️ OpenConstructionERP - Use This Database End-to-End

Open-source ERP that ships this database pre-loaded. Professional BoQ editor, AI-powered photo / PDF / CAD takeoff, 4D/5D planning, dashboards - all running on the 30-track CWICR cost data below.

YouTube demo   Live app   GitHub repo

OpenConstructionERP hero

Get up and running in 30 seconds

pip install --upgrade openconstructionerp
openestimate                      # opens the desktop app at http://localhost:8080

The app launches with the 30 CWICR country tracks pre-installed - start a new project, pick a region, and the BoQ editor instantly suggests rates from ddc_de_berlin, ddc_au_sydney, ddc_hr_zagreb, etc. with proper localised prices and translated work descriptions.

Feature previews


AI Photo → Estimate
Snap a site photo, GPT-4 Vision builds a BoQ

BoQ Editor
Excel-like editor backed by 55 K rates × 30 tracks

PDF Takeoff
Auto-extract quantities from architectural PDFs

4D Schedule × BIM
Tasks linked to IFC objects, costs flow to dashboards

Docs   Quick start   Hero video



DataDrivenConstruction clients and users



Repository structure

The repository is organised by source country. Each top-level folder is one national cost base, named Region-Country-System, so it is clear what is where.

FolderBaseSource system
CIS-Russia-GESN-FER-TER/CIS base, 30 language and market editions, 55,719 work itemsGESN / FER / TER
Asia-China-Dinge/ChinaDinge quotas, GB 50500
Asia-Indonesia-AHSP/IndonesiaAHSP
Asia-Vietnam-Dinh-Muc/VietnamDinh Muc
Europe-Greece-GGDE/GreeceGGDE analytical tariffs
Europe-Italy-Prezzario-Toscana/ItalyPrezzario Toscana
Europe-Spain-BCCA/SpainBCCA
Europe-Turkey-Birim-Fiyat/TurkeyBirim Fiyat
SouthAmerica-Brazil-SINAPI/BrazilSINAPI

Each national base folder contains the full base as parquet and xlsx (canonical 95-column schema, native language plus English), the compact resource catalog as csv and xlsx, and a markets/ folder with the base repriced (World Bank PPP) and translated for 48 target markets as compact catalogs. A README.md and a PROVENANCE.md in each folder give the source, its legal basis and the attribution to preserve. The heavy resource-level parquet and the vector snapshots for the market editions follow in the next release.

Licensing: the data is CC BY-NC 4.0 (free for non-commercial use with attribution) plus a separate DDC commercial licence. Code is Apache-2.0. See the License section.

📑 Table of Contents

🤖 AI Integration

📊 Database & Data

⚡ n8n Workflows

🏗️ CAD/BIM Pipeline

🔍 Vector Database

🌐 API

🚀 Getting Started

👥 Community


🚀 Perfect Fuel for Your AI Products

Just clone the repo and describe what you want - AI does the rest

DDC CWICR is not just a database - it's ready-to-use fuel for AI-powered applications. Whether you're building cost estimation bots, automating construction workflows, or creating intelligent assistants - this data works out of the box with modern AI tools.

Why This Database is Ideal for AI

FeatureBenefit
Pre-computed embeddingsNo need to generate vectors - semantic search works instantly
Structured 85-field schemaAI can reason about data relationships and provide accurate answers
11 languages includedBuild multilingual applications without translation overhead
55,000+ work itemsComprehensive coverage for any construction estimation task
Resource-based methodologyTransparent data that AI can explain and break down

📋 Ready-Made Work Descriptions for Any System

Ready-made job description generator

DDC CWICR provides complete, structured work descriptions that can be displayed in any system or format. Each work item contains all the information needed by different stakeholders:

StakeholderWhat They Get
🏢 Client / InvestorFull cost transparency, resource breakdown, price justification for investment decisions
📊 Cost EstimatorDetailed rates, labor hours, material quantities, equipment costs - ready for BOQ generation
👷 Site Manager / ForemanWork composition, resource requirements, labor norms for daily planning and execution
🔧 Contractor / ExecutorComplete specifications, unit rates, productivity benchmarks for accurate bidding and scheduling

Export to Excel, PDF, HTML, ERP systems, BIM platforms - the structured 85-field schema ensures data integrity across all outputs.

🛠️ Works Perfectly With

Claude Code
Claude Code
AI coding assistant CLI
Google Antigravity
Google Antigravity
Google Antigravity
n8n
n8n
Workflow automation
Dify
Dify
LLM app development
Sim AI
Sim AI & Others
AI platforms

If you want to see new updates and database versions and if you find our tools useful please give our repositories a star to see more similar applications for the construction industry. Star DDC workflow on GitHub and be instantly notified of new releases.





🎯 DDC Skills - 196 Ready-to-Use AI Automations

DDC Skills for AI Agents in Construction - 196 automation skills with direct integration into this CWICR database. Clone, open with AI coding assistant, describe what you need.

DDC Skills


💻 Claude Code & Google Antigravity - AI Coding Assistants

The fastest way to work with DDC CWICR. Just open the repository in Claude Code or Google Antigravity and ask questions in natural language.

Getting Started:

# Clone the repository
git clone https://github.com/datadrivenconstruction/OpenConstructionEstimate-DDC-CWICR.git

# Open with Claude Code
cd OpenConstructionEstimate-DDC-CWICR
claude

Example Prompts:

TaskPrompt
Explore data"Show me the structure of this construction database and explain what data is available"
Find work items"Find all work items related to concrete foundations and show their costs"
Build queries"Write a Python script to search for plumbing work items with labor hours > 100"
Create reports"Generate a cost breakdown report for residential renovation works"
Analyze costs"Compare material costs between different wall construction methods"
Build integrations"Create a script that connects to the Qdrant database and performs semantic search"

Pro Tips:

  • Point Claude to specific files: "Analyze the Parquet file and summarize the cost distribution"
  • Ask for explanations: "Explain how the resource-based costing methodology works in this database"
  • Request modifications: "Modify the n8n workflow to add email notifications"

⚡ n8n - Visual Workflow Automation

Build powerful automation pipelines without coding. Connect DDC CWICR to 400+ apps and services.

Use Cases:

WorkflowDescription
Telegram BotUsers send text/photo → AI extracts work items → Returns cost estimate
Email AutomationReceive BOQ via email → Process with AI → Send formatted estimate
CRM IntegrationNew project in CRM → Auto-generate preliminary estimate → Update deal value
BIM PipelineExport from Revit → Extract quantities → Match with DDC rates → Generate 5D report
Slack BotTeam asks questions → AI searches database → Returns relevant work items

Quick Start:

  1. Download workflow JSON from this repo
  2. Import into n8n: Workflows → Import → From File
  3. Configure credentials (OpenAI, Qdrant, Telegram)
  4. Activate and test

See n8n Workflows section for detailed setup.


📋 Universal Use Cases

No matter which AI tool you choose, DDC CWICR enables:

Use CaseDescription
Instant Cost EstimationGet construction costs from text descriptions or photos
BOQ GenerationAuto-generate bill of quantities from project descriptions
Price BenchmarkingCompare costs across regions and languages
Resource PlanningCalculate labor hours, materials, and equipment needs
Investment AnalysisDeep-dive cost audits with full resource transparency
Multilingual SupportServe users in 11 languages with localized pricing
BIM IntegrationConnect to Revit/IFC for automated 4D/5D estimation
Training AI ModelsUse structured data for fine-tuning construction AI

About

DDC CWICR (Construction Work Items, Components & Resources) is an open database for construction cost estimation, covering the full spectrum of construction activities - from earthworks and concrete placement to specialized installation work.

The database draws on sources describing modern construction practices across Eurasia and the Asia-Pacific region, where a unified technical standardization ecosystem serves as a common engineering language for more than ten dynamically developing economies. DDC CWICR represents an effort to harmonize open standards by establishing a single regulatory framework for capital project management in multiple languages.




The structured data can be accessed through tabular formats (XLSX, CSV, Parquet) or queried conversationally via LLM, enabling specialists to integrate construction work descriptions (QDRANT vector database) into automated pipelines and workflows using plain language or concise queries.

Available Formats

FormatExtensionSizeBest ForFeatures
Excel.xlsx~150–400 MBManual analysis, filtering, pivotsHuman-readable, full formatting
Parquet.parquet~55 MBETL pipelines, ML training, Big DataColumnar, excellent compression
CSV.csv~1.3 GBDatabase import, legacy systemsUniversal compatibility
Qdrant.snapshot~1 GBSemantic search, RAG, AI assistantsPre-computed OpenAI embeddings

A live demo is available at openconstructionestimate.com, where you can explore the data and see the vector database in action for semantic search.

OpenConstructionEstimate


Data Schema

The database contains 85 fields organized into logical groups. Each record represents either a work item (rate) or a resource with full cost breakdown.

erDiagram
    RATE ||--o{ RESOURCE : contains
    RATE ||--o{ LABOR : requires
    RATE ||--o{ MACHINERY : uses
    RATE ||--o{ PRICE_VARIANT : has

    RATE {
        string rate_code PK "MEKA_KASA_KAKATO_KAME"
        string rate_original_name "Einbau von Trennwänden..."
        string rate_unit "100 m2"
        string category_type "BAUARBEITEN"
        string collection_name "Holzkonstruktionen"
        string department_name "TRENNWÄNDE..."
        string section_name "Einbau von Trennwänden..."
        text work_composition_text
    }

    RESOURCE {
        string resource_code PK "KAME-NE-KAME-KARI"
        string resource_name "Gipskartonplatten"
        string resource_unit "m2"
        float resource_quantity "632.0"
        float resource_price_per_unit_eur "5.02"
        float resource_cost_eur "3170.73"
        boolean is_material
        boolean is_abstract
    }

    LABOR {
        string resource_code FK
        float labor_hours_workers "172"
        float labor_hours_operators "1.67"
        int count_workers_per_unit "172"
        int count_operators_per_unit "2"
        float cost_of_working_hours "3088.11"
    }

    MACHINERY {
        string machine_class2_name "Krane"
        string machine_class3_name "Krane auf Fahrgestellen"
        float electricity_consumption_kwh "0.23"
        float price_operator_wages "13.56"
        float total_value_machinery "64.18"
    }

    PRICE_VARIANT {
        float price_est_median "5.02"
        float price_est_min "3.03"
        float price_est_max "7.99"
        int position_count "24"
        string variable_parts "glasfaserverstärkt..."
    }

Field Groups

The 85 database fields are organized into logical groups that reflect the resource-based cost estimation methodology. Each group serves a specific function in the cost breakdown structure: from hierarchical classification and work item identification to detailed resource consumption, labor requirements, machinery costs, and aggregated totals. This modular structure allows users to query only the relevant fields for their task - whether generating a bill of materials, analyzing labor productivity, or building a complete cost estimate.




Classification - category_type, collection_code, collection_name, department_code, department_name, department_type, section_name, section_type, subsection_code, subsection_name

Work Item (Rate) - rate_code, rate_original_name, rate_final_name, rate_unit, row_type, is_scope, is_abstract, is_machine, is_labor, is_material, work_composition_text

Resources - resource_code, resource_name, resource_unit, resource_quantity, parameter_resource_quantity, resource_price_per_unit_eur_current, resource_cost_eur

Labor - count_workers_per_unit, count_engineers_per_unit, count_operators_per_unit, count_total_people_per_unit, labor_hours_construction_workers, labor_hours_operators, labor_hours_engineers, total_labor_hours_workers_operators, total_labor_hours_all_personnel, cost_of_working_hours, count_people_per_day

Machinery - machine_class2_name, machine_class3_name, personnel_operator_code, personnel_operator_grade, price_operator_wages, price_relocation_included, price_cost_without_wages, electricity_consumption_kwh_per_machine_hour, electricity_cost_per_unit, electricity_cost_total_sum, cost_operator_sum, total_value_machinery_equipment

Price Variants - price_code_prefix, price_abstract_resource_common_start, price_abstract_resource_variable_parts, price_abstract_resource_position_count, price_abstract_resource_est_price_min, price_abstract_resource_est_price_max, price_abstract_resource_est_price_mean, price_abstract_resource_est_price_median, price_abstract_resource_unit, abstract_resource_tech_group

Aggregates - total_cost_per_position, total_material_cost_per_position, total_resource_cost_per_position, total_value_abstract_resources, materials_resource_cost_eur

Mass & Services - mass_name, mass_value, mass_unit, service_category, service_type, parameter_service_code, parameter_service_unit, parameter_service_name, parameter_service_quantity, service_cost_sum

Cost Calculation Formula

ComponentTechnology Norm×Regional Price=Cost
👷 Labor172 hrs/100m²×€17.95/hr=€3,088.11
🧱 Materials632 m²/100m²×€5.02/m²=€3,170.73
🚜 Equipment1.67 hrs/100m²×€38.42/hr=€64.18
Total=€7,725.91 per 100m²

Methodology

The key value of Resource-Based Costing is the separation of unchanging production technology from the volatile financial component. It is based on the physical "first principles" of construction:

  • Labor hours required for specific work
  • Material quantities per unit of work
  • Equipment time needed

Why it matters:

  • Transparency - Pricing without hidden markups, full resource breakdown
  • Auditability - Deep-dive capability for investment analysis and verification
  • Portability - Region-independent norms applicable across markets
  • Proven - Industry standard methodology established over 100+ years
flowchart TB
    subgraph Source["📦 Data Source"]
        CWICR[(DDC CWICR<br/>────────────<br/>55,719 Work Items<br/>27,672 Resources<br/>85 Fields per Record)]
    end

    subgraph Processing["⚙️ Processing Pipeline"]
        direction LR
        ETL[["🔄 ETL<br/>Extraction &<br/>Transformation"]]
        TRANS[["🌐 Translation<br/>11 Languages"]]
        EMBED[["🧠 Vectorization<br/>OpenAI 3072d"]]
        ETL --> TRANS --> EMBED
    end

    subgraph Outputs["📤 Output Formats"]
        XLSX[("📊 Excel<br/>.xlsx")]
        PARQUET[("⚡ Parquet<br/>.parquet")]
        CSV[("📄 CSV<br/>.csv")]
        QDRANT[("🔍 Qdrant<br/>.snapshot")]
    end

    subgraph Apps["🎯 Applications"]
        SEARCH["🔎 Semantic<br/>Search"]
        BIM["🏗️ BIM 5D<br/>Integration"]
        RAG["🤖 RAG<br/>Systems"]
        BI["📈 BI<br/>Analytics"]
    end

    Source --> Processing
    Processing --> XLSX & PARQUET & CSV & QDRANT
    XLSX & PARQUET & CSV --> BI & BIM
    QDRANT --> SEARCH & RAG & BIM

    style Source fill:#dbeafe,stroke:#2563eb,stroke-width:2px
    style Processing fill:#fef3c7,stroke:#d97706,stroke-width:2px
    style Outputs fill:#d1fae5,stroke:#059669,stroke-width:2px
    style Apps fill:#fce7f3,stroke:#db2777,stroke-width:2px

Historical Context

The construction work descriptions in this database are grounded in a resource-based standardization methodology with roots stretching from early 20th-century production norms to today's digital reference systems. Developed and refined continuously since the 1920s, this approach has seen especially robust evolution across the Eurasian region.

Throughout a hundred years of development, the system has transitioned from manual computations to machine-readable formats - yet its foundational principle remains intact: the precise measurement of physical resources required per unit of construction output. Modern implementations bridge historical normative data with real-time market pricing.

Regional adaptations of this methodology operate under various national designations: ENIR, GESN, FER, NRR, ESN, AzDTN, ShNQK, MKS ChT, SNT, BNbD, Dinh Muc, Ding'e.

OpenConstructionEstimate


Integration

Use Cases

  • Entry Level - Cost Benchmarking, Price Indexation, Tender Estimation

  • Intermediate - Localization, ETL/BI Pipelines, CO₂ Calculation

  • Advanced - AI/ML Training, CAD (BIM) 5D, Deep-Dive Investment Audit


n8n Workflows - Detailed Description

Four production-ready workflows for automated construction cost estimation. Each workflow connects to the DDC CWICR vector database via Qdrant and uses AI models for intelligent parsing and matching.

#WorkflowInputBest ForDownload
1Text Estimator Bot💬 TextQuick estimates from textJSON
2Photo Estimator📷 PhotoSite visits, visual inspectionsJSON
3Universal Bot💬📷📄 AllFull-featured production useJSON
4CAD/BIM Pipeline🏗️ RevitBIM-based 4D/5D estimationJSON

1️⃣ Text Estimator Bot

File: n8n_1_Telegram_Bot_Cost_Estimates_and_Rate_Finder_TEXT_DDC_CWICR.json

Telegram bot for text-based cost estimation. Describe construction works in natural language - the bot parses input, searches the vector database, and returns detailed cost breakdowns.




🤖 Try It Now - Live Demo Bots

Test the estimation workflows instantly in Telegram

@TextOpenConstructionEstimate_bot

Create complete cost estimates
from text descriptions

Text Bot
flowchart LR
    subgraph Input["💬 INPUT"]
        A[Telegram Message]
    end
    
    subgraph AI["🤖 AI PROCESSING"]
        B[Parse Text]
        C[Extract Work Items]
    end
    
    subgraph Search["🔍 VECTOR SEARCH"]
        D[Generate Embeddings]
        E[Qdrant Search]
        F[AI Rerank]
    end
    
    subgraph Output["📊 OUTPUT"]
        G[Calculate Costs]
        H[HTML Report]
        I[Excel Export]
    end
    
    A --> B --> C --> D --> E --> F --> G --> H
    G --> I
    
    style Input fill:#e0f2fe,stroke:#0284c7
    style AI fill:#fef3c7,stroke:#d97706
    style Search fill:#dcfce7,stroke:#16a34a
    style Output fill:#f3e8ff,stroke:#9333ea

How it works:

StepActionTechnology
1User sends text descriptionTelegram Bot API
2AI parses and extracts work itemsOpenAI / Claude / Gemini
3Generate embeddings for each itemOpenAI text-embedding-3-large
4Search matching rates in databaseQdrant vector search
5AI reranks results for accuracyLLM scoring
6Calculate costs and generate reportHTML / Excel / PDF

Features:

FeatureDescription
💬 Natural language inputAccepts any text format - lists, sentences, structured descriptions
🤖 Multi-LLM supportWorks with OpenAI, Claude, or Gemini (switchable)
🔍 Semantic searchFinds best matches even with different wording
🌍 11 languagesDE, EN, RU, ES, FR, PT, ZH, AR, HI, US, UK
📊 Multiple exportsHTML report, Excel spreadsheet, PDF document
✏️ Interactive editingModify quantities before final calculation

Required credentials:

  • Telegram Bot Token (from @BotFather)
  • OpenAI API Key (for embeddings + optional LLM)
  • Qdrant URL + API Key

2️⃣ Photo Cost Estimator

File: n8n_2_Photo_Cost_Estimate_DDC_CWICR.json

Web form interface for photo-based estimation. Upload a construction photo - AI Vision identifies elements, estimates dimensions, and calculates costs automatically.




flowchart TB
    subgraph Upload["📷 PHOTO UPLOAD"]
        A[Web Form]
        B[Select Region]
        C[Choose Work Type]
    end
    
    subgraph Vision["👁️ AI VISION"]
        D[GPT-4 Vision Analysis]
        E[Identify Elements]
        F[Estimate Dimensions]
        G[Detect Room Type]
    end
    
    subgraph Decompose["🔧 DECOMPOSITION"]
        H[Elements → Work Items]
        I[Calculate Quantities]
    end
    
    subgraph Price["💰 PRICING"]
        J[Vector Search]
        K[Match DDC Rates]
        L[Apply Regional Prices]
    end
    
    subgraph Report["📄 REPORT"]
        M[Generate HTML]
        N[Cost Breakdown]
    end
    
    A --> B --> C --> D
    D --> E --> F --> G
    G --> H --> I
    I --> J --> K --> L
    L --> M --> N
    
    style Upload fill:#dbeafe,stroke:#2563eb
    style Vision fill:#fef3c7,stroke:#d97706
    style Decompose fill:#dcfce7,stroke:#16a34a
    style Price fill:#fee2e2,stroke:#dc2626
    style Report fill:#f3e8ff,stroke:#9333ea

How it works:

StepActionTechnology
1User uploads photo via web formn8n Form Trigger
2AI Vision analyzes the imageGPT-4 Vision
3Identify room type, elements, materialsStructured JSON extraction
4Estimate dimensions from reference objectsAI reasoning (doors, tiles, etc.)
5Decompose elements into work itemsLLM processing
6Price each work via vector searchQdrant + OpenAI embeddings
7Generate professional HTML reportStyled output

Features:

FeatureDescription
📷 Photo analysisGPT-4 Vision identifies construction elements
📐 Auto-dimensioningEstimates sizes using reference objects (doors, tiles)
🏠 Room detectionBathroom, kitchen, bedroom, exterior, etc.
🔨 Work type supportNew construction / Renovation / Repair
🌍 9 regional databasesPrices localized to Berlin, Toronto, Paris, etc.
📄 Professional reportsClean HTML output ready for clients

Required credentials:

  • OpenAI API Key (GPT-4 Vision + embeddings)
  • Qdrant URL + API Key

3️⃣ Universal Estimator Bot (Text + Photo + PDF)

File: n8n_3_Telegram_Bot_Cost_Estimates_and_Rate_Finder_TEXT_PHOTO_PDF_DDC_CWICR.json

Full-featured Telegram bot supporting all input types: text descriptions, construction photos, and PDF floor plans. The most comprehensive workflow for production use.




flowchart TB
    subgraph Input["📥 MULTI-INPUT"]
        A[💬 Text Message]
        B[📷 Photo]
        C[📄 PDF Document]
    end
    
    subgraph Router["🔀 SMART ROUTER"]
        D{Detect Type}
    end
    
    subgraph TextPath["💬 TEXT PATH"]
        E[AI Parse Text]
        F[Extract Works]
    end
    
    subgraph PhotoPath["📷 PHOTO PATH"]
        G[Vision AI]
        H[Identify Elements]
        I[Decompose]
    end
    
    subgraph PDFPath["📄 PDF PATH"]
        J[Extract Pages]
        K[Vision Analysis]
        L[Parse Content]
    end
    
    subgraph Common["🔍 COMMON PIPELINE"]
        M[Generate Embeddings]
        N[Qdrant Search]
        O[AI Rerank]
        P[Calculate Costs]
    end
    
    subgraph Export["📤 EXPORT"]
        Q[HTML Report]
        R[Excel CSV]
        S[PDF Document]
    end
    
    A --> D
    B --> D
    C --> D
    D -->|Text| E --> F --> M
    D -->|Photo| G --> H --> I --> M
    D -->|PDF| J --> K --> L --> M
    M --> N --> O --> P
    P --> Q
    P --> R
    P --> S
    
    style Input fill:#e0f2fe,stroke:#0284c7
    style Router fill:#fef3c7,stroke:#d97706
    style TextPath fill:#dcfce7,stroke:#16a34a
    style PhotoPath fill:#fce7f3,stroke:#db2777
    style PDFPath fill:#f3e8ff,stroke:#9333ea
    style Common fill:#fee2e2,stroke:#dc2626
    style Export fill:#d1fae5,stroke:#059669

How it works:

StepActionTechnology
1User sends text, photo, or PDFTelegram Bot API
2Router detects input typeContent-type analysis
3aText: AI parses work itemsOpenAI / Gemini
3bPhoto: Vision AI extracts elementsGPT-4 Vision / Gemini 2.0
3cPDF: Extract and analyze pagesPDF processing + Vision
4Semantic search in DDC CWICRQdrant vector database
5AI reranking for best matchesLLM scoring
6Interactive editing via bot menuTelegram inline keyboards
7Export resultsHTML / Excel / PDF

17 Bot Actions:

ActionDescription
/startLanguage selection menu
Photo uploadTrigger AI vision analysis
Text messageParse and extract work items
PDF uploadProcess floor plans
Edit quantitiesModify before calculation
Add workManual work item entry
CalculateRun full cost estimation
View detailsShow resources for each item
Export ExcelDownload CSV spreadsheet
Export PDFGenerate PDF report
HelpShow usage instructions
RefineRe-analyze with corrections

Features:

FeatureDescription
📷 Dual Vision AIGemini 2.0 Flash or GPT-4 Vision (configurable)
📄 PDF processingFloor plans, scanned BOQ, documents
💬 Smart text parsingHandles lists, tables, free-form text
🔍 AI rerankingImproves match accuracy
✏️ Full editingAdd, remove, modify work items
📊 Multi-format exportHTML, Excel, PDF
🌍 11 languagesComplete localization

Required credentials:

  • Telegram Bot Token
  • OpenAI API Key (embeddings)
  • Gemini API Key (Vision) or OpenAI GPT-4 Vision
  • Qdrant URL + API Key

4️⃣ CAD (BIM) Cost Estimation Pipeline

File: n8n_4_CAD_(BIM)_Cost_Estimation_Pipeline_4D_5D_with_DDC_CWICR.json

Automated cost estimation from Revit/IFC/DWG models. Extracts BIM data, classifies elements, decomposes into work items, and generates 4D/5D estimates with full resource breakdown.

DataDrivenConstruction

flowchart TB
    subgraph INPUT["📁 INPUT<br/><i>CAD • photos • text description</i>"]
        CAD["📐 Project Input<br/>(text • photos • RVT / IFC / DWG)"]
    end

    subgraph EXTRACT["⚙️ EXTRACTION"]
        CONV["RvtExporter.exe / CAD Export  / ETL"]
        XLSX["📊 .XLSX<br/>(Raw Elements)"]
    end

    subgraph PREP["🔧 DATA PREPARATION"]
        PREP_AI["🤖 AI: Clean & Classify<br/><i>headers • types • categories</i>"]
    end

    subgraph STAGE_PLAN["📋 STAGES 1–3: Planning"]
        PLAN["🤖 Detect Project & Phases<br/><i>new / renovation / demolition</i><br/><i>small / medium / large</i><br/><i>elements → construction phases</i>"]
    end

    subgraph STAGE4["🔨 STAGE 4: Decomposition"]
        S4["🤖 Decompose Types to Works<br/><i>'Brick Wall 240mm' → masonry, mortar, plaster</i>"]
    end

    subgraph STAGE5["💰 STAGE 5: Pricing"]
        S5["🤖 Price via Vector DB<br/><i>OpenAI embeddings + Qdrant</i><br/><i>rate_code, unit_cost, resources</i>"]
    end

    subgraph STAGE75["✅ STAGE 7.5: Validation"]
        S75["🤖 CTO Review<br/><i>completeness • duplicates • missing works</i>"]
    end

    subgraph OUTPUT["📤 OUTPUT"]
        HTML["📄 HTML Report"]
        XLS["📊 XLS Report"]
    end

    CAD --> CONV --> XLSX
    XLSX --> PREP_AI --> PLAN --> S4 --> S5 --> S75
    S75 --> HTML & XLS

    style INPUT fill:#f4f4f5,stroke:#d4d4d8,color:#18181b
    style EXTRACT fill:#e0f2fe,stroke:#bae6fd,color:#0f172a
    style PREP fill:#ede9fe,stroke:#ddd6fe,color:#1e1b4b
    style STAGE_PLAN fill:#ecfdf5,stroke:#bbf7d0,color:#064e3b
    style STAGE4 fill:#fef9c3,stroke:#fef3c7,color:#78350f
    style STAGE5 fill:#fee2e2,stroke:#fecaca,color:#7f1d1d
    style STAGE75 fill:#e0f2f1,stroke:#bae5e1,color:#134e4a
    style OUTPUT fill:#eef2ff,stroke:#e0e7ff,color:#111827

n8n provides 400+ native integrations with platforms like Google Sheets, Notion, Slack, Airtable, databases (PostgreSQL, MongoDB), cloud storage, and more. Every node in this workflow is modular - you can:

  • 🔄 Swap LLM providers (OpenAI ↔ Claude ↔ Gemini ↔ Grok)
  • 📊 Connect to your ERP or project management system
  • 📁 Export results to any destination (cloud storage, email, dashboards)
  • 🔧 Modify any stage to match your estimation methodology

The workflow is yours to adapt. No restrictions. No licensing fees. Full control.


📋 Prerequisites

ComponentRequirementDescription
n8nv1.0+ (v2.0+ requires setup)Workflow automation platform for orchestrating the estimation pipeline
QdrantCloud or self-hosted instanceVector database for semantic search across construction work items
OpenAI APIFor embeddings (text-embedding-3-large)Generates vector embeddings for BIM elements and cost database matching
LLM APIOpenAI / Claude / Gemini / xAI GrokAI models for work item classification and estimate generation
DDC ConverterRvtExporter.exeExtracts BIM data from Revit models to Excel/JSON for processing

Workflows Quick Start

Step 1: Import Workflow

n8n → New workflow → Import from File → Select JSON

Step 2: Configure Credentials

In the 🔑 TOKEN node, set your API keys:

{
  "bot_token": "YOUR_TELEGRAM_BOT_TOKEN",
  "OPENAI_API_KEY": "YOUR_OPENAI_KEY",
  "GEMINI_API_KEY": "YOUR_GEMINI_KEY",
  "QDRANT_URL": "http://localhost:6333",
  "QDRANT_API_KEY": ""
}

Step 3: Load DDC CWICR to Qdrant

Download the snapshot from the corresponding language folder in this repository and import:

curl -X POST "http://localhost:6333/collections/ddc_en_toronto/snapshots/upload" \
  -H "Content-Type: multipart/form-data" \
  -F "snapshot=@EN___DDC_CWICR/EN_TORONTO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot"

Step 4: Activate & Test

  • Enable the workflow in n8n
  • For Telegram bots: send /start to your bot
  • For web forms: open the form URL provided by n8n

⚠️ n8n 2.0+ Setup Required

Starting from n8n version 2.0, the Execute Command node is disabled by default for security reasons.

Without the configuration below, workflows using Execute Command (especially CAD/BIM Pipeline) will not work - nodes will show with a question mark or won't be recognized.

Quick Fix

Windows (CMD) - run each time:

set NODES_EXCLUDE=[] && npx n8n

Permanent solution - create once:

Create file C:\Users\YOUR_USER\.n8n\.env with:

NODES_EXCLUDE=[]

Then just run npx n8n as usual.

Docker:

environment:
  - NODES_EXCLUDE=[]

Verify Setup

  1. Start n8n
  2. Click + → search for "Execute Command"
  3. If the node appears → ✅ you're all set!

📚 More details: n8n 2.0 Breaking Changes


🌍 Supported Languages & Price Levels

CodeLanguagePrice LevelCurrencyQdrant Collection
ARArabicDubaiAEDddc_ar_dubai
DEGermanBerlinEURddc_de_berlin
ENEnglishTorontoCADddc_en_toronto
ESSpanishBarcelonaEURddc_sp_barcelona
FRFrenchParisEURddc_fr_paris
HIHindiMumbaiINRddc_hi_mumbai
PTPortugueseSão PauloBRLddc_pt_saopaulo
RURussianSt. PetersburgRUBddc_ru_stpetersburg
ZHChineseShanghaiCNYddc_zh_shanghai
USEnglishUSAUSDddc_usa_usd
UKEnglishUKGBPddc_uk_gbp

📊 Pipeline Stages

The CAD/BIM workflow processes data through 10 stages:

StageNameDescription
0Collect BIM DataExtract elements from Revit via DDC Converter
1Project DetectionAI identifies project type (Residential, Commercial, etc.)
2Phase GenerationAI creates construction phases
3Element AssignmentAI maps BIM types to phases
4Work DecompositionAI breaks types into work items ("Brick Wall" → masonry, mortar)
5Vector SearchFind matching rates in DDC CWICR via Qdrant
6Unit MappingConvert BIM units to rate units
7Cost CalculationQty × Unit Price for each work item
7.5ValidationCTO review for completeness and duplicates
8AggregationSum by phases and categories
9Report GenerationCreate HTML and Excel outputs

⚙️ LLM Model Selection

The workflow supports multiple AI providers. Enable your preferred model in the LLM Models section:

ModelNode NameStatus
OpenAI GPT-4oOpenAI LLM✅ Default
Claude Opus 4Anthropic Chat Model2Disabled
Gemini 2.5 ProGoogle Gemini Chat ModelDisabled
xAI GrokxAI Grok Chat Model1Disabled
DeepSeekDeepSeek Chat ModelDisabled

To switch models: Enable the desired model node and Disable others.


📁 Output Files

Reports are saved to the project folder:

project_YYYY-MM-DD.html   ← Interactive report (opens in browser)
project_YYYY-MM-DD.xls    ← Excel-compatible spreadsheet





🔗 Qdrant Collections

The workflow automatically selects the correct collection based on language_code:

{LANG}_{CITY}_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR

Example: DE_BERLIN_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR


⚠️ Troubleshooting

IssueSolution
"Execute Command missing" (n8n 2.0+)Set NODES_EXCLUDE=[] environment variable. See n8n 2.0+ Setup
"No Excel file found"Check path_to_converter and project_file paths
"Qdrant connection failed"Verify Qdrant URL and API key in credentials
"Rate limit exceeded"Reduce batch size or add delays between API calls
"No pricing found"Check if the correct language collection exists in Qdrant
"Telegram webhook error"Ensure workflow is active and webhook URL is accessible
"Vision API failed"Verify Gemini or OpenAI Vision API key is valid

Vector Database

Ready-to-use Qdrant collections with OpenAI text-embedding-3-large embeddings for semantic search across construction work items.

Vector databases allow you to "talk" to your data in natural language – using simple sentences or short phrases instead of code or complex filters. This dramatically speeds up finding the right work item or cost line, even in very large datasets.

These Qdrant collections can be connected to application via modern automation and integration workflows (for example, low-code/no-code Workflow and Pipeline tools). You can build assistants that search, filter and explain construction work items, or integrate semantic search directly into your existing estimation and project-control tools.


Qdrant Vector Database Snapshots

All Qdrant snapshots are included directly in the corresponding language folders of this repository (stored via Git LFS).

LanguageRegionQdrant CollectionSnapshot File (in language folder)Points
🇸🇦 ArabicDubaiddc_ar_dubaiAR___DDC_CWICR/AR_DUBAI_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,121
🇩🇪 GermanBerlinddc_de_berlinDE___DDC_CWICR/DE_BERLIN_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇬🇧 EnglishTorontoddc_en_torontoEN___DDC_CWICR/EN_TORONTO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇪🇸 SpanishBarcelonaddc_sp_barcelonaES___DDC_CWICR/SP_BARCELONA_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇫🇷 FrenchParisddc_fr_parisFR___DDC_CWICR/FR_PARIS_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇮🇳 HindiMumbaiddc_hi_mumbaiHI___DDC_CWICR/HI_MUMBAI_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,687
🇧🇷 PortugueseSão Pauloddc_pt_saopauloPT___DDC_CWICR/PT_SAOPAULO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇷🇺 RussianSt. Petersburgddc_ru_stpetersburgRU___DDC_CWICR/RU_STPETERSBURG_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇬🇧 UKGBPddc_uk_gbpUK___DDC_CWICR/UK_GBP_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇺🇸 USAUSDddc_usa_usdUS___DDC_CWICR/USA_USD_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719
🇨🇳 ChineseShanghaiddc_zh_shanghaiZH___DDC_CWICR/ZH_SHANGHAI_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot55,719

Derived tracks (19) - built by the DDC country-track build pipeline

Norms (labour hours, machine hours, resource quantities) are bytewise-identical to the source track; only prices and translatable text differ. rate_code and resource_code are stable across all tracks.

LanguageRegionQdrant CollectionSnapshot FileSource
🇦🇺 EnglishSydneyddc_au_sydneyAU___DDC_CWICR/AU_SYDNEY_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇧🇬 BulgarianSofiaddc_bg_sofiaBG___DDC_CWICR/BG_SOFIA_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇨🇿 CzechPragueddc_cs_pragueCS___DDC_CWICR/CS_PRAGUE_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇭🇷 CroatianZagrebddc_hr_zagrebHR___DDC_CWICR/HR_ZAGREB_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇮🇩 IndonesianJakartaddc_id_jakartaID___DDC_CWICR/ID_JAKARTA_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇮🇹 ItalianRomeddc_it_romeIT___DDC_CWICR/IT_ROME_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇯🇵 JapaneseTokyoddc_ja_tokyoJA___DDC_CWICR/JA_TOKYO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇰🇷 KoreanSeoulddc_ko_seoulKO___DDC_CWICR/KO_SEOUL_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇲🇽 SpanishMexico Cityddc_mx_mexicocityMX___DDC_CWICR/MX_MEXICOCITY_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotSP_BARCELONA
🇳🇬 EnglishLagosddc_ng_lagosNG___DDC_CWICR/NG_LAGOS_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇳🇱 DutchAmsterdamddc_nl_amsterdamNL___DDC_CWICR/NL_AMSTERDAM_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇳🇿 EnglishAucklandddc_nz_aucklandNZ___DDC_CWICR/NZ_AUCKLAND_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇵🇱 PolishWarsawddc_pl_warsawPL___DDC_CWICR/PL_WARSAW_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇷🇴 RomanianBucharestddc_ro_bucharestRO___DDC_CWICR/RO_BUCHAREST_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇸🇪 SwedishStockholmddc_sv_stockholmSV___DDC_CWICR/SV_STOCKHOLM_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇹🇭 ThaiBangkokddc_th_bangkokTH___DDC_CWICR/TH_BANGKOK_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇹🇷 TurkishIstanbulddc_tr_istanbulTR___DDC_CWICR/TR_ISTANBUL_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotDE_BERLIN
🇻🇳 VietnameseHanoiddc_vi_hanoiVI___DDC_CWICR/VI_HANOI_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP
🇿🇦 EnglishJohannesburgddc_za_johannesburgZA___DDC_CWICR/ZA_JOHANNESBURG_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshotUK_GBP

All collections use 3072-dimensional OpenAI embeddings with full payload metadata.

Collections

Shipped (11): 🇸🇦 ddc_ar_dubai · 🇩🇪 ddc_de_berlin · 🇨🇦 ddc_en_toronto · 🇪🇸 ddc_sp_barcelona · 🇫🇷 ddc_fr_paris · 🇮🇳 ddc_hi_mumbai · 🇧🇷 ddc_pt_saopaulo · 🇷🇺 ddc_ru_stpetersburg · 🇬🇧 ddc_uk_gbp · 🇺🇸 ddc_usa_usd · 🇨🇳 ddc_zh_shanghai

Derived (19): 🇦🇺 ddc_au_sydney · 🇧🇬 ddc_bg_sofia · 🇨🇿 ddc_cs_prague · 🇭🇷 ddc_hr_zagreb · 🇮🇩 ddc_id_jakarta · 🇮🇹 ddc_it_rome · 🇯🇵 ddc_ja_tokyo · 🇰🇷 ddc_ko_seoul · 🇲🇽 ddc_mx_mexicocity · 🇳🇬 ddc_ng_lagos · 🇳🇱 ddc_nl_amsterdam · 🇳🇿 ddc_nz_auckland · 🇵🇱 ddc_pl_warsaw · 🇷🇴 ddc_ro_bucharest · 🇸🇪 ddc_sv_stockholm · 🇹🇭 ddc_th_bangkok · 🇹🇷 ddc_tr_istanbul · 🇻🇳 ddc_vi_hanoi · 🇿🇦 ddc_za_johannesburg

Docker Deployment

# docker-compose.yml
services:
  qdrant:
    image: qdrant/qdrant:latest
    container_name: ddc-cwicr-qdrant
    ports:
      - "6333:6333"
      - "6334:6334"
    volumes:
      - qdrant_storage:/qdrant/storage
      - ./snapshots:/qdrant/snapshots
    environment:
      - QDRANT__LOG_LEVEL=INFO
    restart: unless-stopped

volumes:
  qdrant_storage:
# Start
docker-compose up -d

# Import snapshot
curl -X POST "http://localhost:6333/collections/ddc_en_toronto/snapshots/upload" \
  -H "Content-Type: multipart/form-data" \
  -F "snapshot=@EN___DDC_CWICR/EN_TORONTO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR.snapshot"

# Dashboard: http://localhost:6333/dashboard

Linux APT Packages

Install Qdrant + construction cost data with a single command on any Debian/Ubuntu system. No Docker, no manual setup - just apt install and search.

sudo apt install ddc-cwicr-en
  │
  ├── ddc-qdrant              Qdrant v1.16.3 binary + systemd service
  │     └── localhost:6333    vector database ready on port 6333
  │
  └── postinst                downloads ~1 GB snapshot from GitHub Releases
        └── PUT /snapshots/recover → 55,719 vectors loaded

Setup APT Repository

# Add the DDC package repository
echo "deb [trusted=yes] https://pkg.datadrivenconstruction.io stable main" \
  | sudo tee /etc/apt/sources.list.d/ddc.list

sudo apt update

Install a Language Collection

# Install English construction cost database (downloads ~1 GB of vector data)
sudo apt install ddc-cwicr-en

# Verify Qdrant is running
systemctl status qdrant
curl http://localhost:6333/collections

The .deb package is only ~5 KB - the heavy vector data is downloaded directly from GitHub Releases during installation and restored into Qdrant automatically.

Available Packages

PackageLanguageRegionData SizeCollection
ddc-cwicr-enEnglishToronto~1.2 GBddc_en_toronto
ddc-cwicr-deGermanBerlin~1.1 GBddc_de_berlin
ddc-cwicr-ruRussianSt. Petersburg~1.1 GBddc_ru_stpetersburg
ddc-cwicr-frFrenchParis~0.9 GBddc_fr_paris
ddc-cwicr-esSpanishBarcelona~0.9 GBddc_sp_barcelona
ddc-cwicr-arArabicDubai~0.9 GBddc_ar_dubai
ddc-cwicr-zhChineseShanghai~1.1 GBddc_zh_shanghai
ddc-cwicr-ptPortugueseSão Paulo~0.9 GBddc_pt_saopaulo
ddc-cwicr-hiHindiMumbai~1.0 GBddc_hi_mumbai
ddc-cwicr-usEnglishUSA~1.1 GBddc_usa_usd
ddc-cwicr-ukEnglishUK~1.1 GBddc_uk_gbp

Install multiple languages side by side:

sudo apt install ddc-cwicr-en ddc-cwicr-de ddc-cwicr-fr

CLI Search Tool

The optional ddc-cwicr-cli package provides ddc-search - a command-line interface for querying the database directly from the terminal.

sudo apt install ddc-cwicr-cli

Semantic search (requires OpenAI API key):

export OPENAI_API_KEY=sk-...

ddc-search "reinforced concrete foundation 300mm"
╔══════════════════════════════════════════════════════════════════╗
║  DDC CWICR Search Results - ddc_en_toronto (55,719 items)      ║
╚══════════════════════════════════════════════════════════════════╝

  #1  [0.847]  03.01.004
      Reinforced concrete strip foundations, width 300-600mm
      Unit: m³    Labor: $45.20    Material: $189.50    Total: $287.30

  #2  [0.831]  03.01.007
      Reinforced concrete pad foundations up to 500mm depth
      Unit: m³    Labor: $52.10    Material: $195.80    Total: $312.60

  #3  [0.814]  03.02.001
      Concrete foundation walls, reinforced, 200-400mm thick
      Unit: m³    Labor: $48.90    Material: $178.40    Total: $279.50

Keyword search (no API key needed):

ddc-search --keyword "concrete"

Other options:

# Search a specific language collection
ddc-search --collection ddc_de_berlin "Stahlbetonfundament"

# List all installed collections
ddc-search --list

# JSON output for scripting and automation
ddc-search --json "floor tiles installation"

# Limit number of results
ddc-search --limit 10 "steel beam HEB 300"

Package Architecture

PackageTypeSizeDescription
ddc-qdrantServer~27 MBQdrant v1.16.3 binary, systemd service, auto-start
ddc-cwicr-{lang}Data~5 KBPostinst downloads snapshot (~1 GB) from GitHub
ddc-cwicr-cliTool~5 KBPython3 CLI, no pip dependencies
  • ddc-qdrant is installed automatically as a dependency of any ddc-cwicr-{lang} package
  • Removing a language package (apt remove ddc-cwicr-en) deletes the collection from Qdrant
  • Purging ddc-qdrant (apt purge ddc-qdrant) removes all data and the system user
  • Available for amd64 and arm64 architectures

🌐 Pricing Search API - BuildCalculator.io

API Docs   No Auth   Free   Rate Limit

Free REST API for searching construction work items with full cost breakdown, labor, materials, and equipment data. 55,719 items across 11 languages with 84 fields per item.

Base URL: https://buildcalculator.io/api/v1

API Endpoints

GET/POST /api/v1/search - Search Construction Items

ParameterTypeDefaultRequiredDescription
qstring-YesSearch query (min 2 characters). Works in any language
langstringenNoDatabase language: en, ru, de, fr, es, pt, zh, ar, hi
topinteger5NoNumber of results (1–20)

GET /api/v1/languages - List Supported Languages

Returns all available languages with item counts.

GET /api/v1/stats - Database Statistics

Returns item counts, categories, languages, and metadata.

API Code Examples

cURL:

curl "https://buildcalculator.io/api/v1/search?q=concrete+foundation&lang=en&top=5"

Python:

import requests

response = requests.get("https://buildcalculator.io/api/v1/search",
    params={"q": "brick masonry walls", "lang": "en", "top": 5})
data = response.json()

for item in data["results"]:
    print(f"{item['name']} - {item['pricing']['total_per_unit']} EUR/{item['unit']}")

JavaScript:

const res = await fetch(
  "https://buildcalculator.io/api/v1/search?q=HVAC+ducting&lang=en&top=3"
);
const data = await res.json();

Response example:

{
  "query": "concrete foundation",
  "language": "en",
  "results_count": 5,
  "results": [
    {
      "rate_code": "KANE_KAME_KAKAME_KAMECON",
      "name": "Concrete preparation device",
      "unit": "m3",
      "currency": "EUR",
      "pricing": {
        "total_per_unit": 167.51,
        "labor_per_unit": 18.80,
        "material_per_unit": 142.92,
        "equipment_per_unit": 4.80
      },
      "cost_breakdown": {
        "labor_pct": 11.3,
        "material_pct": 85.8,
        "equipment_pct": 2.9
      }
    }
  ]
}

Error codes:

CodeMeaningAction
400Missing or invalid queryCheck q parameter (min 2 chars)
429Rate limit exceededWait and retry (60 req/min)
500Server errorTry again or contact support

📖 Full documentation: buildcalculator.io/api-docs


Quick Start

Python - Tabular Data

import pandas as pd

# Parquet (recommended)
df = pd.read_parquet("DDC_CWICR_EN.parquet")

# Excel
df = pd.read_excel("DDC_CWICR_EN.xlsx")

print(f"Records: {len(df):,} | Fields: {len(df.columns)}")
print(df[['rate_code', 'rate_original_name', 'rate_unit', 'total_cost_per_position']].head())

Python - Semantic Search

from qdrant_client import QdrantClient
from openai import OpenAI

client = QdrantClient("localhost", port=6333)
openai = OpenAI()

# Search by natural language
query = "reinforced concrete foundation pouring"
embedding = openai.embeddings.create(
    input=query, 
    model="text-embedding-3-large"
).data[0].embedding

results = client.search(
    collection_name="ddc_en_toronto",
    query_vector=embedding, 
    limit=5
)

for r in results:
    print(f"[{r.score:.3f}] {r.payload['rate_code']}: {r.payload['rate_original_name']}")

Filtered Search

from qdrant_client.models import Filter, FieldCondition, MatchValue, Range

# By department
results = client.search(
    collection_name="ddc_en_toronto",
    query_vector=embedding,
    query_filter=Filter(must=[
        FieldCondition(key="department_name", match=MatchValue(value="Concrete and Reinforced Concrete"))
    ]),
    limit=10
)

# By price range
results = client.search(
    collection_name="ddc_en_toronto",
    query_vector=embedding,
    query_filter=Filter(must=[
        FieldCondition(key="price_est_median", range=Range(gte=1000, lte=50000))
    ]),
    limit=10
)

💻 Developer Examples

The examples/ directory contains ready-to-run code in multiple languages - from basic data loading to advanced RAG pipelines and cost estimation.

Three Ways to Start

PathSetupTime to First Result
Zero setupcurl or fetch() to REST API10 seconds
Local datapip install pandas pyarrow + Parquet file2 minutes
Full stackDocker + Qdrant + OpenAI API key5 minutes

Available Examples

#ExampleLanguageLevel
01Load and explore dataPython, JS, Rust, RBeginner
02Semantic search with QdrantPython, JS, RustBeginner
03Cost estimation from textPython, JSIntermediate
04Cost estimation from photosPythonIntermediate
05BOQ generation & Excel exportPython, JSIntermediate
06RAG pipeline (Claude + Qdrant)PythonAdvanced
07Multi-language cost comparisonPythonIntermediate
08Data analysis & visualizationPython, RIntermediate
09Filtered & faceted searchPythonIntermediate
10Embedding generation pipelinePythonAdvanced
-n8n workflow guidesMarkdownAll levels
-Shell setup & API examplesBash/cURLBeginner

Includes sample data (100-row Parquet extract), Docker Compose for Qdrant, and .env template.

Browse all examples


Resources & Community

Website Demo GitHub YouTube LinkedIn Telegram

Consulting & 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. We actively support organizations seeking practical solutions for digital transformation and interoperability, focusing on data quality and classification challenges while driving the adoption of open and automated workflows.

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. Our team delivers hands-on workshops, provides strategic consulting, and develops prototypes tailored to real project processes.

Contact

Contributing

DDC CWICR is a free and open project dedicated to making the construction industry more efficient, transparent, and technologically advanced. We are actively looking for like-minded enthusiasts who share this mission. If you create useful solutions and are ready to share them with the community, we are here to help you be heard.

We invite you to submit your open source workflows, pipelines, and integrations based on DDC CWICR-tools that anyone can freely use in their work. The top solutions will be published with full author attribution on GitHub and announced through our newsletter and social media channels, reaching tens of thousands of professional subscribers. This places your name directly in front of an international community of estimators, BIM specialists, and project managers.

Together we are changing the industry. You can send your solution to info@datadrivenconstruction.io with the subject "DDC Open Workflow" or submit a Pull Request directly to our GitHub repositories.

Automate construction data processing with ready-made CAD-BIM n8n workflows:

cad2data Pipeline

🤖 AI Instructions

The AI_INSTRUCTIONS/ folder contains comprehensive documentation for AI coding assistants to work effectively with this construction cost database.

What is DDC CWICR?

DDC CWICR (Construction Work Items, Components & Resources) is an open-source construction cost database containing:

  • 55,719 work items - detailed construction operations with full cost breakdowns
  • 27,672 resources - materials, labor, and equipment with regional pricing
  • 85 data fields - structured schema for accurate cost calculations
  • 11 languages - with region-specific pricing (EUR, USD, CAD, RUB, CNY, etc.)
  • Pre-computed embeddings - 3072-dimensional OpenAI vectors for semantic search

Resource-Based Methodology

The database uses a resource-based costing approach that separates:

  • Technology norms (unchanging) - labor hours, material quantities, equipment time
  • Regional prices (volatile) - hourly rates, material costs, fuel prices
Actual Cost = Technology Norm × Regional Price

This allows accurate estimation across different regions and time periods.

AI Instructions Files

FilePurpose
INSTRUCTIONS.mdMain overview, quick start, data formats
CLAUDE.mdClaude Code specific patterns and examples
OPENCODE.mdConcise instructions for Opencode
ANTIGRAVITY.mdGCP integration (BigQuery, Vertex AI, Qdrant)
DATABASE_SCHEMA.mdComplete 85-field schema reference

n8n Workflows - Examples & Templates

The included n8n workflows are examples and templates demonstrating cost estimation logic. They can be:

  • ✅ Used as-is for quick deployment
  • ✅ Partially adapted for specific business requirements
  • ✅ Studied to understand the cost calculation methodology
  • ✅ Referenced when building custom integrations on any platform

The workflows demonstrate: database queries, work item matching, regional pricing logic, and report generation. AI can analyze these to understand the complete estimation process.

Why This Matters

AI assistants can help you:

  • Query the database using natural language
  • Find work items by semantic search
  • Calculate costs with regional pricing
  • Generate reports and export data
  • Build integrations with cloud services
  • Understand cost calculation methodology from workflow examples

Quick Start with AI

  1. Open the project in your AI-enabled IDE
  2. Ask: "Show me all concrete work items with their costs"
  3. The AI will use the instructions to query the data correctly

Book: For methodology details, see Data-Driven Construction Book


License

This repository is dual-licensed. See LICENSE for the full manifest, NOTICE for third-party attributions and the EU sui generis database-right notice, and DATA_DICTIONARY.md for the data schema.

ContentLicenceCanonical text
Data (CSV, XLSX, Parquet, Qdrant snapshots across the CIS base and the national bases)CC BY-NC 4.0 plus a DDC commercial licenceLICENSE-DATA.txt
Code (n8n workflows, AI agent instructions, Python / JS / R / Rust / shell adapter scripts, Dockerfiles)Apache-2.0LICENSE-CODE.txt
Documentation (*.md in all languages)CC BY-NC 4.0LICENSE-DATA.txt
PDF bookAll Rights Reserved, personal reading only-

The DATA is free for non-commercial use (research, teaching, evaluation, personal and non-profit) with attribution. Any commercial use requires a separate DDC commercial licence, see below.

Note on earlier releases: the CIS base was previously published under CC BY 4.0. Creative Commons licences are irrevocable, so copies distributed under CC BY 4.0 before this change remain under CC BY 4.0. Current and future releases are CC BY-NC 4.0.

What DDC licenses is the compilation: the harmonised schema, the translations, the World Bank PPP repricing and the cross-classification. The underlying official norms and prices are public facts, available under their own terms directly from each issuer. Each country folder carries a PROVENANCE.md naming the source, its legal basis and the attribution to preserve; keep those source attributions in addition to the DDC attribution below.

What you CAN do with the DATA (CC BY-NC 4.0)

Use non-commerciallyResearch, teaching, evaluation, personal and non-profit projects
Copy and redistributeShare the data in any medium or format, with attribution
Modify and adaptTransform, remix, build upon for non-commercial purposes
Use for AI / ML researchTrain models, build RAG pipelines for non-commercial use
Use in researchAcademic papers, reports, industry analysis

What you MUST do (CC BY-NC 4.0)

Give attributionCredit the source in every use, and keep the per-source attributions in each folder PROVENANCE.md
NonCommercialNo commercial use without a DDC commercial licence
Indicate changesIf you modified the data, state what was changed
Keep the licenceInclude a link to CC BY-NC 4.0 when redistributing

Attribution, required format

DDC CWICR by Artem Boiko / DataDrivenConstruction
https://github.com/datadrivenconstruction/OpenConstructionEstimate-DDC-CWICR
Licensed under CC BY-NC 4.0

A machine-readable citation is provided in CITATION.cff; GitHub surfaces it as the "Cite this repository" button.

Commercial licensing

CC BY-NC 4.0 does not permit commercial use of the DATA. Any use in or for a commercial product, service, or paid engagement requires a separate commercial licence from DataDrivenConstruction. Free for academia, non-profits, open-source and evaluation use.

Contact: info@datadrivenconstruction.io.

Security

Do not open public GitHub issues for security vulnerabilities. Report privately via GitHub Security Advisories or by email to info@datadrivenconstruction.io. See SECURITY.md for the full coordinated-disclosure policy, response timelines, scope, supply-chain-integrity posture (Git LFS hashes), and alignment with EU Regulation 2024/2847 (Cyber Resilience Act) reporting obligations.

Support the Project

If you find this useful, please consider supporting:

GitHub Sponsors Buy Me A Coffee


Unlock the Power of Data in Construction
Move to full-cycle data management where only unified structured data & processes remain

DataDrivenConstruction

© 2025 Artem Boiko · datadrivenconstruction.io


Trademarks

Autodesk®, Revit®, AutoCAD®, and DWG™ are registered trademarks or trademarks of Autodesk, Inc. OpenAI™ is a trademark of OpenAI, Inc. Qdrant is a trademark of Qdrant Solutions GmbH. All other brand names, product names, or trademarks belong to their respective holders.

This project is not affiliated with, endorsed by, or sponsored by Autodesk, OpenAI, Qdrant, or any other trademark holders mentioned above.

常见问题

What is OpenConstructionEstimate-DDC-CWICR?

OpenConstructionEstimate-DDC-CWICR is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by datadrivenconstruction. Open multilingual construction cost database for AI Agents - 55K+ work items, 27K+ resources, 30 regions. Semantic search via Qdrant vector DB. It has 148 GitHub stars.

Is OpenConstructionEstimate-DDC-CWICR safe to use?

OpenConstructionEstimate-DDC-CWICR returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install OpenConstructionEstimate-DDC-CWICR?

Clone the repository with "git clone https://github.com/datadrivenconstruction/OpenConstructionEstimate-DDC-CWICR" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is OpenConstructionEstimate-DDC-CWICR written in?

OpenConstructionEstimate-DDC-CWICR is primarily written in HTML. It is open-source under datadrivenconstruction on GitHub, so you can review or fork the full source.

Are there alternatives to OpenConstructionEstimate-DDC-CWICR?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh OpenConstructionEstimate-DDC-CWICR against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情