Templates / Match packing list PDFs to purchase orders with docling-serve and Ollama

Match packing list PDFs to purchase orders with docling-serve and Ollama

Ready for 3.0

by Adam · 45 views · created 2026-07-03 · Document Extraction, AI Summarization

Ready 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.

📬 Weekly n8n 3.0 breakage alerts, free

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).

  1. List files (FTP): list
  2. is .pdf (Filter): keeps only the items that match a condition
  3. Get PDF (FTP): uses FTP
  4. Log pending (Data table): uses Data table
  5. Post PDF to docling-serve (HTTP Request): calls an HTTP API (POST)
  6. conversion success (If): checks a condition and branches into true / false
  7. Extraction agent (AI Agent): runs an AI agent, with model: Ollama gemma4:12b; output parser: Extraction Agent Output Parser
  8. Docling conversion failed (Edit Fields (Set)): sets or maps fields
  9. get dummy purchase order (Code): runs custom JavaScript code
  10. Log status (Data table): uses Data table

…plus 11 more steps. See the full node list below.

Services it uses

Ollama Chat Model

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.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

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…

Excerpt from Adam's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.