π¬ Issue warehouse packing slips with pdfmill, Gmail, and Google Drive
β‘ 1 views Β· π¬ Document Extraction & Analysis
Description
Quick overview
This workflow receives a paid-order webhook, validates the full fulfilment payload, generates a price-free packing slip PDF with pdfmill, emails it to the warehouse via Gmail, and archives the same PDF in Google Drive before returning a JSON confirmation.
How it works
- Receives a POST webhook request when a paid order is ready to fulfil.
- Validates and normalizes order identity, dates, ship-from/ship-to addresses, warehouse email, and line items (SKU, description, positive integer quantity).
- If validation fails, returns a single 400 JSON response describing the rejected fields and stops processing.
- If valid, generates a packing slip PDF from the pdfmill βpacking-slipβ template using the validated order data.
- Emails the PDF attachment to the warehouse using Gmail and uploads the same PDF to Google Drive for archiving.
- Waits for both the Gmail send and Google Drive upload to complete, then responds to the webhook with
packing_slip_ready, including the order number and total unit count.
Setup
- Create and add credentials for pdfmill, Gmail, and Google Drive in n8n.
- In the Google Drive upload step, select the target Drive and folder where packing slips should be archived.
- Copy the Production webhook URL for the
paid-order-packing-slipendpoint and configure your ecommerce/OMS system to POST the required order payload (includingwarehouseEmail,shipFrom,shipTo, anditems).
π Nodes Used
Webhook, Google Drive, Gmail
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File