Developer & DevOps
Process Telegram Messages with OpenAI and Send Automated Replies
16 nodes
352
195
Automatic trigger
Workflow Description
Automation that listens for new messages in a Telegram channel, processes them through OpenAI's language model, and sends intelligent replies back to users. Distinguishes between message types and routes them according to content.
How it works
- 1.Capture incoming messages from the specified Telegram channel or bot
- 2.Evaluate message type and categorize based on content
- 3.Submit the message to OpenAI for processing and obtain an intelligent response
- 4.Format and refine the response according to application requirements
- 5.Deliver the final reply to the user via Telegram
Use cases
- Intelligent Telegram bot that answers user questions without manual intervention
- Automated customer inquiry handling with consistent, AI-generated responses
- 24/7 support tool that manages questions in Telegram groups and channels
Requirements
- Active Telegram account with a channel or group that has bot administration permissions
- Valid OpenAI API key (compatible with gpt-3.5 or newer models)
- Telegram credentials configured in n8n
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Telegram
OpenAI
Details
Trigger
Automatic trigger
Nodes
16
Apps
2
Views
352
Downloads
195
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 (16)
/
Telegram Trigger
Set
CheckCommand
Switch
Sticky Note
Sticky Note
Settings
Set
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Chat_mode
OpenAI
Greeting
OpenAI
Text reply
Set
Send Typing action
Set
Merge
Merge
Sticky Note3
Sticky Note
Create an image
OpenAI
Send error message
Set
Send image
Set
PreProcessing
Set