๐Ÿ”ฌ Generate photo-based construction cost estimates with GPT-4 Vision and DDC CWICR

โšก 38 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

๐Ÿ’ก Pro Tip โ€” HTTP Request scraping tends to break when sites update their markup. If youโ€™re scraping a major platform, check if ScraperNode covers it โ€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Upload a construction photo via web form โ†’ get a detailed cost estimate with work breakdown, resource costs, and professional HTML report. Powered by GPT-4 Vision and the open-source DDC CWICR database (55,000+ work items).

Whoโ€™s it for

What it does

  1. Collects photo + region/language via n8n Form
  2. Analyzes photo with GPT-4 Vision (room type, elements, dimensions)
  3. Decomposes visible elements into construction work items
  4. Searches DDC CWICR vector database for matching rates
  5. Generates professional HTML report with cost breakdown

Supports 9 regions: ๐Ÿ‡ฉ๐Ÿ‡ช Berlin ยท ๐Ÿ‡ฌ๐Ÿ‡ง Toronto ยท ๐Ÿ‡ท๐Ÿ‡บ St. Petersburg ยท ๐Ÿ‡ช๐Ÿ‡ธ Barcelona ยท ๐Ÿ‡ซ๐Ÿ‡ท Paris ยท ๐Ÿ‡ง๐Ÿ‡ท Sรฃo Paulo ยท ๐Ÿ‡จ๐Ÿ‡ณ Shanghai ยท ๐Ÿ‡ฆ๐Ÿ‡ช Dubai ยท ๐Ÿ‡ฎ๐Ÿ‡ณ Mumbai

How it works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Web Form    โ”‚ โ†’  โ”‚  STAGE 1      โ”‚ โ†’  โ”‚  STAGE 4      โ”‚ โ†’  โ”‚  Loop Works  โ”‚
โ”‚  Photo+Lang  โ”‚    โ”‚  GPT-4 Vision โ”‚    โ”‚  Decompose    โ”‚    โ”‚  per item    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ†“                     โ†“                    โ†“
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚  Identify room, elements, fixtures, dimensions      โ”‚
                    โ”‚  โ†’ Break down into 15-40 construction work items    โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                                     โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  HTML Report โ”‚ โ†  โ”‚  STAGE 7.5    โ”‚ โ†  โ”‚  STAGE 5      โ”‚ โ†  โ”‚  Qdrant      โ”‚
โ”‚  Response    โ”‚    โ”‚  Aggregate    โ”‚    โ”‚  Parse+Score  โ”‚    โ”‚  Vector DB   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Pipeline stages:

StageNodeDescription
1GPT-4 VisionAnalyzes photo: room type, elements, materials, dimensions
4GPT-4 DecomposeBreaks elements into work items with quantities
5Vector Search + ScoreFinds matching rates in DDC CWICR, quality scoring
7.5Aggregate & ValidateSums costs, groups by phase, validates results
9HTML ReportGenerates professional estimate document

Prerequisites

ComponentRequirement
n8nv1.30+ with Form Trigger support
OpenAI APIGPT-4 Vision + Embeddings access
QdrantVector DB with DDC CWICR collections
DDC CWICR Datagithub.com/datadrivenconstruction/DDC-CWICR

Setup

1. n8n Credentials (Settings โ†’ Credentials)

2. Qdrant Collections

Load DDC CWICR embeddings for your target regions:

DE_BERLIN_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
ENG_TORONTO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
RU_STPETERSBURG_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
ES_BARCELONA_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
FR_PARIS_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
PT_SAOPAULO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
ZH_SHANGHAI_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
AR_DUBAI_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
HI_MUMBAI_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR

3. Activate Workflow

  1. Import JSON into n8n
  2. Link OpenAI + Qdrant credentials to respective nodes
  3. Activate workflow
  4. Access form at: https://your-n8n/form/photo-estimate-pro-v3

Features

FeatureDescription
๐Ÿ“ธ Photo AnalysisGPT-4 Vision identifies room type, elements, fixtures
๐Ÿ“ Dimension EstimationUses reference objects (doors, tiles) for sizing
๐Ÿ”ง Work DecompositionBreaks down to 15-40 specific work items
๐ŸŽฏ Quality ScoringRates match quality (high/medium/low/not_found)
๐Ÿ“Š Phase GroupingPREPARATION โ†’ MAIN โ†’ FINISHING โ†’ MEP
๐Ÿ’ฐ Cost BreakdownLabor, materials, machines per item
โœ… ValidationWarns if <50% rates found or missing demolition
๐ŸŒ 9 LanguagesFull localization + regional pricing

Form Fields

FieldTypeOptions
๐Ÿ“ท Upload PhotoFile.jpg, .png, .webp
๐ŸŒ Region & LanguageDropdown9 regions with currencies
๐Ÿ—๏ธ Work TypeDropdownNew / Renovation / Repair / Auto
๐Ÿ“ DescriptionTextareaOptional context

Example Output

Input: Bathroom photo (renovation)
Region: ๐Ÿ‡ฉ๐Ÿ‡ช German - Berlin (EUR โ‚ฌ)

Generated Work Items:

PREPARATION (3 items)
โ”œโ”€โ”€ Demolition of wall tiles โ€” 12 mยฒ โ€” โ‚ฌ180
โ”œโ”€โ”€ Demolition of floor tiles โ€” 4.5 mยฒ โ€” โ‚ฌ95
โ””โ”€โ”€ Disposal of construction waste โ€” 0.8 mยณ โ€” โ‚ฌ120

MAIN (8 items)
โ”œโ”€โ”€ Floor waterproofing โ€” 4.5 mยฒ โ€” โ‚ฌ225
โ”œโ”€โ”€ Wall waterproofing wet zone โ€” 8 mยฒ โ€” โ‚ฌ280
โ”œโ”€โ”€ Floor screed โ€” 4.5 mยฒ โ€” โ‚ฌ135
โ”œโ”€โ”€ Wall tiling โ€” 22 mยฒ โ€” โ‚ฌ880
โ”œโ”€โ”€ Floor tiling โ€” 4.5 mยฒ โ€” โ‚ฌ225
โ”œโ”€โ”€ Toilet installation โ€” 1 pcs โ€” โ‚ฌ320
โ”œโ”€โ”€ Sink installation โ€” 1 pcs โ€” โ‚ฌ185
โ””โ”€โ”€ Shower cabin installation โ€” 1 pcs โ€” โ‚ฌ450

FINISHING (3 items)
โ”œโ”€โ”€ Ceiling painting โ€” 4.5 mยฒ โ€” โ‚ฌ68
โ”œโ”€โ”€ Grouting โ€” 26.5 mยฒ โ€” โ‚ฌ133
โ””โ”€โ”€ Silicone sealing โ€” 8 m โ€” โ‚ฌ48

MEP (4 items)
โ”œโ”€โ”€ Socket installation โ€” 2 pcs โ€” โ‚ฌ90
โ”œโ”€โ”€ Light point installation โ€” 2 pcs โ€” โ‚ฌ120
โ”œโ”€โ”€ Mixer/faucet installation โ€” 2 pcs โ€” โ‚ฌ160
โ””โ”€โ”€ Ventilation installation โ€” 1 pcs โ€” โ‚ฌ85

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
TOTAL: โ‚ฌ3,799.00
Labor: โ‚ฌ1,520 ยท Materials: โ‚ฌ1,900 ยท Machines: โ‚ฌ379
Quality: 78% high match ยท 18 work items

Quality Scoring System

ScoreLevelMeaning
60-100๐ŸŸข HighExact match with resources
40-59๐ŸŸก MediumGood match, minor differences
20-39๐ŸŸ  LowPartial match, review needed
0-19๐Ÿ”ด Not FoundNo suitable rate found

Scoring factors:

Notes & Tips

Categories

AI ยท Data Extraction ยท Document Ops ยท Files & Storage

Tags

photo-analysis, gpt-4-vision, construction, cost-estimation, qdrant, vector-search, form-trigger, html-report, multilingual


Author

DataDrivenConstruction.io
https://DataDrivenConstruction.io
info@datadrivenconstruction.io

Consulting & Training

We help construction, engineering, and technology firms implement:

Contact us to test with your data or adapt to your project requirements.

Resources


โญ Star us on GitHub! github.com/datadrivenconstruction/DDC-CWICR

๐Ÿ”— Nodes Used

Basic LLM Chain, Embeddings OpenAI, OpenAI Chat Model, n8n Form Trigger, Qdrant Vector Store

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup