Skip to main content

Answer voice queries from a webhook over Google Drive docs using GPT-4o-mini and Supabase

Workflow preview

Workflow preview
100%
Answer voice queries from a webhook over Google Drive docs using GPT-4o-mini and Supabase preview
Open on n8n.io

1. Workflow Overview

Quick overview Placetel AI – RAG Voice Assistant with Google Drive & Supabase How it works 1. Runs on a daily schedule at 02:00 or via manual start to reindex documents. 2. Lists files from a speci...

Best for

  • Internal Wiki automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.documentdefaultdataloader

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Placetel.

Original n8n.io source

1.1 Workflow description

Title
Answer voice queries from a webhook over Google Drive docs using GPT-4o-mini and Supabase
Workflow name
Answer voice queries from a webhook over Google Drive docs using GPT-4o-mini and Supabase

Quick overview

Placetel AI – RAG Voice Assistant with Google Drive & Supabase

How it works

  1. Runs on a daily schedule at 02:00 or via manual start to reindex documents.
  2. Lists files from a specified Google Drive folder and iterates through each file.
  3. Downloads each Google Drive file, loads its text content, creates embeddings with OpenAI, and stores the resulting chunks in a Supabase vector table.
  4. Receives a question via a POST webhook with a JSON body containing chatInput.
  5. Generates an answer with GPT-4o-mini by semantically retrieving relevant passages from the Supabase vector store using the same OpenAI embeddings model.
  6. Returns the generated, source-cited response to the webhook caller for voice output.

Setup

  1. Add Google Drive OAuth2 credentials and replace DEINE_ORDNER_ID in the Drive query with the folder you want to index.
  2. Add an OpenAI API credential and ensure the same embeddings model/settings are used for both indexing and querying.
  3. Create/configure a Supabase project with a documents table and the match_documents RPC/query used for vector search, then add your Supabase credentials.
  4. Copy the webhook URL from the webhook trigger and configure your calling system to POST { "chatInput": "..." } to it.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Täglich 02:00 Uhr – Auto-Reindex

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 7 - Manueller Start – Reindex

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 8 - Google Drive – Dateien auflisten

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 9 - Datei-IDs extrahieren

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Loop – Jede Datei

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 11 - Google Drive – Datei herunterladen

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 12 - Text Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1.1

Block 13 - OpenAI Embeddings – Indexierung

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 14 - Supabase – Chunks speichern

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreSupabase - vectorStoreSupabase
Config choices
Version 1.3

Block 15 - Webhook – Frage empfangen

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 16 - RAG – Antwort generieren

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 17 - GPT-4o-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 18 - Supabase – Wissensdatenbank

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreSupabase - vectorStoreSupabase
Config choices
Version 1.3

Block 19 - OpenAI Embeddings – Abfrage

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 20 - Webhook – Antwort zurückgeben

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

3. Summary Table

Workflow Answer voice queries from a webhook over Google Drive docs using GPT-4o-mini and Supabase
Complexity advanced
Nodes 20
Categories Internal Wiki, AI RAG
Author Placetel
Published 05 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16136/16136.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Answer voice queries from a webhook over Google Drive docs using GPT-4o-mini and Supabase do?

Quick overview Placetel AI – RAG Voice Assistant with Google Drive & Supabase How it works 1. Runs on a daily schedule at 02:00 or via manual start to reindex documents. 2. Lists files from a speci...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, AI RAG use case.