Telegram AI Chatbot with LangChain, GPT-4 & DALL-E
Builds an intelligent Telegram bot using LangChain Conversation Agent, GPT-4 for replies, conversation memory, and DALL-E image generation.
This n8n workflow creates a sophisticated Telegram AI chatbot powered by LangChain nodes. It starts by listening for incoming Telegram messages, then routes them to a Conversation Agent configured with a custom system prompt for formatted replies. The agent leverages GPT-4 (1106-preview model) for generating context-aware responses, maintains user-specific conversation history via Window Buffer Memory (10-message window keyed by Telegram chat ID), and integrates a custom DALL-E 3 tool for on-demand image generation.
When a user requests an image, the workflow triggers a sub-flow calling DALL-E 3 with the prompt and user ID, generates the image, and sends it back via Telegram. An additional Telegram node ensures stability by masking unsupported HTML syntax in AI responses. This setup handles multi-turn conversations seamlessly, making it ideal for interactive bots.
Benefits include time-saving automation of customer interactions, persistent memory for personalized engagement, and multimodal capabilities (text + images). In real estate lead management, use it to qualify leads via natural chat, generate property visuals from descriptions, schedule viewings, or provide market insights—boosting conversion rates without manual intervention. Highly customizable for any domain requiring conversational AI.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
WhatsApp Business Automation
7 hand-picked workflows for $39.00.
That is $5.57 each, vs $22.99 for this one alone.
View bundleSecure checkout powered by Stripe
Tags
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Real Estate workflows
- Automate Real Estate Chatbot with AI Property Matching and Calendar Scheduling$19.99
- Automate Real Estate Searches with SQL and Email Reports$9.99
- Qualify Real Estate Leads via SMS with GPT-4o, Twilio, and Google Sheets$14.99
- Real Estate Lead Generation with BatchData Skip Tracing & CRM Integration$14.99
- AI Real Estate Agent: End-to-End Operations Automation (Web, Data, Voice)$24.99
- Automate Weekly Real Estate Listings to Google Sheets$4.99
More from Fiona Horvath
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.