Templates / Reply to Telegram text and voice messages with an OpenAI GPT-4o-mini chatbot and memory

Reply to Telegram text and voice messages with an OpenAI GPT-4o-mini chatbot and memory

Needs changes

by TakatoYamada ✓ · 337 views · created 2026-05-30 · Support Chatbot, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI, OpenAI Chat Model and Wikipedia and 1 more.

How it runs

Trigger: On Telegram events (message).

  1. If: checks a condition and branches into true / false
  2. Download Telegram Voice (Telegram): work with file
  3. AI Conversation Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (Perform Calculations, Fetch Information from Wikipedia); memory: Manage Conversation Memory
  4. Transcribe Voice with OpenAI (OpenAI): transcribe (audio)
  5. Send Response via Telegram (Telegram): uses Telegram
  6. Append Log to Sheets (Google Sheets): append

Services it uses

TelegramOpenAIOpenAI Chat ModelWikipediaGoogle Sheets

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Conversation Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Conversation Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

Quick Overview This workflow listens for incoming Telegram messages, sends each message to an OpenAI chat model via an AI agent with per-chat memory, and replies in the same Telegram conversation with a concise, language-matched response. How it works 1.…

Excerpt from TakatoYamada's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.