Answer Telegram messages with GPT-5, Perplexity, Wikipedia, and memory
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 11 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model, Perplexity and Wikipedia.
How it runs
Trigger: On Telegram events (message).
- Configuration (Edit Fields (Set)): sets 5 fields: system_prompt, openai_model, perplexity_model…
- Has Text Message (Filter): keeps only the items that match a condition
- Conversational Assistant (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 4 tools (Think, Wikipedia, Calculator, Search the web with Perplexity); memory: Simple Memory
- Send Reply (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Perplexity Tool
n8n-nodes-base.perplexityTool - Wikipedia
@n8n/n8n-nodes-langchain.toolWikipedia - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow turns a Telegram bot into a conversational assistant that answers incoming chat messages using an OpenAI chat model, with optional tool use for Perplexity web search, Wikipedia lookups, and calculations, while keeping short-term…