Multi-Technician Jobs

What are Multi-Technician Jobs?

Any job that requires more than one technician, either working together simultaneously or in coordination across different stages of a process, on a common site, is a multi-technician job. Several field-service tasks like two-person lifts, safety-mandated pair work, or complementary trades such as an electrician alongside an HVAC installer – all require simultaneous or coordinated presence of multiple technicians at a site.

Standard Route Optimization treats each job as an isolated visit, making it impossible to model multi-technician jobs. Out of the box, NextBillion.ai’s Route Optimization API provides seamless support for defining and coordinating jobs that demand multi-technician execution. Each member task forming the work group can configure its own time windows, skills, service duration rules or else, skip them to inherit from the group rules. The arrival window of all technicians and service start rules can be controlled by arrival_sync_tolerance_seconds and service_start_rule settings respectively.

Use Case: HVAC Field Service Operations

Consider an HVAC field-service operator running a small crew of specialist technicians – an electrician, an inspector, an installer and a general technician, all leaving from the same depot at the start of the day. Several of the day's appointments are crew jobs. An installation needs the electrician, the inspector and the installer on site together. A follow-up on a customer complaint needs all four trades at once. A maintenance visit needs an electrician, an inspector and a maintainer.

The installation job requires coordination between the technicians, while the remaining two jobs need all required technicians to be available at the site for the service to start. Consequently, none of these can be dispatched as independent visits.

The operator wants the optimizer to:

  • Send each appointment to the exact number of technicians it needs.
  • Hold every member's arrival inside a stated tolerance. A tighter window for a complaint visit, looser for an installation where the crew had a longer drive.
  • If an appointment could not be fulfilled completely, report it as unassigned rather than sending a partial crew
  • Reuse the same technicians across appointments once its earlier crew duty is finished.

All this can be modeled using the coordinate_jobs attribute of Route Optimization API.

How Coordinated Multi-Technician Jobs Works

One Group, One Crew of Distinct Vehicles

Each element of coordinate_jobs is a group, and each group carries a jobs array whose length is the number of technicians required. A group of three members means three technicians, with each on a vehicle of their own.

Two members of the same group are never served by the same vehicle and this distinctness rule applies within a group only. One vehicle may serve a slot in an earlier group and a slot in a later group on the same day, which is what lets a small fleet cover several crew appointments. The only limits are ordinary availability and travel time.

The Arrival Tolerance Window

The optimizer uses a arrival_sync_tolerance_seconds window to make the technicians arrive together. It is the maximum permitted gap between the earliest and the latest member arrival at the shared location. A group is satisfiable when a window of the stated width can be found that every member can reach.

Skill Matching Across Group and Member

Skills resolve in two layers. A group's skills array states what every member's vehicle must have, and each member job’s own skills array states what that particular technician must have on top of group’s skills. The vehicle assigned to a member must hold the union of both sets.

This is how one crew can mix trades. A group that requires skill 7 as a baseline can have one member needing 20 on top of it and another needing 21, and the optimizer will not accept a vehicle holding only 7 for either slot. On the other hand, a crew just needing "any two extra pairs of hands" needs no member skills at all, because the group-level requirement is enough.

Service Duration, Setup and Load Inheritance

A group supplies defaults for service, setup and time_windows, while each member may override any of them. This distinction allows for flexibility when modelling real-world conditions because crew members rarely work for the same length of time. An installer may need an hour on-site, while an inspector may leave after twenty minutes. For time_windows, a member that specifies its own windows replaces the group default rather than intersecting with it. As a result, a technician with a narrow availability drives the meeting time for the whole crew.

Loads follow the opposite rule i.e. delivery and pickup exist only on members, never on the group, because a group-level load would be ambiguous across several vehicles.

Service Start Rule and Waiting Time

service_start_rule decides when the actual job service starts once the crew has assembled, and it has two settings.

  • last_arrival (default): Every member's service begins when the last technician arrives. Earlier arrivals wait, and that wait is reported as waiting_time in the solution. Use this when the crew genuinely needs to works together.
  • first_arrival: Each technician starts their own work the moment they arrive. Arrivals are still held inside the tolerance, but nobody waits for anyone. Use this when presence is what matters and the tasks do not need a synchronized start.

Under last_arrival, the waiting time a technician accrues is a direct read-out of how loosely the tolerance was set. A crew that consistently shows large waiting times at a shared site is a candidate for a tighter arrival_sync_tolerance_seconds, or for first_arrival if the joint start is not actually required.

When a Crew Cannot Be Assembled

A coordination group is all-or-nothing. If the optimizer cannot place the required number of distinct, skill-compatible vehicles that can meet inside the tolerance window, every member goes to unassigned[] under its own id with a group-level reason, and the group is described separately in result.coordination_infeasibility.

Configuring the Feature: Input Parameters

The table below lists some parameter the feature introduces (for full list of parameters, please check out the full API reference).

ParameterType / LocationDescription
coordinate_jobsarray of object / request bodyOne element per crew. Required fields are id, location_index and jobs; additional properties are not allowed. At least one of jobs, coordinate_jobs or shipments must be present
coordinate_jobs.skillsarray of integerBaseline skills required of every member's vehicle, unioned with each member's own skills
coordinate_jobs.serviceintegerDefault on-site duration in seconds; overridden by a member's own service
coordinate_jobs.time_windowsarray of array of integerDefault arrival windows; replaced, not intersected, by a member's own time_windows
coordinate_jobs.arrival_sync_tolerance_secondsintegerMaximum spread in seconds between earliest and latest member arrival. Default 300, maximum 86,400
coordinate_jobs.service_start_rulestringlast_arrival (default) or first_arrival
coordinate_jobs.jobsarray of objectThe crew members, minimum 2. Length equals the technician count required
coordinate_jobs.jobs[].skillsarray of integerThis technician's own skills; unioned with the group's
coordinate_jobs.jobs[].serviceintegerThis technician's on-site duration; defaults to the group's service
options.coordination.default_arrival_sync_tolerance_secondsintegerFallback tolerance for groups that omit their own. Default 300, maximum 86,400
options.coordination.default_service_start_rulestringFallback service start rule for groups that omit their own. Default last_arrival

The scenario in this guide uses three groups, set out below.

GroupSiteMembersToleranceStart ruleArrival window
Group 1: HVAC New InstallationIndex 1201 Electrician, 202 Inspector, 203 Installer2,700 sfirst_arrival09:00–12:00 UTC
Group 2: HVAC ComplaintIndex 2204 Electrician, 205 Installer, 206 Technician, 207 Inspector300 slast_arrival10:30–13:30 UTC
Group 3: HVAC Service MaintenanceIndex 3208 Electrician, 209 Inspector, 210 Maintainer900 slast_arrival11:30–14:30 UTC

Multi-Technician Jobs: API Response Changes

The following table lists main parameters that were added or modified for the multi-technician jobs feature (for full list of changes, please check out the full API reference)

FieldTypeBehaviour
result.routes[].steps[].idexistingReturns the member job id, not the group id
result.routes[].steps[].coordination_group_idintegerNew. Present on every step belonging to a coordinated group; holds the group id
result.routes[].steps[].waiting_timeexistingExtended. Under last_arrival, also includes the wait before the synchronized start
result.coordination_infeasibilityarray of objectNew. Present only when at least one group could not be staffed. Contains the details about the members of the rejected group.
result.coordination_infeasibility[].members[]array of objectNew. Per-member diagnostic
result.unassigned[]existingLists every member of a rejected group under its own id, with type: job and a group-level reason

Example API Request & Response

Example API Request

The request defines a depot and three customer sites requiring crew appointments against them. The installation appointment, Group 1, has a generous 45-minute tolerance and a synchronized work start. Group 2 is a complaint visit where all four trades must be present to start the service and Group 3 needs an unavailable technician skill.

1
curl --location 'https://api.nextbillion.io/optimization/v2?key=<your_api_key>' --header 'Content-Type: application/json' --data '{..}'

Example API Response

The optimizer responds with two successfully scheduled appointments and one appointment as unassigned. The crew members that were placed carry coordination_group_id on their steps, and the unassigned appointment, Group 3, is described in coordination_infeasibility.

1
{
2
"status": "Ok",
3
"result": {
4
"code": 0,
5
"summary": "{...}",
6
"unassigned": "[...]",
7
"coordination_infeasibility": "[...]",
8
"routes": "[...]"
9
}
10
}

Interpreting the Output

Three things carry the story of a coordination group in the response.

  • coordination_group_id on each step tells you which crew a technician's visit belongs to and is the field to group by when you want to reconstruct a crew.
  • arrival across those steps tells you whether the configured arrival tolerance window holds.
  • And, when a group fails, result.coordination_infeasibility and unassigned[] provide details and reasons for the failure

Group 1: Three Members & Three Vehicles

Members 201, 202 and 203 each require one skill, and three vehicles hold those skills. The optimizer placed one member per vehicle with no overlap. All technicians arrive at the same time and under service_start_rule: first_arrival, each technician begins immediately.

Group 2: Four Members within a Five-Minute Spread

Group 2 is the largest crew in the request and the tightest. The fleet is fully occupied by a single appointment. The group inherits the default last_arrival rule, and every member arrives at the same time, and hence no member accrues waiting time (waiting_time: 0 on all four steps).

Group 3: Three Members & Absent Skill

Group 3 could not be staffed, and the following table shows the diagnostics report.

MemberRequired skillEligible vehicleReported reason
208[1]Electricianhas an eligible vehicle, but the group cannot obtain enough distinct vehicles
209[2]Inspectorhas an eligible vehicle, but the group cannot obtain enough distinct vehicles
210[4]noneno vehicle is compatible with this coordinate job (skills, zones or capacity)

The fleet carries skills 1, 2, 3 and 5. Job 210 needs skill 4, and no vehicle in the request holds it. The crew therefore tops out at two technicians, as reported by best_achieved: 2 against required_technicians: 3. The unassigned reasons for Job 208 and Job 209 point to the group-level shortage rather than a fault of their own.

Reusing Vehicles Across Groups

The Technician route shows the cross-group rule in practice. This vehicle holds only skill 5, so it is eligible for member 206. Its whole day is a single crew duty, where it leaves the depot to reach site 2 at the synchronized time, works its 2,700 seconds of service after 360 seconds of setup, and returns.

The other three vehicles prove the complementary half of the rule. Each one serves a slot in Group 1 in the morning and a slot in Group 2 in the afternoon. Distinctness is satisfied inside each group and no vehicle carries two members of the same crew, while the same vehicle appears in two different crews. Thus, enabling the operator to cover six technician slots across two appointments using a four technician/vehicle fleet.

What We Learned

  • Use coordination_group_id to verify crew appointments: A crew has no step of its own. The group exists via a shared identifier stamped across each member's step on a different vehicle. Collect steps by coordination_group_id to reconstruct a crew and verify the spread.
  • Use the arrival tolerance to coordinate technicians: arrival_sync_tolerance_seconds caps the gap between earliest and latest technician arrival. In the response, check the minimum and maximum arrival across a group's steps to verify compliance with the configured tolerance.
  • Distinctness is a within-group rule: The same vehicle legitimately appears in two different crews, as the Electrician, Inspector and Installer routes demonstrate. A vehicle will never serve different members from the same group.
  • A group’s failure is local and full: A group is either fulfilled or rejected completely, with no partial assignments. A rejected crew is reported through unassigned[] and coordination_infeasibility, while the rest of the request plans normally, so a dispatcher can escalate one appointment instead of discarding the day's plan.

Explore other powerful features that the NextBillion.ai’s Route Optimization API can solve seamlessly.