Bulk import local PDF and text files into an Open Notebook notebook
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 8 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Folder and Notebook Config (Edit Fields (Set)): sets 3 fields: folder_in, notebook_name, api_base
- Fetch Notebooks List (HTTP Request): calls an HTTP API
- Resolve Target Notebook ID (Code): runs custom JavaScript code
- Locate TXT and PDF Files (Execute Command): runs a shell command on the n8n host
- Prepare File Items (Code): runs custom JavaScript code
- Batch File Processing (Loop Over Items (Split in Batches)): loops over the items in batches
- Upload Files to Notebook (Execute Command): runs a shell command on the n8n host
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Execute Command
n8n-nodes-base.executeCommand - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
Quick overview This self-hosted n8n workflow scans a local folder for PDF and TXT files and bulk imports them into an Open Notebook notebook via its API, uploading PDFs as files and sending text files as JSON content. How it works 1. Runs manually when you…