Ops · n8n

Split Aggregated Food Hub Orders Back to Source Farms

Food hubs aggregate orders from many buyers and must split them back to source farms for fulfillment. Automate the split so each farm gets its exact pick list.

difficulty Intermediatesetup 30 minresult Aggregated orders split cleanly to source farms — each farm harvests exactly what's sold with no manual sorting.
  1. 1

    Collect Buyer Orders

    Add a Webhook node aggregating orders across buyers.

  2. 2

    Split by Source Farm

    Add a Code node grouping order lines by their source farm.

  3. 3

    Build Farm Pick Lists

    Total each farm's harvest and pack requirements.

  4. 4

    Send to the Farms

    Add a Gmail node delivering each farm its pick list.

  5. 5

    Activate and Test

    Activate the workflow with test orders. Confirm the split totals per farm.

Frequently asked questions

Why automate the split?

Manually sorting aggregated orders back to farms is the food hub's core operational burden — automation is the whole model.

Payment reconciliation?

The split data also drives paying each farm for exactly what it supplied.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.