Skip to main content
The Rule Builder is the visual canvas at the heart of every Galantis Discount Flow campaign. Instead of filling in a rigid form, you drag blocks onto a node graph and connect them — a Start block feeds into conditions, conditions branch into logic gates or further conditions, and the flow ends in one or more discount actions. What you draw is exactly what runs on your store. Every flow is built from four categories of blocks: one Start trigger, eleven conditions, three logic gates, and eight actions. The canvas reads left to right — cart evaluation begins at Start, each condition routes the flow through its Then or Otherwise output, and whichever actions are reached apply their discount.
The Rule Builder canvas showing a flow from Start through conditions to an action, with the block palette on the left and toolbar at the top

Block categories

Conditions

Eleven checks against the cart, customer, products, time, and place — each with Then and Otherwise output paths.

Logic gates

AND, OR, and NOT blocks for combining and inverting conditions into more precise targeting.

Actions & discount types

Eight discount actions, from Percentage off to Volume pricing — the blocks that actually reduce the price.

Testing flows

The Test panel simulates a cart and customer and highlights which path fires — without touching your live store.

The canvas and toolbar

The block palette on the left lists every available block, grouped by category: Trigger, Conditions, Logic gates, and Actions. Drag a block onto the canvas, then draw connections between output and input ports to define the flow. The toolbar above the canvas gives you:
  • Undo / Redo — step backward and forward through canvas edits
  • Fit view — zoom the canvas so the whole flow is visible
  • Auto-layout — automatically arrange blocks into a tidy left-to-right layout
  • Templates — start from a pre-built flow instead of an empty canvas
  • Test — open the Test panel to simulate a cart and customer
  • An issues indicator — a Valid badge when the flow is healthy, or an issue count you can click to see every problem
  • The current zoom level
A few field types behave in a store-aware way:
  • Product, collection, and gift fields open Shopify’s resource picker, so you select real items from your catalog rather than typing names.
  • Money fields show your store’s own currency symbol, so a threshold of 100 means 100 in the currency your customers actually pay in.

Validation

The Rule Builder continuously validates the flow as you build. Blocks with a problem get a red outline, and every issue appears in the toolbar’s issues list with a plain-language explanation — for example, a block that is not connected, an action that cannot be reached from Start, a condition with no Then connection, or a loop in the graph.
A flow cannot be saved or published until it contains at least one valid, reachable action. Fix everything in the issues list until the toolbar shows the Valid badge before publishing.

One flow, three places

The logic you draw runs in three places, and all three produce identical results:
  1. In the builder — the Test panel evaluates the flow live against a simulated cart and customer, so you can verify behavior before publishing.
  2. On the storefront — the theme embed evaluates the flow as customers shop, powering storefront behavior such as auto-adding a free gift to the cart.
  3. At checkout — a Shopify discount Function runs the same flow and actually applies the discount to the order.
Because all three surfaces execute the same logic, what you see in the Test panel is what your customer gets at checkout — there is no separate configuration to keep in sync.
Start from a template when you can. Templates load a complete, valid flow onto the canvas that you can then adjust, which is faster than wiring every connection by hand.