What This Workflow Does
This automation solves a critical bottleneck in construction and renovation projects: getting fast, accurate cost estimates from various input formats. Traditionally, estimators manually review blueprints, visit sites, or parse lengthy descriptions—a process taking hours or days.
The workflow creates a Telegram bot that accepts three types of inputs: text descriptions of work needed, photos of construction sites or rooms, or PDF floor plans. It uses AI vision models (GPT‑4 or Gemini) to analyze these inputs, extract quantifiable work items, then searches a construction cost database (DDC CWICR with 55,000+ rates) to generate a professional cost breakdown with labor, materials, and equipment costs.
Beyond simple calculation, it supports 9 languages, allows inline quantity editing via Telegram buttons, and exports results as interactive HTML reports, Excel sheets, or PDF documents—transforming how contractors, architects, and project managers approach preliminary budgeting.
How It Works
1. Input Reception & Routing
The Telegram bot listens for messages. When a user sends text, photos, or documents, the workflow's main router detects the content type and directs it to the appropriate handler—17 different actions handle everything from language selection to PDF analysis.
2. AI Analysis & Extraction
For text: GPT‑4 parses natural language descriptions into structured work items with quantities. For photos: GPT‑4 Vision or Gemini analyzes construction site images, identifying materials, fixtures, and measurable elements. For PDFs: Gemini 2.0 Flash reads floor plans, extracting room dimensions and architectural elements.
3. Database Search & Cost Calculation
Each extracted work item triggers a sophisticated search loop. The query is optimized, converted to embeddings, then sent to a Qdrant vector database containing the DDC CWICR construction rates. AI reranking scores the results for accuracy before final cost calculation.
4. Report Generation & Delivery
The system compiles all calculated items into a professional HTML report with expandable details, cost breakdown percentages, and quality indicators. Users receive the estimate in Telegram with options to edit quantities, export to Excel/PDF, or restart with new inputs.
Who This Is For
Contractors & Estimators who need rapid quotes from client descriptions or site photos without manual takeoffs. Construction Managers evaluating renovation scope during site walks using just their phone camera. Architects & Designers seeking instant cost feedback on floor plan concepts during client meetings.
Real Estate Professionals assessing renovation costs for property flips or investment analysis. Project Owners wanting feasibility checks before engaging full design teams. Facility Managers budgeting for maintenance and improvement projects across multiple properties.
What You'll Need
- n8n instance (v1.30+) with Telegram Trigger node configured
- Telegram Bot Token from @BotFather
- OpenAI API key for GPT‑4 text processing and embeddings
- Gemini API key (or additional OpenAI credit for GPT‑4 Vision)
- Qdrant vector database instance with DDC CWICR collections loaded
- DDC CWICR database (open-source construction rates)
Pro tip: Start with Gemini 2.0 Flash for photo/PDF analysis—it's more cost-effective than GPT‑4 Vision and handles PDFs better. Use OpenAI primarily for text parsing and embeddings where it excels.
Quick Setup Guide
- Import the template into your n8n instance using the downloaded JSON file.
- Configure the TOKEN node with your API keys: Telegram bot token, AI provider choice (gemini/openai), Gemini API key, OpenAI API key, Qdrant URL and API key.
- Set up n8n credentials for Telegram API in Settings → Credentials, then select it in the Telegram Trigger node.
- Load DDC CWICR embeddings into your Qdrant instance for your target languages (e.g., Russian collection for RU estimates).
- Activate the workflow and test by sending "/start" to your Telegram bot, then a photo, PDF, or text description.
Key Benefits
Reduce estimation time from hours to minutes. What traditionally required site visits, manual measurements, and spreadsheet work now happens instantly via mobile messaging.
Eliminate inconsistent pricing. All estimates draw from the same standardized cost database, ensuring consistent pricing for identical work items across different projects and team members.
Capture opportunities you'd otherwise miss. When clients send casual photos or descriptions via Telegram, you can respond with professional estimates before competitors even schedule site visits.
Scale your estimation capacity without adding staff. One estimator can handle 5-10x more preliminary estimates, focusing their expertise on complex final bids rather than routine calculations.
Create digital audit trails automatically. Every estimate generates structured data perfect for CRM integration, historical analysis, and improving future accuracy through machine learning.