Developer & DevOps
Connect Telegram with OpenAI
16 nodes
240
155
Automatic trigger
Workflow Description
Automation receives messages from Telegram, sends them to OpenAI for processing, and returns AI-generated responses automatically to the Telegram channel. Supports multiple message handling and efficient response organization.
How it works
- 1.Receive incoming messages from Telegram using trigger node
- 2.Forward message text to OpenAI for analysis or content generation
- 3.Retrieve AI response from OpenAI API
- 4.Send response back to Telegram chat or channel automatically
Use cases
- Intelligent customer support bot that responds to inquiries automatically
- Personal assistant delivering instant answers to user questions in Telegram
- Content generation tool suggesting customized texts or replies
Requirements
- Active Telegram account with permissions to send and receive messages
- OpenAI API key with sufficient credits for operations
- Webhook or polling configuration to receive new messages
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
240
Downloads
155
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