Back to Templates

Voice & Text Telegram Assistant with GPT-4.1-mini and Conversation Memory

Created by

Created by: Balakrishnan C || balakrishnandevops

Balakrishnan C

Last update

Last update 18 hours ago

Share


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:

  1. 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.
  1. OpenAI Setup
  1. 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.
  1. 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.