Templates / Document-based AI chatbot with RAG, OpenAI and Cohere reranker

Document-based AI chatbot with RAG, OpenAI and Cohere reranker

Ready for 3.0

by Anderson Adelino ✓ · 1,934 views · created 2025-07-25 · Internal Wiki, AI RAG

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 13 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Embeddings OpenAI, Google Drive and Supabase Vector Store and 1 more.

How it runs

Trigger: When a chat message arrives (plus 1 other trigger).

  1. RAG Agent (AI Agent): runs an AI agent, with model: AI Model (OpenAI); 1 tool (Knowledge Base Search); memory: Conversation Memory
  2. Download PDF from Drive (Google Drive): download
  3. Extract PDF Content (Extract from File): extracts data from a file (pdf)
  4. Store in Vector Database (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Document Embeddings; document loader: Process Document Text

Services it uses

OpenAI Chat ModelEmbeddings OpenAIGoogle DriveSupabase Vector StoreReranker Cohere

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

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Build intelligent AI chatbot with RAG and Cohere Reranker Who is it for? This template is perfect for developers, businesses, and automation enthusiasts who…

Excerpt from Anderson Adelino'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.