Receive Telegram messages and execute custom logic
Workflow Description
An automation template that captures incoming Telegram messages and processes them programmatically. It routes messages based on conditions, executes custom code, makes HTTP requests to external services, and sends instant replies back through Telegram.
How it works
- 1.Capture incoming messages from Telegram using the dedicated trigger node
- 2.Parse and analyze message content with custom code processing
- 3.Route the message to the appropriate action based on defined conditions
- 4.Send HTTP requests to external APIs or services when needed
- 5.Send an automated response back to the user via Telegram
Use cases
- Interactive bot that accepts user commands and executes them automatically
- Real-time notifications sent to a group or channel when specific events occur
- Data collection from Telegram that forwards information to external systems for further processing
Requirements
- Active Telegram account with a registered bot and API token
- Basic understanding of JSON format and HTTP request methods
- Access to external APIs if integrating with third-party services
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (29)
Telegram Trigger
Set
Code
Code
HTTP Request3
HTTP Request
Telegram2
Set
Telegram1
Set
Telegram4
Set
Telegram3
Set
Telegram5
Set
Telegram6
Set
Telegram7
Set
NeurochainAI - REST API
HTTP Request
TYPING - ACTION
Set
AI Response
Set
No response
Set
Prompt too short
Set
Sticky Note
Sticky Note
Switch2
Switch
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Code1
Code
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Switch
Switch
Sticky Note8
Sticky Note
NeurochainAI - Flux
HTTP Request
Switch1
Switch