Estimate construction costs from text with Telegram, OpenAI and DDC CWICR
Ready for 3.0What this workflow does
This AI workflow has 70 nodes and runs on Telegram events (callback query, message). Along the way it connects Telegram, OpenAI Chat Model, Google Gemini Chat Model and Anthropic Chat Model and 2 more. It also calls api.openai.com over HTTP.
How it runs
Trigger: On Telegram events (callback query, message).
- 🔑 TOKEN (Edit Fields (Set)): sets 4 fields: bot_token, OPENAI_API_KEY, QDRANT_URL…
- Main (Code): runs custom JavaScript code
- Config (Code): runs custom JavaScript code
- Route (Switch): routes items into 11 branches
- 📤 Lang Menu (HTTP Request): calls an HTTP API (POST)
- Answer Lang CB (HTTP Request): calls an HTTP API (POST)
- Works Updated (Code): runs custom JavaScript code
- Edit Menu (Code): runs custom JavaScript code
- 📤 Ask New Work (HTTP Request): calls an HTTP API (POST)
- Answer Calc CB (HTTP Request): calls an HTTP API (POST)
…plus 57 more steps. See the full node list below.
Services it uses
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.
Nodes used (14)
- Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Telegram
n8n-nodes-base.telegram - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Telegram Trigger
n8n-nodes-base.telegramTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - DeepSeek Chat Model
@n8n/n8n-nodes-langchain.lmChatDeepSeek
From the author
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…