Telegram Bot Starter Template Setup & AI Agent Chatbot
## Telegram Bot Starter Template Workflow + n8n AI Agent Chatbot
Provides a foundational setup for creating powerful Telegram bots with n8n. It handles incoming messages, photos, files, and voice notes, making it an excellent starting point for developers looking to create bots for customer engagement, support, or interactive services.
[Sign up to n8n now](https://n8n.partnerlinks.io/u4hgi2j8tqnr) and try it!
## Key Features:
- Dynamic Message Handling: Respond to text messages, photos, files, and more.
- Modular Design: Easily integrate additional workflows such as user registration, payment modules, or custom commands.
- Error Handling: Ensure the bot gracefully manages errors and user inputs.
## Extensibility:
This workflow is the base for building any Telegram bot. Additional modules, such as a user registration module, payment integration, and user profile management, are available for easy connection to expand the bot's functionality.
- [Use the Telegram user registration workflow](https://viktorgubanov.gumroad.com/l/n8n-telegram-payment-workflow-stars)
- [Use the Telegram Payment, Invoicing and Refund Workflow for Stars](https://viktorgubanov.gumroad.com/l/n8n-telegram-payment-workflow-stars)
## Who Can Use This Workflow?
- Developers looking for a quick way to build and customize Telegram bots.
- Businesses and service providers who need customer interaction automation.
## Setup Instructions:
1. Replace Telegram credentials with your own API credentials.
2. Customize responses for different message types (text, photo, file).
3. If integrating with external services (like Google Sheets), update the necessary credentials and links.
## UPDATES:
[Get the most up-to-date and expanded version](https://viktorgubanov.gumroad.com/l/telegram-bot-starter-template)
**June 25**:
- New! AI Agent + Setup Instructions
- Simple setup instructions and examples are included inside the workflow as sticky notes.
**Sep 24**:
- Improved message handler: Updated logic to handle various types of messages using Switch (text, photo, file, voice, and callback).
- Payment processing: Added new nodes for sending invoices and handling payments via Telegram
**Aug 24**:
- Changed processing of system events: "new user" and "user who blocked bot" events
Please reach out to [Victor](https://www.linkedin.com/in/gubanovvictor/) if you need further assistance with your n8n workflows and automations! [Sign up to n8n](https://n8n.partnerlinks.io/u4hgi2j8tqnr), you have to try it!
Platform
n8n
Category
AI
Price
Free
Creator
Victor Gold
if
set
switch
telegram
stickyNote
googleSheets
agent
executeWorkflow
telegramTrigger
lmChatOpenAi
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.