Developer & DevOps

Process Telegram messages with AI and send intelligent replies

43 nodes 293 152 Automatic trigger
Download

Workflow Description

Automation that receives messages from a Telegram channel, processes them through an advanced AI model (OpenAI), analyzes content and generates contextual responses, then sends them automatically to the user or channel.

How it works

  1. 1.Receive incoming message via Telegram trigger
  2. 2.Process text through LLM chain connected to OpenAI model
  3. 3.Parse and format outputs using structured data parsers
  4. 4.Send formatted reply back to Telegram channel
  5. 5.Handle exceptions and errors in the processing workflow

Use cases

  • Customer support bot answering inquiries automatically on Telegram
  • Process user requests and categorize them by type and priority
  • Generate automatic summaries or translations of long messages
  • Automate answers to frequently asked questions in Telegram groups

Requirements

  • Active OpenAI account with valid API key
  • Telegram bot registered with correct bot token
  • Telegram channel or group for message receipt and sending

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

OpenAI Output Parser Telegram LLM Chain

Details

Trigger Automatic trigger
Nodes 43
Apps 4
Views 293
Downloads 152

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 (43)

/

OpenAI Chat Model

OpenAI

#1

Convert education to HTML

Code

#2

Auto-fixing Output Parser

Output Parser Autofixing

#3

OpenAI Chat Model1

OpenAI

#4

Structured Output Parser

Output Parser Structured

#5

Convert employment history to HTML

Code

#6

Convert projects to HTML

Code

#7

Convert volunteering to HTML

Code

#8

Telegram trigger

Set

#9

Auth

If

#10

No operation (unauthorized)

No Op

#11

Check if start message

If

#12

No operation (start message)

No Op

#13

Get file

Set

#14

Extract text from PDF

Extract From File

#15

Set parsed fileds

Set

#16

Personal info

Set

#17

Technologies

Set

#18

Employment history

Set

#19

Education

Set

#20

Projects

Set

#21

Volunteering

Set

#22

Merge education and employment history

Merge

#23

Merge projects and volunteering

Merge

#24

Merge personal info and technologies

Merge

#25

Merge all

Merge

#26

Set final data

Set

#27

Convert raw to base64

Code

#28

Convert to HTML

Convert To File

#29

Generate plain PDF doc

HTTP Request

#30

Send PDF to the user

Set

#31

Sticky Note

Sticky Note

#32

Sticky Note1

Sticky Note

#33

Sticky Note2

Sticky Note

#34

Sticky Note4

Sticky Note

#35

Sticky Note5

Sticky Note

#36

Parse resume data

LLM Chain

#37

Merge other data

Merge

#38

Sticky Note6

Sticky Note

#39

Sticky Note7

Sticky Note

#40

Sticky Note8

Sticky Note

#41

Sticky Note9

Sticky Note

#42

Sticky Note10

Sticky Note

#43