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.

0
Downloads
1
Views
8.03
Quality Score
beginner
Complexity
Author:Balakrishnan C(View Original →)
Created:10/25/2025
Updated:11/26/2025

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments