Templates / Build a Telegram AI assistant with MemMachine, OpenAI, and voice support

Build a Telegram AI assistant with MemMachine, OpenAI, and voice support

Needs changes

by David Olusola ✓ · 494 views · created 2026-01-08 · Personal Productivity, 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 21 nodes and runs when an MCP client calls one of its tools (plus 1 other trigger). Along the way it connects Telegram, OpenAI, Gmail and Google Sheets and 3 more. It also calls host.docker.internal:8080 over HTTP.

How it runs

Trigger: When an MCP client calls one of its tools (plus 1 other trigger).

  1. 2. Message Type (Switch): routes items into 2 branches
  2. 3a. Download Voice (Telegram): work with file
  3. 3d. Extract Text Data (Edit Fields (Set)): sets 5 fields: text, chat_id, user_id…
  4. 3b. Transcribe Voice (OpenAI): transcribe (audio)
  5. Unifier (Code): runs custom JavaScript code
  6. 3c. Extract Voice Data (Edit Fields (Set)): sets 5 fields: text, chat_id, user_id…
  7. 4. Store User Query (HTTP Request): calls host.docker.internal:8080 (POST)
  8. 5. Search Memory (HTTP Request): calls host.docker.internal:8080 (POST)
  9. 6. Format Memory (Code): runs custom JavaScript code
  10. 7. AI Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (MCP Client)

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

Services it uses

TelegramOpenAIGmailGoogle SheetsGoogle CalendarMCP ClientOpenAI Chat Model

HTTP calls to: host.docker.internal:8080

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

Build a Telegram assistant with MemMachine and voice support An AI assistant that NEVER forgets using MemMachine for persistent cross-session memory, with voice transcription support and productivity tools. ⚠️ Important Deployment Note: This workflow is…

Excerpt from David Olusola'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.