πŸ’¬ RAG chat assistant with Claude, Supabase vector store, and Postgres memory

⚑ 1,473 views Β· πŸ’¬ Support Chatbots

Description

πŸ“Ί Full walkthrough video: https://youtu.be/Z_l_T22px3U

Who it’s for

This workflow is for developers and AI builders who want to deploy a context-aware chat assistant powered by a private knowledge base. It suits teams that need persistent conversation memory and retrieval-augmented generation (RAG) on their own infrastructure.

How it works

  1. The Chat Trigger listens for incoming user messages and forwards them to the AI Agent.
  2. The AI Agent (Claude Sonnet 4) orchestrates the response generation.
  3. Postgres Chat Memory stores and retrieves the conversation history, enabling multi-turn dialogue.
  4. The Supabase Vector Store is queried as a tool to retrieve relevant documents from the knowledge base.
  5. OpenAI Embeddings convert the user query into vectors used for the Supabase similarity search.
  6. Claude synthesizes context from memory and retrieved documents to produce a final response.

How to set up

Requirements

How to customize

πŸ”— Nodes Used

AI Agent, Embeddings OpenAI, Anthropic Chat Model, Supabase Vector Store, Chat Trigger, Postgres Chat Memory

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup