Skip to content

Selected WorkProject 06AI Systems

RAG-PoweredClinic Assistant.

A retrieval-augmented assistant that answers clinic questions from a document knowledge base.

Clinic documents in Google Drive are embedded into a Supabase vector store, and an AI agent answers questions using that knowledge.

  • n8n
  • Supabase Vector Store
  • Google Vertex AI
  • Google Drive

06Project
of 15

Project overview
Context
Clinic front desk
Domain
Retrieval-augmented AI
Scope
Questions answered from clinic documents
Status
Workflow built in n8n

01The Challenge

The same questions, again and again.

Clinic front desks answer the same questions about services and appointments again and again.

The goal

Answer from the clinic’s own documents, with a knowledge base that stays current.

The RAG workflow in n8n: the chat agent above, the Google Drive knowledge-base sync below.

02The Assistant

A chat agent and a self-updating knowledge base.

A retrieval-augmented assistant in n8n that answers from the clinic’s own documents, backed by a Supabase vector knowledge base synced from Google Drive.

Assistant spec

Chat
AI agent on a Google Vertex chat model
Knowledge
Supabase vector store
Sync
Watched Drive folder: new, updated and deleted files

03How It Works

Ask, retrieve, answer. Stay current.

Two branches in one workflow: answering, and keeping the knowledge current.

  1. Ask

    A chat message reaches the AI agent.

    Trigger
  2. Retrieve

    The agent searches the Supabase vector store for relevant passages.

    Retrieval
  3. Answer

    It answers from the passages it retrieved, on a Google Vertex chat model.

    AI
  4. Stay current

    New Drive files are embedded with Google Vertex and stored; updated files replace their entries; deleted files are removed.

    Automatic

04Architecture

One knowledge base. Read on one side, kept current on the other.

The answering branch reads the vector store; the sync branch writes to it whenever the Drive folder changes.

  1. 01Capture

    • AnsweringChat message
    • SyncDrive folder: new, updated, deleted
  2. 02Process

    • AI · Vertex chat modelAI agent
    • Vertex embeddingsDownload and embed
  3. 03Knowledge

    • Searchable knowledge baseSupabase vector store
  4. 04Deliver

    • AnsweringAnswer from retrieved passages
    • SyncKnowledge base kept current
  • Workflow step

Answering and syncing run as two branches around the same Supabase vector store.

05Validation & Controls

Answers from the clinic’s own documents.

The agent answers from retrieved passages, and the knowledge base follows the source folder.

Implementation statusBuilt in n8n

  • Chat agent (Google Vertex)Built
  • Vector store retrieval (Supabase)Built
  • Drive sync: new, updated, deletedBuilt

How the knowledge stays trustworthy

Source
Only documents in the watched Google Drive folder are embedded.
Updates
Updated files replace their earlier entries.
Deletions
Deleted files are removed from the knowledge base.
Answers
The agent answers from passages retrieved from the vector store.

06The Stack

Four tools, one knowledge base.

Roles over logos. Only integrations that exist in the build are listed.

  • n8n

    Chat agent and document-sync workflows

  • Google Vertex AI

    Chat model and document embeddings

  • Supabase Vector Store

    Searchable knowledge base

  • Google Drive

    Source folder for clinic documents

07The Outcome

What the assistant does.

Repeat questions answered from the clinic’s own documents, with a knowledge base that updates as files are added, changed or removed.

Clinic documents in Google Drive are embedded into a Supabase vector store, and an AI agent answers questions using that knowledge.

My role

  • AI Workflow Implementation
  • Knowledge Base Design

Delivered capability

  • Answers questions from the clinic’s own documents
  • Retrieves relevant passages from a Supabase vector store
  • Embeds new Drive files automatically
  • Replaces updated files and removes deleted ones

Contact

Have a workflow, dashboard or CRM that needs fixing? Let’s talk.

Available for new projects

Tell me about the operation, the systems involved and where the work gets stuck. A short call is usually enough to see whether I can help.