Deploy a powerful, real-time GPT-5 conversational AI chatbot directly on Telegram using this flexible n8n workflow. Includes message logging and user experience enhancements.
Download this n8n workflow template and start using it instantly.
This powerful n8n workflow provides a comprehensive solution for deploying a real-time AI chatbot on Telegram. By integrating the Telegram webhook with a sophisticated AI model (GPT-5 via AIMLAPI), the automation ensures prompt, context-aware replies.
Unlike simple integrations, this n8n workflow enhances the user experience by immediately sending a 'typing...' indicator before the AI processes the request. Furthermore, the final step includes an optional but highly valuable Google Sheets logging component, making this one of the most useful n8n templates for analytics and auditing.
Every n8n node is configured for maximum efficiency, turning any standard Telegram account into a sophisticated, AI-powered conversational agent.
This automation is initiated by the critical n8n trigger provided by the Telegram platform.
openai/gpt-5-chat-latest model for high-quality response generation.chatId to deliver the final text reply back to the user.To deploy this comprehensive n8n workflow, follow these steps:
https://api.aimlapi.com/v1 and input your API key. This authenticates the ๐ง Process with GPTโ5 n8n node. ๐ฉ Receive Telegram Message (n8n trigger):
Function: Serves as the primary n8n trigger, initiating the automation when a new message update is received from Telegram.
Key Configuration: Configured to watch for message updates.
๐ฌ Simulate Typing in Telegram (n8n node):
Function: Sends a sendChatAction (typing status) to the user's chat ID, improving the perceived speed and fluidity of the n8n workflow.
Key Configuration: Uses the original message's chat.id.
๐ง Process with GPTโ5 (n8n node - AIMLAPI):
Function: The core processing unit. It sends the user's message as a prompt to the specified language model (openai/gpt-5-chat-latest).
Key Configuration: Model: openai/gpt-5-chat-latest. Prompt: Dynamic expression pulling text from the initial Telegram message.
๐ค Send Response to Telegram (n8n node):
Function: Posts the AI-generated content back to the user via Telegram.
Key Configuration: Chat Id: Uses the dynamic ID from the n8n trigger. Text: Uses the output content from the GPT-5 processing n8n node.
๐ Log Successful Generation (n8n node - Google Sheets):
Function: Optional but crucial n8n node for tracking usage. It appends a row with interaction metadata for later analysis.
* Key Configuration: Maps fields like user_id, date, query, and result using data pulled from previous nodes in the n8n workflow.
This n8n workflow automates a full RAG system using Google Drive, OCR (Mistral AI), OpenAI embeddings, and Supabase vectors. Utilize these n8n templates to power a multi-channel AI chat agent across Slack, Telegram, and Gmail.

Use this foundational n8n workflow to integrate diverse AI models, like Mistral, through OpenRouter.ai. Learn how to configure the n8n HTTP Request node for custom LLM automation.

Build an advanced n8n workflow using OpenAI Assistants, PostgreSQL memory, and external API calls (MySQL/HTTP). This n8n template manages context and retrieves real-time data.

Use this powerful n8n workflow to create an AI Agent that leverages the Google Gemini Chat Model and executes commands locally via SSH using a custom n8n node tool.

Build a powerful RAG chatbot using this specialized n8n workflow template. Leverage Pinecone and OpenAI to index and query the GitHub OpenAPI specification for instant answers.








































