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": "Convert Document for RAG Ingestion",
"nodes": [
{
"parameters": {
"content": "## Convert Document for RAG Ingestion\n\nAI teams building retrieval-augmented generation pipelines use this recipe to convert source documents into clean markdown that chunks well and produces high-quality embeddings.\n\n**Note:** This workflow uses the Iteration Layer community node (`n8n-nodes-iterationlayer`). Install it via Settings > Community Nodes on self-hosted n8n, or add it directly on n8n Cloud with Verified Community Nodes enabled.",
"height": 280,
"width": 500,
"color": 2
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
200,
40
],
"id": "4dce764c-c876-46e6-b345-073db354eff4",
"name": "Overview"
},
{
"parameters": {
"content": "### Step 1: Convert Document to Markdown\nResource: **Document to Markdown**\n\nConfigure the Document to Markdown parameters below, then connect your credentials.",
"height": 160,
"width": 300,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
475,
100
],
"id": "b8aee214-9501-4c49-b56a-5f00a2bb2f41",
"name": "Step 1 Note"
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
250,
300
],
"id": "641f3a90-4201-4e73-8faa-526100f62954",
"name": "Manual Trigger"
},
{
"parameters": {
"resource": "documentToMarkdown",
"fileInputMode": "url",
"fileName": "product-manual.pdf",
"fileUrl": "https://example.com/docs/product-manual-v3.pdf"
},
"type": "n8n-nodes-iterationlayer.iterationLayer",
"typeVersion": 1,
"position": [
500,
300
],
"id": "2da87e7d-179a-453c-b7ab-2175662c07b6",
"name": "Convert Document to Markdown",
"credentials": {
"iterationLayerApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Manual Trigger": {
"main": [
[
{
"node": "Convert Document to Markdown",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}
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.
iterationLayerApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Convert Document for RAG Ingestion. Uses n8n-nodes-iterationlayer. Event-driven trigger; 4 nodes.
Source: https://github.com/iterationlayer/n8n-nodes-iterationlayer/blob/main/templates/convert-document-for-rag-ingestion.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.
This pipeline is the first part of "Hybrid Search with Qdrant & n8n, Legal AI"*. The second part, "Hybrid Search with Qdrant & n8n, Legal AI: Retrieval", covers retrieval and simple evaluation.*
[1/3 - anomaly detection] [1/2 - KNN classification] Batch upload dataset to Qdrant (crops dataset). Uses manualTrigger, googleCloudStorage, httpRequest, stickyNote. Event-driven trigger; 25 nodes.
[1/3 - anomaly detection] [1/2 - KNN classification] Batch upload dataset to Qdrant (crops dataset). Uses manualTrigger, googleCloudStorage, httpRequest, stickyNote. Event-driven trigger; 25 nodes.
Workflows from the webinar "Build production-ready AI Agents with Qdrant and n8n".
This is the second part of "Hybrid Search with Qdrant & n8n, Legal AI."* The first part, "Indexing", covers preparing and uploading the dataset to Qdrant.*