Voice & Text Telegram Assistant with GPT-4.1-mini and Conversation Memory
Personal AI Assistant on Telegram
Who It’s For:
This workflow is designed for developers, founders, community managers, and automation enthusiasts who want to bring a personal AI assistant directly into their Telegram chat. It lets users interact naturally—either through text or voice messages—and get instant, AI-powered replies without switching apps or opening dashboards.
⚡ What It Does / How It Works
📥 Message Trigger: A Telegram Trigger node listens for incoming messages. 🧭 Smart Routing: A Switch node decides if the user sent a text or voice message. 🗣️ Voice to Text: If it’s voice, the workflow uses OpenAI Whisper Transcription to convert it into text. 🧠 AI Processing: The text is passed to an AI Agent powered by GPT-4.1-mini to understand intent and craft a response. 💬 Reply: The bot sends a clean, structured, and polite answer back to the user on Telegram. 🧠 Memory: A buffer memory node keeps short-term conversation history for a more contextual, human-like experience.
🧰 How to Set It Up: Telegram Integration
Create a bot via @BotFather on Telegram. https://telegram.me/BotFather Add your Telegram API Key to n8n credentials. Connect the Telegram Trigger and Send a Message nodes.
OpenAI Setup
Get your API key from platform.openai.com. https://platform.openai.com/api-keys Configure the OpenAI Chat Model and Transcribe a Recording nodes with GPT-4.1-mini.
Workflow Logic
Use the Switch node to detect message type (text or voice). Route voice messages through transcription before sending them to the AI agent. Add Simple Memory to maintain short conversational context.
Go Live
Activate the workflow. Send a message or voice note to your bot. Get instant replies from your personal AI assistant. 🚀
🛡️ Requirements:
n8n (self-hosted or cloud) Telegram Bot API key OpenAI API key (for GPT-4.1-mini) Basic understanding of n8n nodes and connections
🌟 Why Use This Workflow:
✅ Hands-free experience: Just talk or type. 🧠 AI-powered responses: Natural language understanding with GPT. ⚡ Real-time interaction: Fast replies via Telegram. 🔁 Memory-aware conversations: Feels more human. 🧩 Modular design: Easily extend to other AI tools or platforms.
Related Templates
Reply to Outlook Emails with OpenAI
Who is this template for? This template is for any Microsoft Outlook user who wants a trained AI agent to reason and rep...
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments