Process Telegram Messages with OpenAI and Send Automated Replies
Loading workflow…
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
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 (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
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides