Estimate construction costs from text, photos and PDFs with Telegram, GPT‑4/Gemini and DDC CWICR
Ready for 3.0What this workflow does
This workflow has 91 nodes and runs on Telegram events (message, callback query). Along the way it connects Telegram. It also calls api.openai.com over HTTP.
How it runs
Trigger: On Telegram events (message, callback query).
- 🔑 TOKEN (Edit Fields (Set)): sets or maps fields
- Main (Code): runs custom JavaScript code
- Config (Code): runs custom JavaScript code
- Route (Switch): routes items into 17 branches
- 📤 Lang Menu (HTTP Request): calls an HTTP API (POST)
- Answer Lang CB (HTTP Request): calls an HTTP API (POST)
- Answer Photo CB (HTTP Request): calls an HTTP API (POST)
- 📤 Analyze Options (HTTP Request): calls an HTTP API (POST)
- Refine Analysis (Code): runs custom JavaScript code
- Works Updated (Code): runs custom JavaScript code
…plus 80 more steps. See the full node list below.
Services it uses
Other Telegram + OpenAI templates (807)
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - Telegram Trigger
n8n-nodes-base.telegramTrigger
From the author
A full-featured Telegram bot that accepts text descriptions, photos, or PDF floor plans and returns detailed cost estimates with work breakdown. Powered by GPT-4 Vision / Gemini 2.0, vector search, and the open-source DDC CWICR database (55,000+ construction…