Skip to main content

Generate AI document titles for Paperless-ngx with GPT-4o Mini

Workflow preview

Workflow preview
100%
Generate AI document titles for Paperless-ngx with GPT-4o Mini preview
Open on n8n.io

1. Workflow Overview

What it does This template automatically generates a professional, structured title for newly ingested Paperless ngx documents using AI (OpenAI GPT), then removes a processing tag to mark the docum...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.guardrails, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.stopanderror, n8n-nodes-base.set, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Warren Gates.

Original n8n.io source

1.1 Workflow description

Title
Generate AI document titles for Paperless-ngx with GPT-4o Mini
Workflow name
Generate AI document titles for Paperless-ngx with GPT-4o Mini

What it does

This template automatically generates a professional, structured title for newly-ingested Paperless-ngx documents using AI (OpenAI GPT), then removes a processing tag to mark the document as handled.

How it works

  1. A webhook fires when a document needs titling (e.g., from a Paperless post-consumption script)
  2. The document URL is validated, then the OCR text is fetched from the Paperless API
  3. All PII is scrubbed from the text using n8n's Guardrails node before sending to AI
  4. GPT generates a title using the format: [YYYY-MM-DD] - [Document Type] - [Subject]
  5. The specified processing tag is looked up and removed, then the document is updated

Requirements

  • An AI provider account, such as OpenAI, Anthropic, Gemini. As configured the template uses OpenAI, but any model should work.
  • A running Paperless-ngx instance that has network accessibility to your n8n server

How to use

Needs to be set up in conjunction with a running Paperless-ngx instance. See Paperless-ngx instructions here

Customization

  • Edit the system message in the AI Agent node (Generate Document Name) to change the document naming convention and other guidelines
  • Change the workflows on your Paperless-ngx instance to suit different needs.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Fetch Document Content

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Apply Document Guardrails

Type / Role
@n8n/n8n-nodes-langchain.guardrails - guardrails
Config choices
Version 2

Block 8 - Generate Title AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 9 - OpenAI GPT-4 Mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 10 - Interrupt on Invalid URL

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 11 - Set URL Components

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Check URL Validity

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 13 - Fetch Removal Tag ID

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 14 - Execute Tag Removal

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Terminate Process

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 16 - Apply Document Updates

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 17 - If Document Content Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 18 - When Title Update Requested

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

3. Summary Table

Workflow Generate AI document titles for Paperless-ngx with GPT-4o Mini
Complexity advanced
Nodes 18
Categories Document Extraction, AI Summarization
Author Warren Gates
Published 27 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14381/14381.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate AI document titles for Paperless-ngx with GPT-4o Mini do?

What it does This template automatically generates a professional, structured title for newly ingested Paperless ngx documents using AI (OpenAI GPT), then removes a processing tag to mark the docum...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.