This workflow follows the HTTP Request → 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": "RAG - Ingesta Automatizada de Documentos",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 5
}
]
}
},
"id": "trigger-schedule",
"name": "Verificar cada 5 minutos",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
250,
300
]
},
{
"parameters": {
"operation": "list",
"path": "/data/documentos",
"options": {}
},
"id": "list-files",
"name": "Listar archivos en carpeta",
"type": "n8n-nodes-base.readWriteFile",
"typeVersion": 1,
"position": [
470,
300
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "condition-ext",
"leftValue": "={{ $json.fileName }}",
"rightValue": ".pdf",
"operator": {
"type": "string",
"operation": "endsWith"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "filter-docs",
"name": "Filtrar PDF y DOCX",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [
690,
300
]
},
{
"parameters": {
"method": "POST",
"url": "http://api:8000/api/ingest",
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"parameterType": "formBinaryData",
"name": "archivo",
"inputDataFieldName": "data"
}
]
},
"options": {
"timeout": 300000
}
},
"id": "ingest-api",
"name": "Enviar a API de Ingesta",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
910,
300
]
},
{
"parameters": {
"functionCode": "const items = $input.all();\nconst results = [];\n\nfor (const item of items) {\n results.push({\n json: {\n status: 'procesado',\n documento: item.json.documento || 'desconocido',\n fragmentos: item.json.fragmentos_creados || 0,\n mensaje: item.json.mensaje || 'Procesado',\n timestamp: new Date().toISOString()\n }\n });\n}\n\nreturn results;"
},
"id": "log-result",
"name": "Registrar resultado",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1130,
300
]
}
],
"connections": {
"Verificar cada 5 minutos": {
"main": [
[
{
"node": "Listar archivos en carpeta",
"type": "main",
"index": 0
}
]
]
},
"Listar archivos en carpeta": {
"main": [
[
{
"node": "Filtrar PDF y DOCX",
"type": "main",
"index": 0
}
]
]
},
"Filtrar PDF y DOCX": {
"main": [
[
{
"node": "Enviar a API de Ingesta",
"type": "main",
"index": 0
}
]
]
},
"Enviar a API de Ingesta": {
"main": [
[
{
"node": "Registrar resultado",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": true
},
"tags": [
{
"name": "RAG",
"id": "1"
},
{
"name": "Ingesta",
"id": "2"
}
]
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
RAG - Ingesta Automatizada de Documentos. Uses readWriteFile, httpRequest. Scheduled trigger; 5 nodes.
Source: https://github.com/Mateo-R99/RAG-Empresarial/blob/b2405cf2b06cfd20a1430111aec6acfb93b8ffff/n8n/flujo_ingesta.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 Blue Team workflow ingests threat intelligence from public CVE and IOC feeds, merges the data, performs automated triage using OpenAI, and routes actionable alerts via email. 📥 CVE and IOC feeds
This workflow is designed for developers, data engineers, and AI teams who need to migrate a Pinecone Cloud index into a Weaviate Cloud class index without recalculating the vectors (embeddings). It’s
Reputation Engine — Media Ingestion Agent. Uses httpRequest. Scheduled trigger; 18 nodes.
QFO Rank Tracking - EmbeddingGemma Semantic Dedup & Daily Tracking. Uses googleSheets, httpRequest, googleBigQuery. Scheduled trigger; 16 nodes.
Supercharge your trading decisions with this end-to-end AI automation that connects market intelligence, technical analysis, and automated trade execution — all without manual intervention.