{"product_id":"n8n-workflow-import-pdf-txt-files-into-open-notebook","title":"n8n Workflow: Import PDF \u0026 TXT Files into Open Notebook","description":"\u003ch3\u003eBulk import your local PDFs and TXT files into Open Notebook—automatically\u003c\/h3\u003e\n\u003cp\u003eThis self-hosted \u003cstrong\u003en8n workflow\u003c\/strong\u003e scans a local folder for \u003cstrong\u003e.pdf\u003c\/strong\u003e and \u003cstrong\u003e.txt\u003c\/strong\u003e files, then imports them into a specified \u003cstrong\u003eOpen Notebook\u003c\/strong\u003e notebook. PDFs are uploaded as files, while TXT content is sent as JSON—so your knowledge base stays organized with minimal effort.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns manually\u003c\/strong\u003e when you start the workflow in n8n.\u003c\/li\u003e\n  \u003cli\u003eCalls the \u003cstrong\u003eOpen Notebook API\u003c\/strong\u003e to list notebooks and selects the notebook ID that matches your configured \u003cstrong\u003enotebook name\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eUses a shell command to scan your configured \u003cstrong\u003elocal folder\u003c\/strong\u003e for \u003cstrong\u003e.pdf\u003c\/strong\u003e and \u003cstrong\u003e.txt\u003c\/strong\u003e files.\u003c\/li\u003e\n  \u003cli\u003eCreates one processing item per file (including \u003cstrong\u003epath\u003c\/strong\u003e, \u003cstrong\u003etitle\u003c\/strong\u003e, and \u003cstrong\u003efile extension\u003c\/strong\u003e).\u003c\/li\u003e\n  \u003cli\u003eProcesses files \u003cstrong\u003eone at a time\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003ePDF files\u003c\/strong\u003e: uploads to Open Notebook’s \u003cstrong\u003e\/sources\u003c\/strong\u003e endpoint using \u003cstrong\u003emultipart form data\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eTXT files\u003c\/strong\u003e: reads the text and sends it to Open Notebook’s \u003cstrong\u003e\/sources\/json\u003c\/strong\u003e endpoint using a \u003cstrong\u003ePython requests\u003c\/strong\u003e call.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eImport exported research notes (PDF + TXT) into Open Notebook after a discovery or documentation sprint.\u003c\/li\u003e\n  \u003cli\u003eTurn plain-text knowledge dumps into structured Open Notebook sources without manual copy\/paste.\u003c\/li\u003e\n  \u003cli\u003eOperational workflows for SaaS teams: refresh your Open Notebook knowledge base from a local “incoming” folder.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n type\u003c\/strong\u003e: self-hosted only (this template does not run on n8n Cloud).\u003c\/li\u003e\n  \u003cli\u003eRequires \u003cstrong\u003eExecute Command node\u003c\/strong\u003e enabled and local filesystem access.\u003c\/li\u003e\n  \u003cli\u003eHost must have \u003cstrong\u003ecurl\u003c\/strong\u003e and \u003cstrong\u003epython3\u003c\/strong\u003e installed, plus the Python \u003cstrong\u003erequests\u003c\/strong\u003e package.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\/endpoints\u003c\/strong\u003e: Open Notebook API (list notebooks, upload via \u003ccode\u003e\/sources\u003c\/code\u003e, upload JSON via \u003ccode\u003e\/sources\/json\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes used\u003c\/strong\u003e: set, code, sticky note, http request, manual trigger, execute command.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45748946862259,"sku":"N8N-17680","price":4.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/qDIDdmqiAwY2VF6K9z5hi_QkL1nmdQ.png?v=1785575656","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-import-pdf-txt-files-into-open-notebook","provider":"N8N Commerce","version":"1.0","type":"link"}