Developer & DevOps

Receive Telegram messages and execute custom logic

29 nodes 309 144 Automatic trigger
Download

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. 1.Capture incoming messages from Telegram using the dedicated trigger node
  2. 2.Parse and analyze message content with custom code processing
  3. 3.Route the message to the appropriate action based on defined conditions
  4. 4.Send HTTP requests to external APIs or services when needed
  5. 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

Telegram

Details

Trigger Automatic trigger
Nodes 29
Apps 1
Views 309
Downloads 144

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (29)

/

Telegram Trigger

Set

#1

Code

Code

#2

HTTP Request3

HTTP Request

#3

Telegram2

Set

#4

Telegram1

Set

#5

Telegram4

Set

#6

Telegram3

Set

#7

Telegram5

Set

#8

Telegram6

Set

#9

Telegram7

Set

#10

NeurochainAI - REST API

HTTP Request

#11

TYPING - ACTION

Set

#12

AI Response

Set

#13

No response

Set

#14

Prompt too short

Set

#15

Sticky Note

Sticky Note

#16

Switch2

Switch

#17

Sticky Note1

Sticky Note

#18

Sticky Note2

Sticky Note

#19

Sticky Note3

Sticky Note

#20

Sticky Note4

Sticky Note

#21

Sticky Note5

Sticky Note

#22

Code1

Code

#23

Sticky Note6

Sticky Note

#24

Sticky Note7

Sticky Note

#25

Switch

Switch

#26

Sticky Note8

Sticky Note

#27

NeurochainAI - Flux

HTTP Request

#28

Switch1

Switch

#29