Auto-assign tasks to drivers

Tasks can be automatically assigned to drivers through the Onfleet Dashboard, bulk task import or via API and Zapier.
Note: Drivers must be active (idle or in-transit) to be considered in an auto-assignment decision. Once a driver is chosen, the task will be appended to the end of their assigned task list.
Auto-assign via Dashboard
Dispatchers can quickly auto-assign unassigned tasks within the 
Select a task or tasks to be auto-assigned from the sidebar. Right-click and choose Auto Assign x Tasks… from the context menu.
Choose criteria for assigning to drivers:
  1. To closest driver: This will auto-assign the task to the driver who is currently the shortest distance from the new task's destination.

  2. To shortest route: This will auto-assign the task to the driver who, upon assignment of the new task, will have the shortest total distance to travel. This calculates the distance from the active driver's last-known location to their active task, if there is one, and through to each of the ordered destinations corresponding to the driver's assigned tasks, with the final computation being from their last-assigned task to the newly-created one.




Note: If your organization is using Team Assignment, tasks which are auto-assigned from within a team will be restricted to drivers in that team. 

(Optional) Select advanced options:
  1. Ignore linked tasks: This will auto-assign tasks to drivers without consideration for any linked task structure. Note: This may separate linked tasks across multiple drivers. Contact us if you're not sure if this option is right for you.

  2. Limit assigned tasks per driver: Sets an upper bound to the number of tasks a driver can be assigned at once. For example, if the limit is set to 2 tasks, a driver who already has 2 tasks assigned will not be eligible to receive the auto-assignment, even if they are the closest or have the shortest route.




Auto-assign via Bulk Task Import

Tasks can be auto-assigned to specific teams, drivers or organizations, during the bulk task import process. Follow the steps to do this:

  1. Simply create a column within your CSV or Excel import sheet called Team, Driver or Organization. Fill in those columns according to where you want those tasks to be auto-assigned. 
  2. While import the import wizard, select the appropriate column in the Assign to field, as shown below.
  3. Upon task import, the tasks will be auto-assigned to the designated Team, Driver or Organization. Note: if field is blank within your import sheet, task will be imported as a universally unassigned task.




Auto-assign via API and Zapier

Auto-assigning tasks via the Onfleet API or Zapier integrations is the more robust, and preferred, method for auto-assigning tasks within Onfleet. Please refer to our API docs and Zapier support articles for further assistance.

Additionally, feel free to reach out to with questions about how we can help you get fully integrated with Onfleet.