Templates / Answer Telegram messages with GPT-5, Perplexity, Wikipedia, and memory

Answer Telegram messages with GPT-5, Perplexity, Wikipedia, and memory

Ready for 3.0

by Dr. Firas ✓ · 47 views · created 2026-08-07 · Support Chatbot, AI Chatbot

Ready 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).

  1. Configuration (Edit Fields (Set)): sets 5 fields: system_prompt, openai_model, perplexity_model…
  2. Has Text Message (Filter): keeps only the items that match a condition
  3. 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
  4. Send Reply (Telegram): uses Telegram

Services it uses

TelegramOpenAI Chat ModelPerplexityWikipedia

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)

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…

Excerpt from Dr. Firas's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.