n8n Telegram AI Bot Starter (Free)

Your own private AI assistant in Telegram, running on your n8n, in about 15 minutes.

n8n Telegram AI Bot Starter (Free) product illustration

What it does

One importable n8n workflow, built and checked against n8n 2.46:

workflows/01-telegram-ai-assistant.json: a private AI assistant in Telegram. It answers text messages with an AI Agent that remembers the last 10 messages per chat, replies to /start, ignores other bots, only answers the user ids you allow, and splits long answers under Telegram's 4096-character limit.

The paid n8n Telegram AI Bot Workflows (https://youraitools.co/marketplace/n8n-telegram-ai-bot-workflows) pack adds a voice-note transcriber, a daily news digest and an approval bot.

The workflow has a Setup sticky note. All logic you might want to change sits in small Code nodes whose source is also in code/ with tests.

What you get

The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 8 tests OK on Python 3.13 and 3.10.

Real terminal output from n8n Telegram AI Bot Starter: demo and passing tests

Import

1. In n8n: Workflows > Import from File and pick a file from workflows/. 2. Create a bot with @BotFather (https://t.me/BotFather) and add its token as a Telegram credential; add an OpenAI credential for the AI nodes (or swap the model node for another chat model). 3. Activate. Telegram triggers need n8n on a public HTTPS URL (n8n Cloud or a self-hosted instance with WEBHOOK_URL set).

One bot, one trigger. Telegram sends each bot's updates to one webhook, so two active workflows with a Telegram Trigger on the same bot token replace each other. Use one bot per workflow.

Tests

./run_tests.sh   # workflow structure, n8nlint --strict, and every Code node run on fixtures with Node.js
./demo.sh        # shows the Code node on sample Telegram updates

Before release the workflow was also checked with n8n's own node definitions (parameters n8n would drop or flag), imported with the n8n 2.46.6 CLI, and run in n8n with the triggers replaced by the sample data: routing and Code nodes ran as expected up to the first node that needs a real credential. The bundled n8nlint (a static checker for n8n workflow files) runs in the tests.

Honest limits

  • The AI can be wrong. The assistant is told not to invent facts, but check anything important.
  • Memory lives in n8n's process memory and resets when n8n restarts; use a Postgres or Redis chat memory node for durable memory.
  • OpenAI usage is billed to your key. Keep the allow-list on so strangers can't use your bot.
  • Not affiliated with Telegram or n8n.

Format and license

Zip, 180 KB, v1.0, 18 files. Free to use, modify and share for any purpose, including commercial work, as long as this notice stays in copies. Not affiliated with or endorsed by Telegram or n8n.

FAQ

Is it really free?
Yes, use it for anything. The AI calls are billed to your own OpenAI key.
Can strangers use my bot?
Not if you put your user id in ALLOWED_USER_IDS (Prepare message node).
What's in the paid pack?
Voice-note transcriber, daily news digest and an approval bot, with tests.
How do I get the files?
Click Download free. The zip downloads straight away: no checkout, no account.
Do I have to sign up for the newsletter?
No. The form is optional and the download works without it.

Get n8n Telegram AI Bot Starter (Free)

Free n8n workflow: private Telegram AI assistant bot with per-chat memory, allow-list and long-message splitting. Checked in n8n 2.46.

Pairs well with

Download$19

n8n Telegram AI Bot Workflows

4 n8n Telegram workflows: AI assistant bot with memory, voice-note transcriber, daily news digest, approval bot. Tested in n8n 2.46. $19.

View n8n Telegram AI Bot Workflows
Download$19

n8n Agent Workflows

6 import-ready n8n workflows: x402 monitor, change alerts, Stripe log, AI digest and more.

View n8n Agent Workflows

Related

1 email a week: new x402 + MCP tools and free kits.

Short weekly digest of new x402 + MCP tools and free kits, including the MCP OAuth Checker. The download above works without signing up. No spam, unsubscribe any time.