n8n Tutorial

Automate Packing Slips with n8n

Every order triggers a packing slip. Line items, barcodes, QR codes — generated instantly and sent to your warehouse.

Vincent Ventalon
Vincent Ventalon
·Updated
TemplateFox

About the TemplateFox Node

The official TemplateFox community node for n8n lets you generate PDFs from templates with dynamic data. Works synchronously — returns the PDF URL immediately. Compatible with n8n AI Agents.

Why automate packing slips?

Orders come in around the clock. Each one needs a packing slip with the customer name, shipping address, line items, and often a barcode for warehouse scanning. Manually creating these is tedious and error-prone.

With n8n, every new order automatically generates a PDF packing slip. The workflow maps order data to template fields, generates the PDF, and delivers it to your fulfillment team — no manual work required.

Here's what we're building: order webhook → TemplateFox generates PDF → email/save to warehouse.

1

Choose a template

Pick a packing slip template that matches your needs. This template includes QR code and barcode for easy scanning:

Modern Packing Slip with QR & Barcode

Line items table, order barcode, QR code for tracking URL, shipping and billing addresses.

Use this template →

The template editor shows all the fields you can customize:

Packing slip template in the TemplateFox visual editor

The QR code component uses the {{ bar_code }} field for scanning:

QR code component properties showing bar_code variable

Template fields: company_name, address_line_1/2/3, items (array with product_description, qty, barcode), bar_code, order_date

2

Build the workflow

Shopify Trigger
TemplateFox
Email / Google Drive

2.1 — Order trigger

Add a Shopify Trigger (or WooCommerce, BigCommerce, webhook):

  • Event: orders/create or orders/paid
  • Data includes: customer info, shipping address, line items, order ID

2.2 — Generate PDF

Add the TemplateFox node and map order data to template fields:

// TemplateFox node configuration
Template ID: "your-template-id"
Data:
company_name: {{ $json.shipping_address.company }}
address_line_1: {{ $json.shipping_address.address1 }}
bar_code: {{ $json.order_number }}
order_date: {{ $json.created_at }}
items: {{ $json.line_items }}

The generated PDF includes all order details:

Generated packing slip with order details and barcode

2.3 — Deliver to warehouse

Add a delivery node after PDF generation:

Email

Send to warehouse@company.com with PDF attached

Google Drive

Save to shared folder, organized by date

Result: Every order automatically generates a scannable packing slip and delivers it to your fulfillment team.

Supported platforms

S
Shopify
W
WooCommerce
B
BigCommerce
M
Magento
E
Etsy
W
Webhook

Frequently asked questions

Which e-commerce platforms work with this workflow?

Any platform with webhooks or n8n integration: Shopify, WooCommerce, BigCommerce, Magento, Etsy. Custom stores work via webhook.

Can I include barcodes and QR codes on packing slips?

Yes. TemplateFox templates support both barcodes (Code 128, EAN, UPC) and QR codes. Use order IDs or tracking numbers as values for easy scanning.

How do I handle multi-item orders?

The template handles line items automatically. Pass an items array with product name, SKU, quantity. The template renders each item in a table row.

Can I print directly from n8n?

n8n doesn't print directly, but you can send the PDF to a print server API, save to a watched folder, or email to a print-enabled inbox.

What does this automation cost?

n8n self-hosted is free. TemplateFox offers 60 free PDFs per month. View pricing.

Automate your PDF generation

Complete documentation, no-code integrations, and a powerful API to help you generate PDFs at scale. Let us handle the boring stuff.