Intelligent Telegram Replies with AI Agent and Context Memory
Workflow Description
Automation that receives Telegram messages, processes them through an OpenAI-powered AI agent with conversation history, and sends intelligent responses directly back. Supports HTTP requests and multi-turn interactions efficiently.
How it works
- 1.Capture incoming Telegram message with chat metadata
- 2.Route message to AI agent with contextual memory buffer
- 3.Process requests including external HTTP calls if needed
- 4.Deliver response back to Telegram chat immediately
Use cases
- Customer support bot handling FAQs and common inquiries automatically
- Personal assistant that remembers conversation history and provides tailored information
- Data lookup bot querying external APIs and aggregating results in real-time
Requirements
- Active Telegram account with valid bot token
- OpenAI API key with appropriate permissions
- Telegram group or channel for testing and deployment
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)
When chat message received
Chat Trigger
OpenAI Chat Model
OpenAI
Window Buffer Memory
Memory Buffer Window
Telegram Trigger
Set
Blockchain DEX Screener Insights Agent
Agent
Telegram
Set
Adds SessionId
Set
DexScreener Latest Token Profiles
HTTP Request
DexScreener Latest Boosted Tokens
HTTP Request
DexScreener Top Token Boosts
HTTP Request
DexScreener Search Pairs
HTTP Request
DexScreener Check Orders Paid for Token
HTTP Request
DexScreener Get Pairs by Chain and Pair Address
HTTP Request
DexScreener Token Pools
HTTP Request
DexScreener Pairs by Token Address
HTTP Request