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": "pd_automacao_n8n_fluxo_rag",
"nodes": [
{
"parameters": {
"operation": "download",
"fileId": {
"__rl": true,
"value": "1nSDfKFNjIb5adTQxpL8XLLoHZtWHdOwn",
"mode": "list",
"cachedResultName": "Intelig\u00eancia_artificial.pdf",
"cachedResultUrl": "https://drive.google.com/file/d/1nSDfKFNjIb5adTQxpL8XLLoHZtWHdOwn/view?usp=drivesdk"
},
"options": {
"googleFileConversion": {
"conversion": {
"docsToFormat": "application/pdf"
}
},
"fileName": "dados.pdf"
}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
96,
-32
],
"id": "ae1c9b95-5f19-4ee2-9520-4ce24fc33985",
"name": "Download file",
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"dataType": "binary",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1.1,
"position": [
464,
128
],
"id": "41f2fcd3-7283-444a-83f5-c4ee7ca6d8b1",
"name": "Default Data Loader"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
256,
128
],
"id": "95d7e0b2-334d-430b-8ead-166c065194d8",
"name": "Embeddings OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"mode": "insert",
"tableName": {
"__rl": true,
"value": "documents",
"mode": "list",
"cachedResultName": "documents"
},
"options": {
"queryName": "match_documents"
}
},
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1.3,
"position": [
304,
-32
],
"id": "1e84b180-76d2-4d99-a4f6-2b6d1a465fab",
"name": "Supabase Vector Store - inclus\u00e3o de arquivo",
"credentials": {
"supabaseApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"mode": "retrieve-as-tool",
"toolDescription": "Get the data from the Intelig\u00eancia Artificial data file. If you did not find the answear in the data file, answear: \"Desculpe, eu n\u00e3o encontrei a informa\u00e7\u00e3o solicitada na base de dados!\"",
"tableName": {
"__rl": true,
"value": "new_vector",
"mode": "list",
"cachedResultName": "new_vector"
},
"options": {
"queryName": "match_new_vector"
}
},
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1.3,
"position": [
-224,
-96
],
"id": "dd5fd601-3dc1-4547-939a-7e2145147910",
"name": "Supabase Vector Store - busca no arquivo",
"credentials": {
"supabaseApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"path": "0ae7788b-5830-4509-be59-bd9ac13b95cf"
},
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"typeVersion": 2,
"position": [
-464,
-304
],
"id": "6a1d530d-08a6-4a35-ad47-b18df67ce34c",
"name": "MCP Server Trigger"
}
],
"connections": {
"Download file": {
"main": [
[
{
"node": "Supabase Vector Store - inclus\u00e3o de arquivo",
"type": "main",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Supabase Vector Store - inclus\u00e3o de arquivo",
"type": "ai_document",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Supabase Vector Store - inclus\u00e3o de arquivo",
"type": "ai_embedding",
"index": 0
},
{
"node": "Supabase Vector Store - busca no arquivo",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Supabase Vector Store - busca no arquivo": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate",
"availableInMCP": true
},
"versionId": "8e3d8c7e-d451-49fe-ab30-345033886b6d",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "BtykW5DcCytnQJR0",
"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.
googleDriveOAuth2ApiopenAiApisupabaseApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
pd_automacao_n8n_fluxo_rag. Uses googleDrive, documentDefaultDataLoader, embeddingsOpenAi, vectorStoreSupabase. Event-driven trigger; 6 nodes.
Source: https://github.com/kleberga/pd_automacao_n8n/blob/c295aae25a4598d3089c2da67d1fec1984366b02/pd_automacao_n8n_fluxo_rag.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.
Your AI workforce is ready. Are you?
ingest_RAG. Uses googleDrive, vectorStoreSupabase, embeddingsOpenAi, documentDefaultDataLoader. Event-driven trigger; 9 nodes.
Upload Brochures to Supabase (Manual Trigger). Uses googleDrive, vectorStoreSupabase, embeddingsOpenAi, documentDefaultDataLoader. Event-driven trigger; 8 nodes.
SupaBase. Uses manualTrigger, googleDrive, vectorStoreSupabase, documentDefaultDataLoader. Event-driven trigger; 6 nodes.
RAG_Ingest. Uses httpRequest, vectorStoreSupabase, documentDefaultDataLoader, textSplitterRecursiveCharacterTextSplitter. Event-driven trigger; 73 nodes.