Connect Telegram with OpenAI
Workflow Description
An automation template that connects Telegram with OpenAI to create an intelligent agent that receives user messages and processes them using AI models, while maintaining conversation context and executing requested tasks automatically.
How it works
- 1.Enable Telegram trigger to receive incoming messages
- 2.Route messages through an AI agent connected to OpenAI's language model
- 3.Maintain conversation memory and context between interactions
- 4.Execute tasks and commands through specialized tools integrated in the workflow
- 5.Send responses and results back to users via Telegram
Use cases
- Build a conversational AI assistant on Telegram that answers questions and provides analysis
- Automate customer support and inquiry handling directly in Telegram
- Create a context-aware bot that remembers past interactions and conversation history
Requirements
- Active Telegram account with registered bot token
- Valid API key for OpenAI service
- Access to configure memory and agent nodes 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 (21)
Incoming Message
Set
MCP Server Trigger
Mcp Trigger
AI Agent
Agent
MCP Client
Mcp Client Tool
OpenAI Chat Model
OpenAI
Simple Memory
Memory Buffer Window
chatInput
Set
create_todays_task
Google Tasks Tool
chatOutput
Set
sendMessage
Set
create_upcoming_task
Google Tasks Tool
complete_task
Google Tasks Tool
get_todays_tasks
Google Tasks Tool
get_upcoming_tasks
Google Tasks Tool
Switch
Switch
audio_id
Set
download_audio
Set
transcribeAudio
OpenAI
audioInput
Set
Sticky Note
Sticky Note
Sticky Note1
Sticky Note