Telegram Bot with OpenAI Assistant & Supabase Memory
Builds a contextual Telegram bot using OpenAI assistants and Supabase for user memory, enabling persistent conversations via telegram_id and thread_id.
This n8n workflow creates a sophisticated Telegram bot that integrates OpenAI's assistant API with Supabase for long-term memory. It starts by receiving incoming Telegram messages via webhook, checks for existing users in Supabase using their telegram_id, and creates new entries with unique OpenAI thread_ids if needed. The bot then retrieves or initiates conversation threads, processes queries with OpenAI for intelligent responses, and stores interaction history for context-aware replies.
Key benefits include seamless context retention across sessions, reducing repetitive queries and enhancing user engagement. By leveraging Supabase for scalable storage, it handles multiple users efficiently without losing personalization. This eliminates the limitations of stateless bots, saving developers hours of custom coding for memory management.
Ideal for real estate lead management, it captures prospect inquiries, qualifies leads through conversational AI, and maintains history for follow-ups. Other use cases: customer support, virtual assistants, or sales bots. Includes a video guide for easy setup, making it accessible for businesses scaling Telegram interactions.
Customization options allow tailoring OpenAI instructions for domain-specific responses, like property recommendations, boosting conversion rates.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
E-commerce Store Automation Suite
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $24.99 for this one alone.
View bundleSecure checkout powered by Stripe
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 Kiran Sultan
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.