Label Studio Creator logo

Label Server & Hotfolder Automation

Automate short-run label production from ERP, e-commerce, CSV, REST API, webhooks, and watched folders.

Purpose

This tutorial explains how to use Label Server and hotfolders to convert incoming orders or job files into validated production jobs without manually opening each label template.

Label ServerHotfoldersREST APICSV watchJob JSONQueueArchive done/error
Automation routeERP / Shoporders, CSV, APIHotfolderincoming jobsLabel Servervalidate + routePrintdriver/RIParchive/donearchive/errorlogs

1. Choose the automation route

RouteBest forTypical input
HotfolderSimple production cells and shared network folders.Job JSON, CSV, PDF, image, or template package.
CSV WatchE-commerce batches exported from marketplaces or back-office tools.CSV rows mapped to a label template.
REST APIERP, WMS, web shop, or custom production system integration.Authenticated HTTP job requests.
WebhookEvent-driven order intake from external platforms.Order paid, order validated, shipment ready.
CLIScripts, scheduled tasks, and local automation.Command-line job execution.

2. Prepare the workspace

Create one workspace per production environment. Keep it outside the application bundle so it survives updates.

  • incoming/ receives new jobs.
  • processing/ contains locked jobs being handled.
  • done/ stores successful jobs and output logs.
  • error/ stores rejected jobs with failure reason.
  • templates/ contains approved label templates.
  • logs/ contains production audit logs.
Workspace layoutlabelserver/incoming/ processing/ done/error/ templates/ logs/Keep plugins and license material outside Git.

3. Job JSON structure

Use a stable job format so every system sends the same production intent.

{
  "template": "shipping-label.lsc",
  "quantity": 250,
  "records": [{"sku": "RB3L-ROLL-50", "lot": "A42"}],
  "printerRoute": "oki-pro1050-white",
  "outputMode": "print",
  "media": {"id": "pp-gloss-102mm", "roll": "R-2026-07-07"},
  "preflight": {"proofRequired": true, "barcodeValidation": true},
  "operator": "auto-hotfolder"
}

4. Hotfolder behavior

Detect

The watcher detects a complete file in incoming/. Use atomic file copy or a temporary extension while uploading.

Validate

Template, data fields, quantity, printer route, media, barcode rules, and license status are checked.

Queue

Jobs can be held for proof approval, released to production, or blocked by preflight errors.

Archive

Completed jobs go to done/. Failed jobs go to error/ with a readable log.

5. Safety gates before printing

GateWhy it matters
Template approvalPrevents printing outdated artwork.
Data validationStops missing SKU, lot, expiry, barcode, or customer fields.
Proof approvalBlocks production until the BAT/proof is approved when required.
Inventory checkConfirms enough label stock, ribbon, roll, or sheet media exists.
Printer routeEnsures the job goes to the correct OKI, Epson ColorWorks, CUPS, RIP, or driver backend.
Trial watermarkMissing or invalid license must mark all print and export output according to product policy.

6. Troubleshooting

SymptomCheck
File not processedFolder path, permissions, file extension, incomplete upload, server status.
Missing templateTemplate name and templates/ workspace path.
Wrong printerprinterRoute, OS default printer, CUPS queue, Windows printer name.
Invalid dataRequired fields, JSON syntax, CSV delimiter, encoding, decimal separators.
Job blockedPreflight results, proof approval, inventory status, license status.
No outputDriver, RIP route, backend logs, OS print queue, printer offline state.

7. Final workflow checklist

Recommended flow: create workspace → configure route → place test job in incoming → validate queue entry → approve proof → print sample → verify archive done/error → connect ERP or e-commerce source.