AI Agents
Connect Telegram with OpenAI
15 nodes
206
136
Automatic trigger
Workflow Description
An automation template that integrates Telegram with OpenAI to create an intelligent agent responding to user messages via a bot. It maintains conversation context in memory and processes requests through advanced OpenAI language models.
How it works
- 1.Receive messages from Telegram using the dedicated trigger
- 2.Process the message and pass it to the OpenAI intelligent agent
- 3.Retain previous conversation context in a temporary buffer memory
- 4.Generate a response through an OpenAI language model
- 5.Send the reply directly to the user via Telegram
Use cases
- Intelligent Telegram bot for answering inquiries and questions
- Automated customer service connected to OpenAI for resolving issues and handling inquiries
Requirements
- Valid API key for OpenAI
- Correct authentication token for the Telegram bot
- Configure memory buffer window size based on the number of messages to retain
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
OpenAI
Memory
Telegram
AI Agent
Details
Trigger
Automatic trigger
Nodes
15
Apps
4
Views
206
Downloads
136
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
Window Buffer Memory
Memory Buffer Window
Correct errors
Set
Listen for incoming events
Set
Download voice file
Set
Combine content and set properties
Set
Send final reply
Set
Send error message
Set
Convert audio to text
OpenAI
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Send Typing action
Set
AI Agent
Agent
Determine content type
Switch