Rule engine

Rule engine

The Bob Go rule engine is a powerful tool that enables users to streamline and automate their order processes. Rules perform automated actions on orders when certain conditions are met.  Multiple conditions can be specified per rule, giving users better control over their fulfillment processes. A drag-and-drop feature is also available to save rule priority.

To set up, edit and manage rules, navigate to settings in the left navigation pane and select rule engine from the menu.





Rule types and triggers
Each rule type will trigger an automated action based on specific conditions. It is possible to configure multiple conditions per rule, and the user can choose whether all or just one condition (and/or) must be met for the action to be executed.

There are five types of rules* that can be configured:
  1. “When an order is created”
  2. “When determining the preferred service level for order rates”
  3. “After an order has been fulfilled”
  4. “When a rates at checkout request is received”
  5. “When determining pickup point rates for rates at checkout”
*Available rule types depend on your active subscription plan.


Conditions
Conditions are linked to a variety of attributes, including order tags, order weight, order value and so on. Multiple conditions can be configured per rule, and the user can select if all or one condition (and/or) should be met for the action to be performed. Conditions must be assigned a value in order to trigger a rule action. 
  1. Always
  2. Received from channel
  3. Any order tag
  4. Order total weight
  5. Order total value
  6. Order total quantity
  7. Buyer selected shipping method
  8. Order status
  9. Order payment status
  10. Any order item name
  11. Any order item vendor
  12. Any order item SKU
  13. Any order item quantity
  14. Any order item unit price
  15. Any order item unit weight
  16. Any order item dimension
  17. Any order item length
  18. Any order item height
  19. Any order item width
  20. Order items stacked length
  21. Order items stacked height
  22. Order items stacked width
  23. Any WooCommerce product shipping class
  24. Any Shopify product location name
  25. Customer delivery address
  26. Customer name and surname
  27. Customer email
  28. Customer phone number
  29. Collection address postal code
  30. Delivery address postal code


Rule actions
The following rule actions can be applied to the When an order is created rule:

Set fulfillment method
This rule action will automatically apply a specified fulfilment method to an order that matches the set conditions. This includes creating a shipment, marking as buyer collection, or any other fulfilment methods that should be available.
EXAMPLE: All orders where the buyer selected shipping method is “Collection” should be marked as buyer collection.

Set collection address
This rule action will automatically assign a collection address to an order that matches the set conditions. 
EXAMPLE: All orders with a delivery address in Gauteng should be fulfilled from a specific collection address in Johannesburg. 

Set parcels
This rule action will automatically assign a predefined package to an order that matches the set conditions.  
EXAMPLE: All orders with an order weight of more than 5kg must be fulfilled with a specific predefined package.

Set declared value
This rule action will automatically set a declared value to an order that matches the set conditions. This could be a specified fixed amount or the full order value.
EXAMPLE: All orders over the value of R2 500.00 should have a declared value of R1000.00. 

Set delivery instructions
This rule action will automatically add additional delivery instructions to an order that matches the set conditions. 
EXAMPLE: All orders with “glass” in the item name should have “Fragile – handle with care” added to the delivery instructions. 

Set collection instructions
This rule action will automatically add collection instructions to an order that matches the set conditions. 
EXAMPLE: All orders with an order weight of 10kg should have “Collect from gate 2” added to the delivery instructions. 

Set order status
This rule action will automatically add an order status to an order that matches the set conditions. 
EXAMPLE: All orders with “digital” in the item name should be marked as “Completed” as the order does not require shipping and thus does not need to be fulfilled. 

Set order tags
This rule action will automatically add an order tag to an order that matches the set conditions. 
EXAMPLE: All orders with “digital” in the item name should be marked with a “digital” tag. 

Archive orders
This rule will ensure that all orders that match the set conditions will be automatically archived.
EXAMPLE: All point-of-sale (POS) orders will sync through to your Bob Go dashboard without a delivery address. Utilising the above rule, you can set a condition that if a customers delivery address is empty the order should be archived for a less cluttered dashboard.


The following rule actions can be applied to the When determining the preferred service level for order rates rule:

Set preferred service levels
This rule action will automatically set the preferred service level for an order that matches the set conditions. 
EXAMPLE: All orders where the customer delivery address is located in Gauteng should be shipped with the cheapest express service level.


The following rule actions can be applied to the After an order has been fulfilled rule:

Set shipment tags
This rule action will add a shipment tag to a shipment. 
EXAMPLE: All orders with “Pretoria” in the delivery address will be marked with a custom shipping tag of “Local – Pretoria”. 


The following rule actions can be applied to the When a rates at checkout request is received rule:

Return no rates
This rule action will return no rates for rates at checkout requests that match the set conditions.
EXAMPLE: No rates will be returned for orders containing products that are not shippable, like digital downloads.

Return rates for specific service levels
This rule action will return rates for specific service levels when rates at checkout requests are received that match the set conditions.
EXAMPLE: A free shipping option will be returned to customers at checkout if the order contains a product that matches a set shipping class for which free shipping should be provided.

Exclude rates for specific service levels
This rule action will exclude rates for specific service levels when rates at checkout requests are received that match the set conditions.
EXAMPLE: If a cart contains a product from Vendor X, Express service level rates will not be returned as all orders containing items from Vendor X can be shipped on an Economy service level.

Set parcels for rate request
This rule action will set parcels for rates at checkout requests that match the set conditions.
EXAMPLE: If the stacked order’s dimensions surpass a certain length, height or weight, a specific predefined parcel will be set and used to determine the rate returned to your customer on checkout.

Set collection address for rate request
This rule action will set a specific collection address for rates at checkout requests that match the set conditions.
EXAMPLE: If a customer’s delivery address and the merchant’s collection address are both based in Cape Town, only local rates will be returned at checkout. This ensures that the rate used to fulfill on Bob Go will match the rate selected by the customer.


The following rule actions can be applied to the When determining pickup point rates for rates at checkout rule:

Return no rates
This rule action will return no rates for rates at checkout requests that match the set conditions.
EXAMPLE: Orders containing products that cannot be shipped to a locker due to size constraints, for example, will not return any pickup point rates at checkout.

Set parcels for rate request
This rule action will set parcels for rates at checkout requests that match the set conditions.
EXAMPLE: If the stacked order dimensions surpass a certain length, height or weight, a specific predefined parcel is set and used to determine the pickup point rates returned to customers at checkout. These predefined parcels can be configured based on the various locker sizes.




    • Related Articles

    • Service level codes and times

      BFCM Shipping Update Due to the increased shipment volume during BFCM, delivery and collection timeframes may be extended by 1 additional day. This may result in a total delivery time of up to 2 extra business days, depending on the courier’s service ...
    • How to fulfill an order

      This video tutorial shows you, step by step, how to fulfill orders on Bob Go. Navigate to orders in the left navigation panel and open an unfulfilled order that you would like to complete, by either clicking on the the order number or the “More ...
    • Bulk tools

      Bulk tools allow users to perform a range of actions on a batch of selected orders or shipments, significantly increasing operational efficiency and reducing manual workload. To execute a bulk action, choose the specific orders or shipments to which ...
    • How to partially fulfil an order

      Navigate to orders in the left navigation panel and open an unfulfilled order that you would like to complete, by either clicking on the the order number or the “More fulfillment options” button. This will open the order details page. Once you ...
    • Shipment health

      Check the health of your shipments by using the shipment health status, shown on shipment listings and the shipment details pages. Shipment health indicates whether a shipment is collected and/or delivered within the specified service level agreement ...