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": "RAG Knowledge Base Example",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "knowledge-base",
"responseMode": "responseNode"
},
"id": "82c1db33-aacc-4892-8071-87dd1c56a5ab",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"operation": "store",
"inputField": "text",
"sourceField": "source",
"chunkingStrategy": "sentence",
"chunkSize": 1000,
"overlap": 200,
"generateEmbeddings": true,
"embeddingProvider": "openai",
"embeddingModel": "text-embedding-ada-002",
"vectorStoreProvider": "qdrant",
"vectorStoreEndpoint": "http://localhost:6333",
"collectionName": "knowledge_base"
},
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "RAG Knowledge Base",
"type": "n8n-nodes-rag.ragKnowledgeBase",
"typeVersion": 1,
"position": [
460,
300
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ JSON.stringify($json) }}"
},
"id": "b2c3d4e5-f6g7-8901-bcde-f23456789012",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
680,
300
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "RAG Knowledge Base",
"type": "main",
"index": 0
}
]
]
},
"RAG Knowledge Base": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "c3d4e5f6-g7h8-9012-cdef-345678901234",
"id": "d4e5f6g7-h8i9-0123-defg-456789012345",
"tags": []
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
RAG Knowledge Base Example. Uses n8n-nodes-rag. Webhook trigger; 3 nodes.
Source: https://github.com/QixYuanmeng/n8n-nodes-rag/blob/60ee03ac41aa943c4eea8f659bf528e5f1893109/examples/knowledge-base-workflow.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.
RAG Retrieval Example. Uses n8n-nodes-rag. Webhook trigger; 3 nodes.
Generate Text-To-Speech Using Elevenlabs Via Api. Uses respondToWebhook, httpRequest, stickyNote. Webhook trigger; 6 nodes.
WhatsApp → OpenAI (FastAPI). Uses httpRequest. Webhook trigger; 5 nodes.
AI Q&A Bot (Webhook → Anthropic Claude → Slack + Google Sheets). Uses httpRequest, googleSheets, slack. Webhook trigger; 5 nodes.
Get Postgres Tables. Uses respondToWebhook, postgres, summarize. Webhook trigger; 4 nodes.