This workflow follows the Executecommand → Readwritefile 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": "chromadb-vector-RAG-Local-pipeline",
"nodes": [
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"value": "1dTMnfOST6aeO66pWusEyNPTrTs9dELTy",
"mode": "list",
"cachedResultName": "VA knowledge-base",
"cachedResultUrl": "https://drive.google.com/drive/folders/1dTMnfOST6aeO66pWusEyNPTrTs9dELTy"
},
"event": "fileCreated",
"options": {}
},
"type": "n8n-nodes-base.googleDriveTrigger",
"typeVersion": 1,
"position": [
-336,
-32
],
"id": "b7d05619-6d5d-4619-bb4f-7c4ac0677e74",
"name": "Google Drive Trigger",
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "download",
"fileId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
-160,
-32
],
"id": "e905ba15-130d-44b9-9c9b-7155d715367f",
"name": "Download file",
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "write",
"fileName": "=/home/admirer/rag_pipeline/knowledge-base/{{ $binary.data.fileName }}",
"options": {
"append": false
}
},
"type": "n8n-nodes-base.readWriteFile",
"typeVersion": 1,
"position": [
16,
-32
],
"id": "e484af63-09d4-4e48-990c-c647727ac623",
"name": "Save knowledge to local directory"
},
{
"parameters": {
"command": "=bash -c \"cd /home/admirer/rag_pipeline && source source/bin/activate && python add_data.py '{{ $json.name }}'\""
},
"type": "n8n-nodes-base.executeCommand",
"typeVersion": 1,
"position": [
208,
-32
],
"id": "90d4e2ce-0c9d-4bcd-b807-22cfb8755cf8",
"name": "local Chroma-vector-db"
},
{
"parameters": {
"jsCode": "return items.map(item => {\n const parsed = JSON.parse(item.json.stdout);\n return { json: parsed };\n});"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
400,
-32
],
"id": "c1456720-8dc4-49c6-8f7b-b0c120b0fd32",
"name": "parse-stdout-res"
}
],
"connections": {
"Google Drive Trigger": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
},
"Download file": {
"main": [
[
{
"node": "Save knowledge to local directory",
"type": "main",
"index": 0
}
]
]
},
"Save knowledge to local directory": {
"main": [
[
{
"node": "local Chroma-vector-db",
"type": "main",
"index": 0
}
]
]
},
"local Chroma-vector-db": {
"main": [
[
{
"node": "parse-stdout-res",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "5bc0bf97-abad-4242-8802-95d78fac139d",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "k8t3FJCLCMt6UOp3",
"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.
googleDriveOAuth2Api
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
chromadb-vector-RAG-Local-pipeline. Uses googleDriveTrigger, googleDrive, readWriteFile, executeCommand. Event-driven trigger; 5 nodes.
Source: https://github.com/admirerbrown/AI-chatbot/blob/main/n8n-workflows/chromadb-vector-RAG-Local-pipeline.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.
Agent IA Projet Client. Uses executeWorkflowTrigger, lmChatOpenAi, toolWorkflow, vectorStoreQdrant. Event-driven trigger; 79 nodes.
RAG_Ingest. Uses httpRequest, vectorStoreSupabase, documentDefaultDataLoader, textSplitterRecursiveCharacterTextSplitter. Event-driven trigger; 73 nodes.
This n8n template automatically classifies incoming emails (Sales, Support, Internal, Finance, Promotions) and routes them to a dedicated OpenAI LLM Agent for processing. Depending on the category, th
Automate Outreach Prospect automates finding, enriching, and messaging potential partners (like restaurants, malls, and bars) using Apify Google Maps scraping, Perplexity enrichment, OpenAI LLMs, Goog
Chat with docs - 5minAI New version. Uses httpRequest, documentDefaultDataLoader, textSplitterRecursiveCharacterTextSplitter, embeddingsOpenAi. Event-driven trigger; 62 nodes.