> For the complete documentation index, see [llms.txt](https://help.pixfizz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pixfizz.com/orderhub/orderhub-desktop/routing-engine.md).

# Routing Engine

The routing engine automatically sends downloaded files to the correct printer or folder based on rules you define. Set rules once and every incoming job is routed without manual intervention.

***

### Overview

When OrderHub Desktop downloads a job, the routing engine evaluates it against your rules and sends the files to the appropriate destination. This replaces manual file sorting and ensures jobs reach the right printer or folder every time.

***

### Destinations

The routing engine supports two types of destination:

#### Lab Printers (Hot Folders)

Direct integration with lab printers that watch a folder or queue for new files. Supported printers include Noritsu, Fuji Frontier, and any printer that accepts files via a hot folder.

Example: `\\lab01\hotfolder\noritsu`

#### Copy to Folders

For products that are not handled by a lab printer — wide-format, fine art, gift items, albums, or anything that goes to a separate production area.

Example: `D:\WideFormat\Inbox\`

***

### Rule Matching

Each rule defines a condition and a destination. Rules are evaluated **top-down** — the first matching rule wins.

#### Match conditions

* **SKU starts with** — matches products whose SKU begins with a specific prefix (e.g. `prnt-` for all print products)
* **SKU equals** — matches an exact SKU (e.g. `gift-mug`)
* **Size threshold** — matches products at or above a specific dimension (e.g. 16x20 inches or larger)
* **Order source** — matches orders from a specific source (e.g. `roes-import`)

#### Catch-all rule

A "No match" catch-all rule should always be the last rule in the list. It routes any unmatched jobs to a designated folder (e.g. `D:\Unrouted\`) so nothing is lost.

***

### Example Configuration

| # | Condition               | Destination            |
| - | ----------------------- | ---------------------- |
| 1 | SKU starts with `prnt-` | Lab Noritsu hot folder |
| 2 | Size >= 16x20 in        | Wide format folder     |
| 3 | SKU starts with `alb-`  | Albums/bindery folder  |
| 4 | SKU = `gift-mug`        | Gifts folder           |
| 5 | Source = `roes-import`  | Lab Fuji Frontier      |
| 6 | No match (catch-all)    | Unrouted folder        |

***

### Tips

* Order your rules from most specific to most general. Since the first match wins, putting a broad rule at the top will prevent more specific rules from ever firing.
* Always include a catch-all rule at the bottom so unmatched jobs are captured rather than silently dropped.
* No scripting is required — rules are configured through the desktop interface.
* Test your rules with a few sample orders before going live to make sure routing works as expected.

***

### Related

* OrderHub Desktop — Overview
* OrderHub Desktop — XML Imports
