Templates / Create a voice & text Telegram assistant with Lookio RAG and GPT-4.1

Create a voice & text Telegram assistant with Lookio RAG and GPT-4.1

Needs changes

by Guillaume Duvernay ✓ · 383 views · created 2025-10-18 · Support Chatbot, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model and HTTP Request. It also calls api.mistral.ai and api.lookio.app over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. Myself? (If): checks a condition and branches into true / false
  2. Message Router (Switch): routes items into 2 branches
  3. Get Audio File (Telegram): work with file
  4. Prepare message from text (Edit Fields (Set)): sets 1 field: preset_user_message
  5. Mistral transcribe (HTTP Request): calls api.mistral.ai (POST)
  6. Consolidate user message (Edit Fields (Set)): sets 1 field: final_user_message
  7. Prepare message from audio (Edit Fields (Set)): sets 1 field: preset_user_message
  8. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Query knowledge base); memory: Simple Memory
  9. Telegram: uses Telegram

Services it uses

TelegramOpenAI Chat ModelHTTP Request

HTTP calls to: api.mistral.ai, api.lookio.app

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

Create a Telegram bot that answers questions using Retrieval-Augmented Generation (RAG) powered by Lookio and an LLM agent (GPT-4.1). This template handles both text and voice messages (voice transcribed via a Mistral model by default), routes queries through…

Excerpt from Guillaume Duvernay'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.