Dynamic RAG AI Agent with Supabase, PostgreSQL, Google Drive in n8n

This quick tutorial shows how to build a dynamic Retrieval-Augmented Generation (RAG) AI agent in n8n that keeps your website product details and organization information always up to date. It uses PostgreSQL and Supabase for vector storage, and Google Drive for managing documents dynamically—add, update, or delete files to instantly refresh your knowledge base.

Project Objective

The goal is to create a smart RAG agent that pulls accurate, real-time context from your dynamic knowledge base. It updates product and company details automatically whenever files change in Google Drive—no manual updates needed.

Workflow Overview

Key Features

Use Cases

Results

With Supabase, PostgreSQL, Google Drive, and OpenAI running in n8n, this agent can update your website knowledge base automatically—add new product details, modify existing info, or remove outdated data without any backend code changes.