Library / Documents, PDF & OCR
Documents, PDF & OCR
Summarize Scientific Research PDFs with GPT from a Folder
When a PDF appears in a watched local folder, the workflow extracts its text, has OpenAI write a structured summary and saves it to a folder.
What it does
Right click and open local file trigger. -Insert the path to your folder. Open the folder and copy and paste the path at the top. -Example C:/Desktop/PDF -In the above example, PDF is the name of the folder. Create an open ai key: -Create an open AI account -Go to platform.openai.com/api-keys -After creating an account click on your name in the top right corner. Click on your profile. -On the left side click on API keys. -Create new secret key. -Give it a name (optional). -Create secret key and copy. -Open the n8n workflow. -Right click and open the OpenAI chat model under Summarizer tools Agent. -Click under credential to connect with and click create new credential. -Paste the copied API Key in this position in n8n. -IMPORTANT: This workflow uses GPT-4o. This cost ~$0.01 per run. You must put money, recommend no more than $5, into your open ai account. -Click on your profile again. On left hand side click on billing. Add credit to balance. Right click on save to folder node. -Insert path to folder where you want the summary saved. -Example C:/Desktop/Summary/Summary.txt Tips: you can try saving it as a pdf, but I found saving it as a txt had less errors. -You can copy the path again, but you must make sure all \ are / in the path. This is how n8n interprets the pathway. The trigger node does not matter and should not be changed because the converter node does this automatically. Common issues: -If your first open/read/write files from disk node has an error saying no data, try running n8n as administrator. -If running localhost, search command prompt or terminal, before opening right click and choose run as administrator. Then start n8n as you normally would. -If the pdf is too large open AI will not be able to summarize it and will have an error that you have reached your limit of requests. How it works: You will have a folder predetermined on your computer. When you find a pdf of a scientific article that you would like a summary of, open n8n and click test workflow. Then save the pdf to the dedicated folder. With n8n running you click test step on the trigger. It will automatically produce a summary of the pdf and save it to a specified folder. How to improve: If you have a specific expertise in a field of study, you can customize the output to that field. For example, if you are a marine biologist, you can change the portion of the text prompt in the s
The steps
- Local File Trigger
- OpenAI Chat Model
- Summarizer
- Converter
- PDF Finder
- PDF Extractor
- Publisher
- Save to Folder
Similar automations
Documents, PDF & OCRMerge Multiple PDFs from URLs with CustomJS7 stepsDocuments, PDF & OCRSummarize PDFs from Email and Messaging Apps with OpenAI22 stepsDocuments, PDF & OCRExtract text from PDFs and images into CSV with Gemini and Google Drive12 stepsDocuments, PDF & OCRExtract text from Google Drive PDFs and images with Gemini into CSV12 steps