Templates / Turn Telegram into an AI assistant with OpenAI voice, memory and tools

Turn Telegram into an AI assistant with OpenAI voice, memory and tools

Ready for 3.0

by Stefan Joulien ✓ · 712 views · created 2026-02-27 · Personal Productivity, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

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

How it runs

Trigger: On Telegram events (message).

  1. If: checks a condition and branches into true / false
  2. Edit Fields (Edit Fields (Set)): sets 9 fields: chat_id, mensaje.texto, mensaje.audio.file_id…
  3. Switch: routes items into 2 branches
  4. Get a file (Telegram): work with file
  5. Text Message (Edit Fields (Set)): sets 1 field: texto
  6. OpenAI: transcribe (audio)
  7. Clean Message (Code): runs custom JavaScript code
  8. audio message (Edit Fields (Set)): sets 1 field: mensaje
  9. final message (Edit Fields (Set)): sets 3 fields: mensaje_final, chat_id, timestamp
  10. Lucy (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 6 tools (Think, Calculator, Email Agent, ContactAgent…); memory: Simple Memory

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

Services it uses

TelegramOpenAIOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (18)

From the author

Who this template is for This workflow is for users who want to turn Telegram into a personal AI-powered assistant capable of handling everyday tasks through natural language. It's ideal for solo founders, operators, or professionals who want to manage…

Excerpt from Stefan Joulien'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.