🚦Creating a dispatch rule

Dispatch rules determine which drivers are getting assigned to an order once they are ready for delivery. Multiple conditions can be set in one rule. One example is to assign orders to a driver based on the delivery location. Let's do just that!

Step 1 - Navigate to dispatch rules setup

The dispatch rules setup page is enabled in both Sales and Inventory. Once you are on either pages, click on "Configuration".

Click "Dispatch rules".

Step 2 - Creating a rule

Click "Create". We are going to create a rule for assigning orders by matching delivery destination to the driver's city.

Type in the name "Talisay Orders" and in conditions click "Add a line".

Check "Order city from Talisay" and click "Select".

Step 3 - Selecting a driver

Now, we are going to select the preferred drivers. For now, let's just select one.

On the "Preferred Drivers" click "Add a line"

From here, you will see a list of users. Let's click on "Filters".

At the bottom part, select"Add Custom Filter" and "Has Vehicle" : "Is Yes". And click "Apply".

Select one.

Then finally, click "Create" or "Save manually" button.

Now we have a dispatch rule for Talisay Orders to be matched with Delfin Nav for delivery.

Further improvements

At present there are two conditions for this proof-of-concept — the delivery city, and the packaging size of the order. More conditions to be added soon!

The selection of preferred drivers is easy if there is only one matching driver. Currently, when there are multiple drivers preferred, a random selection is done. In the future, other features will be considered for the selection.

Last updated