Setting up Telegram Bot and n8n AI Agent integration
Press play on the video. It'll jump straight to the section that answers the
title above — no need to watch the full video.
A step-by-step guide to building a Telegram bot using BotFather and connecting it to an n8n workflow for basic AI communication.
The Importance of Session ID
Make sure to use the 'From ID' from Telegram as the Session ID in the Memory node. Otherwise, the AI will 'forget' the context of the previous conversation every time you send a new message.
Branding Clean-up
Always disable 'Append n8n Attribution' in the Telegram node settings if you want your bot messages to look more professional without the 'Powered by n8n' footer.
More from Build & Deploy Autonomous AI Agents
View All
None
n8n
Analyzing Local Business Markets with n8n Google Maps Scraper
n8n
Google Maps
Connect n8n to Remote Server using SSH Node
n8n
Maintain Conversation History in n8n with Claude Code Session IDs
Claude
n8n
Set up your own n8n server on Hostinger—hassle-free
n8n
Hostinger
Setting Up a Telegram Bot and Webhook for Make.com Integration
Telegram
Make