Connect OpenAI with Telegram
Workflow Description
Automated system connecting OpenAI with Telegram via scheduled triggers. Processes incoming messages through AI models, splits lengthy responses for clarity, and sends intelligent replies automatically to maintain continuous conversation monitoring.
How it works
- 1.Execute the workflow at scheduled intervals using the scheduled trigger
- 2.Receive incoming messages from Telegram channels or groups
- 3.Process text through OpenAI LLM Chain for intelligent analysis and generation
- 4.Split long-form responses using recursive text splitting for readability
- 5.Send processed responses directly back to Telegram conversations
Use cases
- Deploy an intelligent customer support bot answering queries automatically on Telegram
- Generate daily conversation summaries and broadcast them to designated channels
- Process and categorize customer inquiries, then deliver targeted responses
Requirements
- Valid OpenAI API key with sufficient credits and model access
- Active Telegram bot with authentication token and send/receive permissions
- Stable internet connection for reliable message delivery at scheduled times
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 (15)
OpenAI Chat Model
OpenAI
OpenAI Chat Model1
OpenAI
Schedule Trigger
Schedule Trigger
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
OpenAI Chat Model2
OpenAI
Create a Prompt for DALL-E
Chain Summarization
Generate an Image for the Story
OpenAI
Generate Audio for the Story
OpenAI
Send the Story To Channel
Set
Send Image to the Channel
Set
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Translate the Story to Arabic
Chain Summarization
Send Audio to the Channel
Set
Create a Story for Kids
Chain Summarization