Workflow Automation

Paperless-ngx Workflow Guide: Automate Document Filing

J
James Eriksson
··13 min read
Set up Paperless-ngx workflows to automate document filing, classification, and tagging. Learn triggers, rules, actions, barcodes, and common mistakes for small teams.
TL;DR
  • Workflows in Paperless-ngx automatically file documents based on triggers (senders, barcodes, file types) and actions (tags, assignment, permissions).
  • The consumption folder is your document inbox: scan or upload files there, and Paperless-ngx processes them through your workflows automatically.
  • Common mistakes include overlapping workflows causing conflicts, OCR errors cascading through rules, and permission conflicts in multi-user setups.
  • Paperless-ngx struggles with approval workflows, compliance auditing, and external sharing--if you need these, combine it with other tools or use a dedicated DMS.
  • Managed hosting (like Opsily) handles infrastructure complexity, OCR tuning, and backups, letting you focus on organizing documents instead of managing servers.

Paperless-ngx automates document filing through workflows: rules that trigger automatically when documents enter your system. A workflow might tag invoices from your bank, assign them to your accountant, and file them into the correct folder in seconds. For small firms drowning in paper, workflows transform hours of manual filing into background automation.

What Is a Paperless-ngx Workflow? (And Why It Matters)

A workflow in Paperless-ngx is a set of automated rules. When a document enters your system, Paperless-ngx evaluates it against your workflows. If a condition matches--a barcode, a sender name, a file type--Paperless-ngx executes actions: it assigns a correspondent (the sender), adds tags, picks a document type, and optionally moves the file or changes permissions.

The pain is real: manual filing eats time. A freelancer receiving 30 invoices monthly spends hours sorting, tagging, and filing. With workflows, that work vanishes. Paperless-ngx does it automatically, the moment the PDF lands.

Workflows matter because they close the gap between "scanning" and "having a searchable archive." Scanning is easy. Filing is the bottleneck. Automation solves it.

A concrete example: You scan a utility bill. It arrives as a loose PDF in your consumption folder. A workflow fires. Paperless-ngx recognizes the sender (your electric company), tags it "utilities," assigns it the document type "bill," and auto-files it. You never touch it. Within seconds, it is searchable, tagged, organized, and stored.

Workflows also scale. As your document volume grows, manual filing becomes impossible. Automation does not care if you are scanning 10 documents a day or 100. It is the reason document management software exists at all. Paperless-ngx has 48,600 GitHub stars and 12,541 commits behind it, testament to its maturity in the open-source DMS space.

Anatomy of a Workflow: Triggers, Rules, and Actions

Every workflow has three parts: a trigger, a rule, and an action.

The trigger is the event that starts the workflow. In Paperless-ngx, the most common trigger is "document consumed"--a file has been imported into the system. Other triggers include file type, barcode content, or specific folder paths.

The rule is the condition being checked. Rules answer questions like: Does the document match a known correspondent? Does it contain a barcode? Is the file a PDF or an image? Rules can be simple (one condition) or complex (multiple conditions combined with AND/OR logic).

The action is what Paperless-ngx does if the rule matches. Actions include:

  • Assign a correspondent (the sender or creator)
  • Add tags (categories, like "invoice," "tax," "medical")
  • Assign a document type (invoice, receipt, bill, contract)
  • Change file permissions (restrict access to specific users)
  • Delete the document
  • Move it to a specific folder (if using network paths)

A complete workflow example:

  • Trigger: Document is consumed
  • Rule: Filename contains the word "invoice"
  • Action: Assign document type "invoice," add tag "accounts-payable"

Another example:

  • Trigger: Document is consumed
  • Rule: Correspondent matches "Amazon" (Paperless-ngx recognizes the sender from metadata)
  • Action: Add tags "online-purchase" and "reimbursable," assign to document type "receipt"

Workflows run top-to-bottom. If the first workflow matches, it fires. If the second workflow matches, it also fires. So multiple workflows can apply to a single document, stacking their actions. This is powerful but also the first place to cause confusion: too many overlapping workflows create conflicting tags or false positives.

Setting Up Your Consumption Folder Pipeline

The consumption folder is Paperless-ngx's inbox. Any file you drop here gets imported, processed, and filed. Setting it up correctly is the foundation of a working workflow system.

First, create a local or network folder dedicated to consumption. If you are self-hosting Paperless-ngx, this is typically /consume/ on the server. If you are using managed hosting, your provider creates it and gives you network access.

Next, configure your scanner to send files to this folder. Most modern scanners support SMB/CIFS shares (Windows network shares) or FTP. Set the scanner to save files with consistent naming. Naming matters for workflows: if your scanner names every file scan_YYYYMMDD_HHmmss.pdf, workflows can parse the date from the filename. If names are random, workflows cannot use the filename as a trigger.

Then, consider creating subfolders within /consume/ for different document types. Some users organize by source: /consume/mail/, /consume/receipts/, /consume/bank-statements/. This lets you apply different workflows to each folder.

Important: Paperless-ngx processes files in the consumption folder sequentially. Very large files or many files at once can queue up. OCR (Optical Character Recognition) is CPU-intensive. If you are scanning 50 pages at once, the system will process them, but it may take minutes. This is not a bug; it is the cost of full-text search and character extraction.

Troubleshooting: If files are not being consumed, check these first:

  1. Is the folder path correct in Paperless-ngx settings?
  2. Are file permissions set to allow Paperless-ngx to read the folder?
  3. Is the Paperless-ngx process running?
  4. Are there errors in the application logs?

Automating Document Classification (Tags, Correspondents, Document Types)

Classification is what makes Paperless-ngx useful. It is the ability to find a specific document months later.

Tags are free-form labels. You create them and apply them however you want. Common tags: "invoice," "tax-2025," "paid," "unpaid," "review-needed." A document can have multiple tags.

Correspondents are senders. When you receive an invoice from Amazon, Amazon is the correspondent. Paperless-ngx tries to extract correspondents from document metadata (sender information in PDFs, metadata in scanned images). If it fails, you can assign a correspondent manually or via workflow.

Document types are predefined categories: invoice, receipt, bill, contract, statement, notice, memo. You can create custom types. Each document has exactly one document type (unlike tags, which are many-to-one).

Here is how to automate classification:

Step 1: Create the tags and document types you need. In Paperless-ngx, go to Tags and create: "invoice," "accounts-payable," "paid," "tax-deductible." Create Document Types: "invoice," "receipt," "bank-statement."

Step 2: Identify how to recognize each category. Example: Invoices often come from known vendors. Create a list of vendors: Amazon, your hosting provider, your accountant. If the document is sender (correspondent) matches a vendor, it is likely an invoice.

Step 3: Create workflows. Workflow 1:

  • Trigger: Document consumed
  • Rule: Correspondent is "Amazon"
  • Actions: Assign document type "invoice," add tags "invoice" and "online-purchase"

Workflow 2:

  • Trigger: Document consumed
  • Rule: Correspondent matches "electric company"
  • Actions: Assign document type "bill," add tags "utilities" and "expense"

Step 4: Test. Scan a few test documents. Watch the workflow fire (you will see the tags and document type appear). Adjust the rules if needed.

The result: 100 invoices arrive. 95 get tagged and filed automatically. 5 require manual review (senders not recognized, etc.). This cuts filing time from hours to minutes. If you want to understand the OCR engine powering classification, see Opsily's guide to OCR in open-source systems.

Advanced: Barcodes, ASN, and Separation Sheets

Barcodes add a layer of precision. When you print a barcode and include it in a document, Paperless-ngx can scan and read it.

A barcode workflow works like this:

  1. You print a barcode representing a customer or project.
  2. You include the barcode on a document (invoice, PO, receipt).
  3. When scanned, Paperless-ngx reads the barcode and assigns the document to the customer/project it represents.

This is powerful for businesses with many customers: A freelancer with 20 clients can print one barcode per client, include it on outgoing invoices, and when invoices come back, the barcode tells Paperless-ngx which client owns the invoice.

ASN (Automatic Source Numbers) is a related feature. ASN assigns a unique number to each document automatically. If you are filing 1,000 invoices, ASN can help you retrieve any by number: "Show me document 00247" is easier than searching by name.

Separator sheets are a workflow hack for batch scanning. When you scan 50 mixed documents (invoices, receipts, statements), they arrive as one large PDF. A separator sheet (a printed barcode or text marker) tells Paperless-ngx where to split.

Example workflow:

  1. Print separator sheets with barcodes representing each category.
  2. Scan: cover sheet (barcode for "invoices"), invoice 1, invoice 2, invoice 3, separator sheet (barcode for "receipts"), receipt 1, receipt 2.
  3. Paperless-ngx reads the barcodes, splits the PDF at separators, and files each document with the correct correspondent and tags.

This is advanced and optional. It is most useful for accounting teams scanning 100+ documents per day. For small firms or households, simpler workflows (correspondents and tags) usually suffice.

Common Workflow Mistakes and Gotchas

Mistake 1: Too many overlapping workflows. Symptoms: Documents get contradictory tags, or tags appear that you did not intend. Cause: Multiple workflows fire on the same document, and their actions conflict. Fix: Review your workflow rules. Make them more specific. Use AND logic (all conditions must match) instead of OR logic when possible.

Mistake 2: Correspondent matching too broad. Symptoms: Invoices from different companies get assigned to the wrong correspondent. Cause: Workflow rule matches "contains amazon" and 10 unrelated documents contain that word. Fix: Use exact matching instead of substring matching. Test your workflows before activating them.

Mistake 3: OCR errors cascading through workflows. Symptoms: Workflow rule looks for "correspondent = Amazon," but OCR misreads "Amazom" (a typo), so the rule does not fire. Cause: OCR is imperfect, especially on low-quality scans. Fix: Use fuzzy matching if Paperless-ngx supports it. Manually tag misfiled documents occasionally to catch OCR failures. For critical documents (contracts, medical records), review manually before trusting the workflow.

Mistake 4: Permission conflicts in multi-user setups. Symptoms: Some users cannot see documents; permissions are overwritten inconsistently. Cause: Multiple workflows set different permissions, and the last one wins. Fix: Assign document permissions once, via workflow. Do not apply conflicting permission workflows to the same document type. Document your permission scheme.

Mistake 5: Workflows slowing down the system. Symptoms: Paperless-ngx takes 30 seconds to process one document; previous imports were fast. Cause: Too many complex post-processing workflows running in sequence. Fix: Simplify workflows. Remove unnecessary actions. Consider disabling workflows during bulk imports and re-running them later.

When Paperless-ngx Is NOT the Right Tool

Paperless-ngx is powerful, but it is not a universal document management system.

When to skip Paperless-ngx:

  1. You need approval workflows. Paperless-ngx files documents automatically. It does not route them for review or approval. If your process is "document arrives, manager approves, then file," Paperless-ngx alone will not work. You would need a separate approval tool or custom scripts.

  2. You need compliance auditing. Paperless-ngx does not track who viewed a document, when it was modified, or by whom. If your industry requires audit trails (healthcare, finance, law), you need a system designed for compliance.

  3. You need external sharing with strict access control. Paperless-ngx is designed for internal document archiving. If you need to share documents securely with clients or partners and track access, you need a system built for that.

  4. You have more than 20-30 users. Paperless-ngx is permission system is fine for small teams. At enterprise scale (50+ users, complex org hierarchies), dedicated DMS platforms handle roles and access better. For comparison, check other open-source DMS options to see what enterprise tools offer.

  5. You need native mobile scanning. Paperless-ngx does not have an official mobile app. You can use third-party apps to scan to your Paperless-ngx instance, but they are community-made and may not work perfectly. If seamless mobile scanning is critical, consider alternatives like Docspell.

  6. You need advanced full-text search across non-English languages. Paperless-ngx OCR and search are strong for English. If you are archiving documents in many languages, test first. Some languages have weaker OCR support.

For small firms, freelancers, and households managing paper at scale, Paperless-ngx is usually the right choice. For enterprise compliance or approval-driven workflows, you will outgrow it.

Scaling Paperless-ngx: Self-Hosted vs. Managed Hosting

Paperless-ngx is open-source. You can run it on your own server: a Raspberry Pi, a home NAS, a VPS, or a full desktop. Many users do. It works.

Self-hosting has tradeoffs. You control everything, but you manage everything: server hardware, networking, backups, security updates, OCR performance tuning. If you want to scan 500 documents a month, a Raspberry Pi struggles. OCR is CPU-intensive. You will outgrow small hardware quickly.

Managed hosting is an alternative. A provider like Opsily runs Paperless-ngx for you. You get a login, an API, and a consumption folder. The provider handles hardware, backups, SSL certificates, and system updates. You focus on your documents.

When to self-host:

  • You are experimenting; you want to try before committing.
  • Your document volume is low (fewer than 100 documents/month).
  • You have server expertise and enjoy tinkering.
  • You have strict data residency requirements (data must stay on your server).

When to use managed hosting:

  • You scan regularly (200+ documents/month).
  • You want EU data residency and predictable performance without managing infrastructure yourself.
  • You want automatic backups and disaster recovery.
  • You prefer paying for a service and not worrying about server maintenance.
  • Your team needs reliable uptime and support.

The managed hosting advantage is reliability. OCR and full-text search are pre-tuned. If you scan 10 documents at once, the system handles it. If your self-hosted instance crashes, you troubleshoot it. If a managed instance has issues, the provider troubleshoots it.

For most users, managed hosting wins: it removes the operational friction of self-hosting while keeping Paperless-ngx flexibility. Opsily offers managed Paperless-ngx hosting with pay-as-you-go pricing and EU infrastructure.

Frequently Asked Questions

How do I set up automatic document classification in Paperless-ngx?

Create tags and document types in settings. Build workflows that match documents (by correspondent, file type, or filename) and assign tags and types automatically. Test with a few documents first. Once rules are correct, enable them on all new imports. Classification happens on document consumption (when files enter the system).

What is ASN (Automatic Source Numbers) and when should I use it?

ASN is an auto-incrementing number assigned to each document. It is useful when you need to reference documents by ID rather than name. For high-volume filing (100+ docs/month), ASN helps track documents. For small-scale use, tags and correspondents are sufficient.

Can Paperless-ngx scan documents automatically via barcode triggers?

Yes. Print a barcode representing a correspondent or project. Include it on documents. When scanned, Paperless-ngx reads the barcode and applies the barcode metadata (correspondent assignment, tags). This requires a barcode printer and workflow setup.

How do I configure multiple users with approval workflows?

Paperless-ngx supports multiple users with role-based permissions. Assign a document to a user, and only that user can view/edit it. However, Paperless-ngx does not natively route documents for approval (e.g., "document A waits for manager sign-off before filing"). You can approximate this by assigning documents to a "review" group, then having group members manually approve before tagging as "approved."

What is the consumption folder and how do I set it up?

The consumption folder is where you upload documents for Paperless-ngx to process. Set it in settings as a local path (self-hosted) or network share (managed hosting). Configure your scanner or app to save files there. Paperless-ngx monitors it, imports new files, runs workflows, and files documents automatically.

Why does my Paperless-ngx workflow keep failing?

Common causes: OCR misreading text (workflow rule does not match because the text is garbled), permissions issues (Paperless-ngx cannot read the consumption folder), or the consumption folder path being wrong. Check logs, verify the folder path, test OCR on a sample document, and simplify workflow rules to debug.

The Bottom Line

Paperless-ngx workflows transform document management from manual busywork to background automation. By setting up triggers, rules, and actions, you can file hundreds of documents with zero effort. The key is starting simple: a few workflows for high-volume document types (invoices, bills), testing them on real documents, then expanding as you gain confidence.

Paperless-ngx is not perfect for every use case. If you need compliance auditing, approval workflows, or external sharing with strict controls, you will need additional tools. For small firms, freelancers, and households archiving paper at scale, it is hard to beat. If self-hosting overhead concerns you, try Opsily managed hosting to remove the infrastructure complexity and focus on organizing your documents.

Simplify Document Workflows
Opsily hosts managed Paperless-ngx in EU data centers, pre-tuned for high-volume scanning and OCR. Focus on your documents, not your server.
Get Started Free

Ready to self-host your own apps?

One server. Multiple apps. No per-app fees.

Get started →