๐ฌ Estimate construction costs from text with Telegram, OpenAI and DDC CWICR
โก 76 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.
Description
A Telegram bot that converts natural-language work descriptions into detailed cost estimates using AI parsing, vector search, and the open-source DDC CWICR database with 55,000+ construction work items.
Whoโs it for
- Contractors & Estimators who need quick ballpark figures from verbal/text descriptions
- Construction managers doing feasibility checks on-site via mobile
- BIM/CAD professionals integrating text-based estimation into workflows
- Developers building construction cost APIs or chatbots
What it does
- Receives text messages in Telegram (work lists, specifications, notes)
- Parses input with AI (OpenAI/Claude/Gemini) into structured work items
- Searches DDC CWICR vector database via Qdrant for matching rates
- Calculates costs with full breakdown (labor, materials, machines)
- Exports results as HTML report, Excel, or PDF
Supports 9 languages: ๐ฉ๐ช DE ยท ๐ฌ๐ง EN ยท ๐ท๐บ RU ยท ๐ช๐ธ ES ยท ๐ซ๐ท FR ยท ๐ง๐ท PT ยท ๐จ๐ณ ZH ยท ๐ฆ๐ช AR ยท ๐ฎ๐ณ HI
How it works
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ Telegram โ โ โ AI Parse โ โ โ Embeddings โ โ โ Qdrant โ
โ Text Input โ โ (GPT/Claude)โ โ (OpenAI) โ โ Search โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ Export โ โ โ Aggregate โ โ โ Calculate โ โ โ AI Rerank โ
โ HTML/XLS/PDFโ โ Results โ โ Costs โ โ Results โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
Step-by-step:
- User sends
/startโ selects language โ enters work description - AI Parse extracts work items: name, quantity, unit, room
- Query Transform optimizes search terms for construction domain
- Embeddings API converts query to vector (OpenAI
text-embedding-3-small) - Qdrant Search finds top-10 matching rates from DDC CWICR
- AI Rerank selects best match considering context and units
- Calculate applies quantities, sums labor/materials/machines
- Report sends Telegram message + optional Excel/PDF export
Prerequisites
| Component | Requirement |
|---|---|
| n8n | v1.30+ (AI nodes support) |
| Telegram Bot | Token from @BotFather |
| OpenAI API | For embeddings + LLM parsing |
| Qdrant | Vector DB with DDC CWICR collections loaded |
| DDC CWICR Data | github.com/datadrivenconstruction/DDC-CWICR |
Setup
1. Credentials (n8n Settings โ Credentials)
- OpenAI API โ required for embeddings and text parsing
- Anthropic API โ optional, for Claude models
- Google Gemini API โ optional, for Gemini models
2. Configuration (๐ TOKEN node)
bot_token = YOUR_TELEGRAM_BOT_TOKEN
QDRANT_URL = http://localhost:6333
QDRANT_API_KEY = (if using Qdrant Cloud)
3. Qdrant Setup
Load DDC CWICR collections for your target languages:
DE_construction_ratesโ German (STLB-Bau based)EN_construction_ratesโ EnglishRU_construction_ratesโ Russian (GESN/FER based)- โฆ (see DDC CWICR docs for all 9 languages)
4. Link AI Model Nodes
- Open OpenAI Model nodes
- Select your OpenAI credential
- (Optional) Enable Claude/Gemini nodes for alternative models
5. Telegram Webhook
- Activate workflow
- Telegram Trigger auto-registers webhook
- Test with
/startin your bot
Features
| Feature | Description |
|---|---|
| ๐ค Multi-LLM | Swap between OpenAI, Claude, Gemini |
| ๐ 9 Languages | Full UI + database localization |
| ๐ Smart Parsing | Handles lists, tables, free-form text |
| ๐ Semantic Search | Vector similarity + AI reranking |
| ๐ Cost Breakdown | Labor, materials, machines, hours |
| โ๏ธ Inline Edit | Modify quantities, delete items |
| ๐ค Export | HTML report, Excel, PDF |
| ๐พ Session State | Multi-turn conversation support |
Example Input/Output
Input (Telegram message):
Living room renovation:
- Laminate flooring 25 mยฒ
- Wall painting 60 mยฒ
- Ceiling plasterboard 25 mยฒ
- 3 electrical outlets
Output:
โ
Estimate Ready โ 4 items found
1. Laminate flooring โ
25 mยฒ ร โฌ18.50 = โฌ462.50
โ Labor: โฌ125 ยท Materials: โฌ337.50
2. Wall painting โ
60 mยฒ ร โฌ8.20 = โฌ492.00
โ Labor: โฌ312 ยท Materials: โฌ180
3. Ceiling plasterboard โ
25 mยฒ ร โฌ32.00 = โฌ800.00
โ Labor: โฌ425 ยท Materials: โฌ375
4. Electrical outlets โ
3 pcs ร โฌ45.00 = โฌ135.00
โ Labor: โฌ95 ยท Materials: โฌ40
โโโโโโโโโโโโโโโโโโโโโ
Total: โฌ1,889.50
[โ Excel] [โ PDF] [โป Restart]
Notes & Tips
- First run: Ensure Qdrant has DDC CWICR data loaded before testing
- Rate accuracy: Results depend on query quality; AI reranking improves matching
- Large lists: Bot handles 50+ items; progress shown per-item
- Customization: Edit
Confignode for UI text, currencies, database mapping - Extend: Chain with your CRM, project management, or reporting tools
Categories
AI ยท Data Extraction ยท Communication ยท Files & Storage
Tags
telegram-bot, construction, cost-estimation, qdrant, vector-search, openai, multilingual, bim, cad
Author
DataDrivenConstruction.io
https://DataDrivenConstruction.io
info@datadrivenconstruction.io
Consulting & Training
We help construction, engineering, and technology firms implement:
- Open data principles for construction
- CAD/BIM processing automation
- AI-powered estimation pipelines
- ETL workflows for construction databases
Contact us to test with your data or adapt to your project requirements.
Resources
- DDC CWICR Database: GitHub
- Qdrant Setup Guide: qdrant.tech/documentation
- n8n AI Nodes: docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain
โญ Star us on GitHub! github.com/datadrivenconstruction/DDC-CWICR
๐ Nodes Used
HTTP Request, Telegram, Telegram Trigger, Basic LLM Chain, Anthropic Chat Model, OpenAI Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File