Generate AI document titles for Paperless-ngx with GPT-4o Mini
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Guardrails and OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Check URL Validity (If): checks a condition and branches into true / false
- Set URL Components (Edit Fields (Set)): sets 3 fields: server, scheme, documentId
- Interrupt on Invalid URL (Stop and Error): stops the run with an error
- Fetch Document Content (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- Apply Document Guardrails (Guardrails): sanitize
- Generate Title AI Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Mini
- Fetch Removal Tag ID (HTTP Request): calls an HTTP API
- Execute Tag Removal (Code): runs custom JavaScript code
- Apply Document Updates (HTTP Request): calls an HTTP API (PATCH)
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- HTTP Request
n8n-nodes-base.httpRequest - Guardrails
@n8n/n8n-nodes-langchain.guardrails - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Stop and Error
n8n-nodes-base.stopAndError - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - No Operation, do nothing
n8n-nodes-base.noOp - Webhook
n8n-nodes-base.webhook
From the author
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…