Telegram OpenAI Chat Assistant Template
detail.loadingPreview
Create an AI-powered chat assistant that integrates with Telegram and OpenAI.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow allows you to build a powerful chat assistant that leverages the capabilities of OpenAI's assistants API and integrates seamlessly with Telegram. It handles user messages, creates OpenAI threads, stores user data in Supabase, and returns AI-generated responses back to the Telegram user.
Key Features
- Receives messages from Telegram.
- Creates and manages OpenAI assistant threads.
- Stores user IDs and thread IDs in Supabase.
- Sends user messages to the OpenAI assistant.
- Retrieves and sends assistant responses back to Telegram.
- Checks for existing users in Supabase.
How To Use
- Set up a Telegram Bot: Obtain a bot token from Botfather.
- Set up Supabase: Create a new project and the
telegram_userstable with the provided SQL schema. - Configure OpenAI: Obtain an API key and create an assistant in the OpenAI platform.
- Map Credentials: In n8n, configure the Telegram, Supabase, and OpenAI API credentials.
- Set Environment Variables: Define
API_BASE_URLandBASE_URLfor OpenAI API calls. - Specify Assistant ID: Replace
asst_b0QhuzySG6jofHFdzPZD7WEzwith your actual OpenAI Assistant ID. - Run the Workflow: Trigger the workflow by sending a message to your Telegram bot.
Apps Used
Workflow JSON
{
"id": "6551d724-ac4f-432f-8846-45df9659a8d2",
"name": "Telegram OpenAI Chat Assistant Template",
"nodes": 0,
"category": "AI & Machine Learning",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6551d724-ac4f...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Create an AI-Powered Telegram Bot with Langchain and DALL-E 3
Build a sophisticated Telegram bot using n8n, integrating Langchain for AI conversation and DALL-E 3 for image generation. This workflow allows for dynamic chat interactions and creative image creation directly through Telegram.
Telegram AI Langchain Bot with DALL-E 3 Image Generation
An n8n workflow that acts as a Telegram bot, powered by Langchain, for AI chat interactions and image generation using DALL-E 3.
Telegram AI Chatbot with Long-Term Memory and Note Storage
Build a sophisticated Telegram chatbot powered by AI, capable of maintaining long-term memory and storing notes using Google Docs. This workflow leverages Langchain and n8n nodes to create an intelligent conversational agent.
Build a Conversational AI Agent with LangChain, Tools, and Memory in n8n
This workflow demonstrates how to create an intelligent AI agent using LangChain in n8n. It leverages an OpenAI model, buffer memory for conversation history, and external tools like Wikipedia and SerpAPI for enhanced responses. The 'On new manual Chat Message' node initiates the agent's interaction.
Transform Images to Lego Style with Line Bot and DALL-E
This workflow automates image transformation to a Lego style using a Line bot webhook, DALL-E for prompt generation, and DALL-E for image creation. It's ideal for creative applications and custom content generation.
Automated Customer Feedback Sentiment Analysis with OpenAI and Google Sheets
This n8n workflow automatically analyzes customer feedback for sentiment using OpenAI and stores the results in Google Sheets. It's triggered by a form submission, making feedback processing seamless.