Automation
💎 Built for Sidekick
⚡ Sidekick does this for you
shopify
sidekick
automation
fulfillment
flow
Route Orders to a Fulfillment Location by Rule
Build a Flow that moves an order's fulfillment to a specific location based on product type or SKU prefix, for merchants running more than one warehouse.
📋 Prompt
Build a Shopify Flow that routes orders to the right fulfillment location by rule. Prerequisite: confirm you have more than one fulfillment location set up in Shopify — this Flow only makes sense with multiple locations. Trigger: Order created. Conditions and actions (one branch per rule): Any line item’s SKU starts with “[SKU_PREFIX_A]” → Move fulfillment order to location “[LOCATION_A]”. Any line item’s product has tag “[OVERSIZED_TAG]” (e.g. “oversized”) → Move fulfillment order to location “[LOCATION_B]” (e.g. freight-capable warehouse) + Add order tags “oversized-freight”. Shipping address province/state is in [REGION_LIST_NEAREST_LOCATION_C] → Move fulfillment order to location “[LOCATION_C]” if that location has the item in stock. Before activating: Show me each rule and confirm the location names exactly as they appear in my admin. Confirm what should happen if a rule’s target location doesn’t have the item in stock — default behavior is to leave it at the original assigned location and add order tags “[ROUTING_CONFLICT_TAG]” for manual review, unless you tell me otherwise. After I confirm, create and turn on the Flow. Note: if an order has line items that match different location rules, Flow moves the whole fulfillment order to one location per action — it can’t split a single order across locations by rule; that requires “Fulfillment order split,” which happens separately in Shopify and isn’t something this Flow triggers on its own.
How to Use
- Copy the prompt above
- Open Shopify Sidekick in your Shopify admin
- Paste the prompt and replace the bracketed placeholders with your details
- Review Sidekick's response and apply the suggestions