Templates / Chat with PDF, CSV, and JSON documents using Google Gemini RAG

Chat with PDF, CSV, and JSON documents using Google Gemini RAG

Ready for 3.0

by Md Khalid Ali · 796 views · created 2026-02-21 · Document Extraction, 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 11 nodes and runs when someone submits an n8n form (“Document Upload for Knowledge Base”) (plus 1 other trigger). Along the way it connects Embeddings Google Gemini and Google Gemini Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Document Upload for Knowledge Base”) (plus 1 other trigger).

  1. Add Metadata (Edit Fields (Set)): sets 3 fields: filename, fileType, uploadDate
  2. Knowledge Base Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Vector Store Retrieve); memory: Chat Memory
  3. Vector Store Insert (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embeddings Google Gemini; document loader: Document Loader

Services it uses

Embeddings Google GeminiGoogle Gemini Chat Model

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

From the author

Overview Turn documents into an AI-powered knowledge base. Upload PDF, CSV, or JSON files and ask natural-language questions about their content using a Retrieval-Augmented Generation (RAG) workflow powered by Google Gemini. The workflow extracts, embeds, and…

Excerpt from Md Khalid Ali'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.