Templates / Provide academic OCR and RAG answers on Telegram with Gemini, GPT-4 mini and Supabase

Provide academic OCR and RAG answers on Telegram with Gemini, GPT-4 mini and Supabase

Ready for 3.0

by Rayan Koemi Karuby · 76 views · created 2026-05-09 · 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 28 nodes and runs on Google Drive events (file created) (plus 2 other triggers). Along the way it connects Telegram, Google Sheets, OpenAI Chat Model and Google Drive and 5 more.

How it runs

Trigger: On Google Drive events (file created) (plus 2 other triggers).

  1. Download file (Google Drive): download
  2. Get many rows (Supabase): get many
  3. Switch: routes items into 4 branches
  4. Supabase Vector Store: stores documents in the Supabase vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  5. Append or update row in sheet (Google Sheets): append or update
  6. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Supabase Vector Store); memory: Postgres Chat Memory
  7. from File (Extract from File): extracts data from a file (binary to propery)
  8. Telegram: uses Telegram
  9. Get row(s) in sheet (Google Sheets): uses Google Sheets
  10. Send a text message (Telegram): uses Telegram

…plus 7 more steps. See the full node list below.

Services it uses

TelegramGoogle SheetsOpenAI Chat ModelGoogle DriveEmbeddings OpenAISupabase Vector StoreSupabasePostgres Chat MemoryEmbeddings Hugging Face Inference

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 (19)

From the author

🛠️ How It Works: System Architecture Workflow ini bekerja melalui empat lapisan proses utama yang terintegrasi secara otomatis: 1. Input Processing & Routing Telegram Trigger: Menangkap setiap pesan masuk dari mahasiswa. Smart Routing (Switch): Node Switch…

Excerpt from Rayan Koemi Karuby'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.