capabilities.work

Auto-Assign Task

A 3-step recipe with Onfleet. We can help you get access.

Recipe · 3 steps

Auto-Assign Task

with Onfleet · Last-Mile Delivery Operations Management

Create an auto-assigned task and verify whether a worker was selected.

  1. Create a task that asks Onfleet to auto-assign a worker on the team.
  2. Read the task back to determine whether a worker was assigned.
  3. Re-read the task to surface that it is still unassigned (state 0).
What you'll need to have ready
  • teamId: The team id to auto-assign the task within.
  • unparsedAddress: A single-line street address Onfleet will geocode.
  • mode: Auto-assign mode, either "distance" or "load".
  • completeBefore: Latest completion time in Unix milliseconds.
  • taskNotes: Optional notes shown to the assigned worker.
For your developer

Arazzo workflow onfleet:auto-assign-task, 3 operations: createTask → getTask → getTask. Specs on APIs.io.