Match packing list PDFs to purchase orders with docling-serve and Ollama
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-12-01.
What this workflow does
This AI workflow has 25 nodes and runs on a schedule (every hour). Along the way it connects Ollama Chat Model.
How it runs
Trigger: On a schedule (every hour).
- List files (FTP): list
- is .pdf (Filter): keeps only the items that match a condition
- Get PDF (FTP): uses FTP
- Log pending (Data table): uses Data table
- Post PDF to docling-serve (HTTP Request): calls an HTTP API (POST)
- conversion success (If): checks a condition and branches into true / false
- Extraction agent (AI Agent): runs an AI agent, with model: Ollama gemma4:12b; output parser: Extraction Agent Output Parser
- Docling conversion failed (Edit Fields (Set)): sets or maps fields
- get dummy purchase order (Code): runs custom JavaScript code
- Log status (Data table): uses Data table
…plus 11 more steps. See the full node list below.
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.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Data table
n8n-nodes-base.dataTable - HTTP Request
n8n-nodes-base.httpRequest - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Filter
n8n-nodes-base.filter - Schedule Trigger
n8n-nodes-base.scheduleTrigger - FTP
n8n-nodes-base.ftp
From the author
Quick overview This workflow checks an SFTP “pending” folder for packing list PDFs, converts them to OCR text with docling-serve, and uses Ollama (Gemma) to extract structured line items and match them to a purchase order, logging results and moving files to…