👉 n8n No Limits Access :

https://www.hostg.xyz/SHHAd

Hébergement VPS n8n | Automatisation sécurisée et évolutive

coupon -15% : DRFIRAS15

👉 Formation n8n en Français

Formation n8n en Français : Automatisation & Agents IA

coupon -20% : LANCEMENT : HERE


Intro

This workflow turns a Telegram bot into a general-purpose conversational AI assistant. Every message is answered by an AI Agent (GPT-5) with access to 4 tools: real-time web search (Perplexity), Wikipedia, a calculator, and an internal reasoning tool. Each Telegram chat keeps its own short-term memory.

Flow diagram:

Telegram Trigger -> Configuration -> Has Text Message (Filter) -> Conversational Assistant (AI Agent) -> Send Reply
                                                                        |-- OpenAI Chat Model (GPT-5)
                                                                        |-- Simple Memory (Per Chat)
                                                                        |-- Search the web with Perplexity (tool)
                                                                        |-- Wikipedia (tool)
                                                                        |-- Calculator (tool)
                                                                        |-- Think (tool)

Prerequisites & Credentials

  1. n8n version: 1.90.0 or later (AI Agent v3.1, Perplexity native node v2).
  2. Telegram bot: create one via @BotFather on Telegram, /newbot, copy the bot token.
  3. OpenAI account: get an API key at platform.openai.com/api-keys.
  4. Perplexity account: get an API key at perplexity.ai/settings/api.

Node-by-node build guide

1. Telegram Trigger