Skip to main content

Voice & text Telegram assistant with GPT-4.1-mini and conversation memory

Workflow preview

Workflow preview
100%
Voice & text Telegram assistant with GPT-4.1-mini and conversation memory preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Personal Productivity automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.set, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.openai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Balakrishnan C.

Original n8n.io source

1.1 Workflow description

Title
Voice & text Telegram assistant with GPT-4.1-mini and conversation memory
Workflow name
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:

  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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 7 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 8 - Get a file

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Transcribe a recording

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - Edit Fields1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note16

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note17

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note18

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Voice & text Telegram assistant with GPT-4.1-mini and conversation memory
Complexity advanced
Nodes 18
Categories Personal Productivity, AI Chatbot
Author Balakrishnan C
Published 21 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9981/9981.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Voice & text Telegram assistant with GPT-4.1-mini and conversation memory do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, AI Chatbot use case.