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": "Add Google Drive File to Vector DB Webhook",
"nodes": [
{
"parameters": {},
"id": "62e355b9-f29e-4542-bc69-0862451611b5",
"name": "Execute Workflow Trigger",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1,
"position": [
720,
300
]
},
{
"parameters": {
"method": "POST",
"url": "https://n8n.yoururl.com/webhook/add_doc_to_vector_db",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "query",
"value": "={{ $json.query.query }}"
}
]
},
"options": {}
},
"id": "41af8ec1-258f-43dd-82ad-be28b323d83b",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
940,
300
],
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Execute Workflow Trigger": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "a117a9b8-1c53-4548-b9cd-1f776f61b798",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "VYQ5kVPM57CJavof",
"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.
httpHeaderAuth
About this workflow
Add Google Drive File to Vector DB Webhook. Uses executeWorkflowTrigger, httpRequest. Event-driven trigger; 2 nodes.
Source: https://github.com/daboi2331/ai-agents-masterclass/blob/main/9-n8n-rag-agent/n8n_Workflow_Add_Google_Drive_File_to_Vector_DB_Webhook.json — original creator credit. Request a take-down →