
Email-to-Booklet: Parse, Personalize, and Merge Legal PDFs with n8n + PDF.co
6 MIN READ
What You'll Have When Done: Transform your chaotic file storage into an intelligent system that automatically classifies incoming PDFs and files them into the correct folders based on their content - no more manual sorting required.
Before you begin, make sure you have:
Follow the 4-step guide below to create the automation from scratch.
Node: Google Drive Trigger
Settings:
Changes Involving a Specific FolderFile CreatedSuccess Looks Like: The trigger activates immediately when a new file is added to your watched folder.
Node: HTTP Request (PDF.co Document Classifier)
Settings:
https://api.pdf.co/v1/pdf/classifierx-api-key: Your PDF.co API keyContent-Type: application/json{
"url": "{{ $json.webContentLink }}",
"rulescsv": "Amazon AWS, OR, Amazon Web Services Invoice, Amazon CloudFront\nDigital Ocean, OR,DigitalOcean, DOInvoice\nACME,OR, ACME Inc.,1540 Long Street"
}Customize Your Classification Rules: The rulescsv parameter defines how documents are classified. Format: FolderName, OR, keyword1, keyword2, keyword3
Examples:
Invoices, OR, Invoice, Bill, Payment DueContracts, OR, Agreement, Contract, Terms and ConditionsReceipts, OR, Receipt, Purchase, TransactionSuccess Looks Like: PDF.co analyzes the document content and returns a classification result with the matched category name. The response includes a classes array with the best match.
Node: Google Drive → Search files and folders
Settings:
={{ $json.body.classes[0].class }}Success Looks Like: The search returns the folder that matches the classification result. If "Invoices" was classified, it finds your "Invoices" folder.
Congrats! You've built an intelligent file management system that automatically organizes your documents based on their content. Your team can now simply drop files into one folder and watch them get perfectly organized without any manual intervention.
Built something cool? Share it with us @pdfdotco

6 MIN READ

6 MIN READ

6 MIN READ

6 MIN READ
Create an account, get an API key and test a request.