Templates / Telegram chatbot with voice recognition and message batching using OpenAI

Telegram chatbot with voice recognition and message batching using OpenAI

Needs changes

by Kirill Zolygin · 975 views · created 2025-09-05 · 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 26 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI, Google Sheets and Embeddings OpenAI and 2 more.

How it runs

Trigger: On Telegram events (message).

  1. Link Filter (If): checks a condition and branches into true / false
  2. Get Audio File (Telegram): work with file
  3. Pass text message (Edit Fields (Set)): sets 3 fields: processedMessage, sessionId, name
  4. Transcribe a recording (OpenAI): transcribe (audio)
  5. Merge: merges the data from its input branches
  6. Transcript Result (Edit Fields (Set)): sets 3 fields: processedMessage, sessionId, name
  7. Transcript Error Output (Edit Fields (Set)): sets 2 fields: error, sessionId
  8. Edit Fields (Edit Fields (Set)): sets 2 fields: processedMessage, sessionId
  9. Append row in sheet (Google Sheets): append
  10. Get row(s) in sheet (Google Sheets): uses Google Sheets

…plus 11 more steps. See the full node list below.

Services it uses

TelegramOpenAIGoogle SheetsEmbeddings OpenAIOpenAI Chat ModelSupabase Vector Store

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 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 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 (14)

From the author

This Telegram workflow batches rapid-fire messages from the same user into one prompt (20–30s debounce), then sends a single AI reply. It uses two Google Sheets: - Message Retention (date | userid | message) — queues incoming messages. - Message Checkup…

Excerpt from Kirill Zolygin'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.