This workflow follows the Documentdefaultdataloader → OpenAI Embeddings recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "KB",
"nodes": [
{
"parameters": {
"formTitle": "File Upload",
"formFields": {
"values": [
{
"fieldLabel": "file",
"fieldType": "file",
"acceptFileTypes": ".pdf",
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.formTrigger",
"typeVersion": 2.3,
"position": [
0,
0
],
"id": "155f12b9-08fd-458e-926e-5bb36b974e59",
"name": "On form submission"
},
{
"parameters": {
"mode": "insert",
"tableName": {
"__rl": true,
"value": "documents",
"mode": "list",
"cachedResultName": "documents"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1.3,
"position": [
208,
0
],
"id": "b92f752c-efed-4062-817a-0d2e0adf231d",
"name": "Supabase Vector Store",
"credentials": {
"supabaseApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
112,
192
],
"id": "76f4fd85-22e2-462f-8384-33c62ac73bcc",
"name": "Embeddings OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"dataType": "binary",
"textSplittingMode": "custom",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1.1,
"position": [
352,
208
],
"id": "f94518a3-1c3c-43b3-8afc-c0b4f342c6cc",
"name": "Default Data Loader"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"typeVersion": 1,
"position": [
352,
416
],
"id": "6bc9172e-a697-4f03-b452-32506ea0b45c",
"name": "Recursive Character Text Splitter"
}
],
"connections": {
"On form submission": {
"main": [
[
{
"node": "Supabase Vector Store",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Supabase Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Supabase Vector Store",
"type": "ai_document",
"index": 0
}
]
]
},
"Recursive Character Text Splitter": {
"ai_textSplitter": [
[
{
"node": "Default Data Loader",
"type": "ai_textSplitter",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "385f9a79-cb80-4da1-b956-cacaee7865d9",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "TekIKptVLsLJw55E",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApisupabaseApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
KB. Uses formTrigger, vectorStoreSupabase, embeddingsOpenAi, documentDefaultDataLoader. Event-driven trigger; 5 nodes.
Source: https://github.com/umair842/ghl-n8n-ai-lead-automation-laverton/blob/70ea6cb9b5e8acd1a52dc4d736eb4ec8740049a4/workflows/0-KB.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
An AI-powered sales agent on WhatsApp that handles product inquiries using your Supabase knowledge base and n8n catalog. Customers can send text, voice notes, or images to ask about products, pricing,
Learn your voice. Generate posts that sound like you — not AI.
Firecrawl RAG. Uses embeddingsOpenAi, vectorStoreSupabase, lmChatOpenAi, agent. Event-driven trigger; 13 nodes.
SupaBase. Uses manualTrigger, googleDrive, vectorStoreSupabase, documentDefaultDataLoader. Event-driven trigger; 6 nodes.
Your AI workforce is ready. Are you?