Use this n8n workflow to create a conversational AI chatbot via Telegram. Integrates the Telegram n8n trigger with OpenAI's GPT-4o-mini using the specialized AI Agent n8n node.
Download this n8n workflow template and start using it instantly.
Individuals looking for accessible n8n templates to rapidly deploy custom AI chatbots.
Automation specialists needing a robust n8n node setup for managing conversational agents.
Developers seeking to integrate OpenAI GPT functionality directly into a messaging platform via a simple n8n workflow.
Users who want a practical example of how to combine an n8n trigger with LLM processing.
This useful n8n workflow demonstrates how to build a highly responsive AI assistant accessible directly through Telegram. By leveraging the flexibility of the n8n platform, users can quickly turn any Telegram chat into a direct interface for the powerful OpenAI GPT-4o-mini model. This specific n8n workflow uses the dedicated AI Agent n8n node to handle the conversation logic and context, while the Telegram n8n trigger manages the incoming messages. This eliminates the need for complex external server setups, allowing the user to manage both the communication layer and the processing layer entirely within n8n. This setup serves as one of the most practical n8n templates for rapid AI integration and deployment.
The conversational process begins immediately upon receiving a message, initiated by the Telegram Trigger n8n trigger node. This n8n trigger listens for new user messages directed at the configured Telegram bot and starts the n8n workflow execution.
gpt-4o-mini model. The agent processes the user's query and generates a contextually appropriate response.chatId from the original Telegram Trigger event, ensuring the generated AI response is sent back precisely to the user who initiated the conversation, completing the automated n8n workflow loop. Telegram Trigger (n8n trigger):
Function: Serves as the starting point of the n8n workflow, listening for incoming messages sent to the configured Telegram bot.
Key Configuration: Listens for message updates.
AI Agent (n8n node):
Function: Manages the conversational logic and applies a predefined persona (helpful assistant with emojis) to the incoming text before routing it to the Language Model.
Key Configuration: Input Text expression targets {{ $json.message.text }}; includes system instructions.
OpenAI Chat Model (n8n node):
Function: Provides the Large Language Model capabilities for the AI Agent.
Key Configuration: Uses the gpt-4o-mini model, ideal for fast and cost-effective responses within this n8n template.
Telegram (n8n node):
Function: Sends the AI-generated response back to the user.
Key Configuration: Retrieves the message content from the AI Agent output ({{ $json.output }}) and dynamically determines the recipient using the original chat ID ({{ $('Telegram Trigger').item.json.message.chat.id }}).
Automate web scraping and AI summarization of news links shared on Telegram. This powerful n8n workflow uses vector storage for real-time conversational Q&A based on the article content.

Leverage this powerful n8n workflow to create a Retrieval-Augmented Generation (RAG) agent. Index Google Drive files into Supabase (Vector DB) using Ollama embeddings for contextual AI chat.

Use this powerful n8n workflow to create a Retrieval-Augmented Generation (RAG) agent that answers questions based on documents stored in Google Drive, utilizing OpenAI and Pinecone.

Use this powerful n8n workflow to ingest PDFs, Markdown, and text files from Google Drive into an InfraNodus knowledge graph. Leverage graph RAG for advanced, vector-store-free Q&A.

Build a custom AI assistant using n8n that can chat directly with your PostgreSQL database. This n8n workflow uses an OpenAI agent to generate and execute complex SQL queries.









































