Collins Opeyemi
Hire me
n8nAI agents
Published October 10, 2026

n8n Telegram AI Assistant: Text and Voice Messages with Memory

n8n Automation Expert | Telegram Bot API, OpenAI, Voice Transcription, AI Agent

Voice messages are transcribed, the agent remembers the chat, and the answer comes back in the same thread.

Text + voicein one Telegram chat
Memoryfollow-ups keep context

Video, 0:32, 4 MB. It only downloads when you press play.

In short

A personal AI assistant that lives in Telegram, built in n8n. Every message is checked as text or voice. Voice messages are downloaded and transcribed with OpenAI, then both kinds go to an AI agent with chat memory, and the answer comes back in the same chat, with a typing indicator while it works. In the demo it explains what it can do, then writes a Python depth-first search on request. The same pattern becomes a team helpdesk, an internal knowledge bot or a client-facing assistant by changing the prompt and adding tools.

Project description

Telegram is where many people already talk all day, which makes it a natural home for an assistant. This n8n workflow turns a Telegram bot into one: it accepts typed or spoken messages, keeps track of the conversation, and answers in the same chat. Voice is treated as a first-class input, so asking out loud while walking works as well as typing at a desk.

Tools & Deliverables

  • Telegram trigger on a dedicated bot, plus a typing indicator so the user can see it is working
  • Switch node that routes each message as text or voice
  • Voice path: file download from Telegram and transcription with OpenAI
  • Separate context steps for typed and transcribed input, both feeding one AI agent
  • OpenAI chat model with simple memory, so follow-up questions keep their context
  • Reply sent back to the same Telegram chat

The problem

  • Switching apps breaks focus. Opening a separate AI tool for every quick question adds friction, especially on a phone.
  • Typing is not always possible. On the move, a voice message is faster, but most bots ignore audio.
  • Bots without memory feel broken. If every message starts from zero, a follow-up like "now do it in Python" makes no sense.
  • Silence looks like failure. Without a typing signal, people resend their message while the model is still working.

Approach

The Telegram trigger fires on every message to the bot. Straight away the workflow sends a typing action, so the user sees the bot is working, and a switch node splits the message into text or voice. Text is passed to the agent as it is. For voice, the workflow fetches the file from Telegram and transcribes it with OpenAI, then hands the transcript to the agent through its own context step.

Both paths meet at one AI agent running on an OpenAI chat model with simple memory. Memory is what turns a chatbot into an assistant: it holds the recent conversation, so a follow-up question, or a request to change something it just wrote, works without repeating the background. The answer is sent back to the same chat.

Solution

The result is an assistant that is always one message away. In the demo it greets the user, explains what it can help with, from questions and writing to code, planning and troubleshooting, and then writes a depth-first search in Python on request, with a short explanation of how it works.

The same workflow is a starting point for more specific bots. Swap the prompt and add tools, and it becomes a helpdesk that answers from company documents, a sales assistant that looks things up in the CRM, or an internal bot that files tasks. Access can be limited to approved Telegram users, and the model can be swapped for Claude, Gemini or a local model without touching the rest of the flow.

FAQ

Does it understand voice messages?

Yes. Voice messages are downloaded from Telegram and transcribed with OpenAI before the agent answers.

Does it remember the conversation?

Yes. Simple memory holds the recent chat, so follow-up questions keep their context.

Can it be limited to my team?

Yes. The workflow can check the sender against a list of approved Telegram users before it answers.

Can it use our own documents or tools?

Yes. The agent node accepts tools, such as a knowledge base lookup, Google Sheets, a CRM or a calendar.

Which AI model does it use?

OpenAI in this build. Claude, Gemini or another chat model can replace it in the agent node.

Related skills and services for this project

n8n workflow development

n8n, n8n automation, n8n expert, n8n developer, n8n specialist, n8n consultant, n8n workflow, n8n workflows, n8n automation expert, n8n AI agent, n8n Telegram, n8n Telegram bot, n8n OpenAI, n8n memory, n8n switch node, n8n self hosted, n8n cloud, n8n error handling, fix n8n workflow, n8n debugging, n8n retainer, build n8n workflow, automate with n8n

Telegram bot development

Telegram bot, Telegram bot development, Telegram AI bot, Telegram chatbot, Telegram AI assistant, Telegram Bot API, Telegram automation, Telegram voice messages, Telegram typing indicator, Telegram webhook, BotFather, private Telegram bot, team Telegram bot, Telegram helpdesk bot, Telegram notifications, Telegram group bot

AI agents and assistants

AI agent, AI agents, AI agent development, AI assistant, personal AI assistant, AI chatbot, AI chatbot development, conversational AI, chat memory, conversation memory, system prompt, prompt engineering, agent tools, OpenAI, OpenAI API, ChatGPT API, GPT, Claude API, Gemini API, local LLM, LLM integration, generative AI, AI productivity tools

Voice and speech to text

voice messages, voice to text, speech to text, audio transcription, OpenAI Whisper, Whisper API, OpenAI transcription, voice assistant, voice enabled chatbot, multimodal chatbot, audio file handling, hands free assistant, dictation automation

Productivity and internal tools

productivity automation, personal productivity, internal tools, internal knowledge bot, team helpdesk, IT helpdesk bot, HR helpdesk bot, coding assistant, writing assistant, research assistant, task capture, notes automation, knowledge base chatbot, document Q and A, RAG chatbot, founder tools, operations assistant

Make.com and other platforms

Make.com, Makecom, Make.com automation, Make.com expert, Make.com Telegram, Make.com OpenAI, n8n vs Make.com, Zapier, Zapier automation, Zapier Telegram, Zapier alternative, Slack bot, Discord bot, WhatsApp bot, Microsoft Teams bot, no code automation, low code automation

API and integration

API integration, REST API, webhook, webhooks, Telegram Bot API, OpenAI API, HTTP request, file download, JSON, data mapping, OAuth, API keys, Google Sheets integration, Notion integration, CRM integration, Google Calendar integration, system integration, SaaS integration

Reliability and security

user allowlist, access control, error handling, retry logic, monitoring, execution history, logging, rate limits, API cost control, credential management, client owned accounts, documentation, handover, Loom walkthrough, maintainable automation, production ready automation, ongoing support, monthly retainer

Industries and business types

founder, solopreneur, consultant, coach, agency, startup, SaaS company, software team, remote team, operations team, customer support team, education, online course creator, community manager, crypto community, ecommerce brand, small business

How clients search for this work

build a Telegram AI bot, Telegram chatbot with ChatGPT, AI assistant in Telegram, Telegram bot that understands voice, n8n Telegram automation expert, personal AI assistant build, AI chatbot developer, AI automation expert, workflow automation, business process automation, fixed price automation, MVP build, long term automation support, ongoing retainer

Work with me

Tell me what is eating your week. I will show you what can run itself.

Send a short message describing the task. I reply within a few hours with an honest view on whether automation fits, which tool is right, and what a clean build looks like.

Top Rated · 95% Job Success

Upwork

Hire me with Upwork's payment protection, verified reviews and milestone billing.

Hire me on Upwork
Level 2 seller · 4.9 from 74+ orders

Fiverr

Prefer a set scope and price? Order a package on Fiverr and we start right away.

Order on Fiverr
Talk it through

Book a call

Prefer to talk? Pick a time on my calendar and walk me through what you want to automate.

Book a call

↑↓ move↵ openmatches your words against my case studies