Optimize schedules with Scheduling Operations Agent

Completed

Scheduling Operations Agent in Dynamics 365 Field Service optimizes technician schedules by evaluating existing bookings and unfulfilled resource requirements. You can review a suggestion before accepting it or configure a batch plan to apply results automatically.

For example, a service organization has four technicians in its North service territory. One customer cancels an afternoon visit, another repair overruns, and several urgent work orders remain unscheduled. You need to adjust the affected schedules without losing sight of existing appointments.

Important

Scheduling Operations Agent is currently a preview feature. Preview features aren't intended for production use and can have restricted functionality. Evaluate the workflows in this unit in a test environment.

An administrator must enable the agent and configure its consumption-based billing. The Scheduling Operations Agent User role supports interactive runs and running existing batch plans. Creating scopes, goals, and plans requires the Scheduling Operations Agent Administrator role. These roles supplement the appropriate dispatcher access. See Set up Scheduling Operations Agent.

Choose an optimization approach

Use the approach that matches the scheduling problem:

Situation Approach
A cancellation leaves a gap in one technician's afternoon. Run an interactive optimization for that technician and review suitable work to fill the gap.
A repair overrun affects several technicians' remaining appointments. Optimize the affected resources together interactively, then compare their proposed schedules.
Open work needs assignment across the North territory. Run a batch plan for the eligible team and requirements.
The next few days need regular rebalancing as work arrives. Configure a recurring batch plan and choose whether each result requires review or applies automatically.

The agent considers the selected resources, eligible open requirements, and existing bookings it can change. A goal combines objectives, such as reducing travel or including high-priority work, with scheduling constraints. Those objectives involve trade-offs: a priority-oriented goal can include more urgent work at the cost of longer travel.

The agent preserves bookings marked Do Not Move and respects work hours and breaks. It doesn't guarantee an assignment for every requirement. Check the resulting schedules and any unassigned work rather than assuming that an optimization resolves the entire backlog. See Scheduling Operations Agent overview.

Review an interactive schedule suggestion

Interactive optimization supports up to five resources. For the canceled North territory visit, start with the affected technician; include a nearby colleague if their schedules need adjustment together.

  1. On the schedule board, right-click the resource name and select Suggest schedule. For several resources, hold Ctrl, select their rows, and select Suggest schedule on the toolbar.
  2. Confirm the resources, time range, and time zone in the settings panel. Limit the request to the part of the day you need to change.
  3. Select a scheduling goal. For example, Maximize Utilization balances productive time with priority, promise windows, and travel.
  4. Select a requirement view containing the open jobs you want considered, and check the scheduling options for characteristics, territories, and time windows. Don't disable a necessary constraint just to obtain more assignments.
  5. Review the suggested schedule against the current one. Expand resource rows to inspect appointments, and compare the current and suggested routes on the map.
  6. Select Apply to accept the suggestion, Adjust settings to rerun with different settings, or Cancel to discard it without changes.

For the afternoon gap, check whether the added job fits its promised window, has a suitable technician, and leaves enough time for later visits. Review any moved or removed appointments, not only the newly assigned job.

An interactive request supports up to 120 jobs, counting existing bookings and open requirements together, and a time window of up to 72 hours. Keep the requirement view focused so excess records don't exclude the work you intend to consider. See Run interactive optimizations.

Run batch plans and choose the level of autonomy

Batch optimization handles broader sets asynchronously. Three records define the work:

Record Purpose North territory example
Scope Selects resources, unfulfilled requirements, and existing bookings the agent can change. Include the territory's eligible technicians, open repair requirements, and relevant bookings.
Goal Defines objectives and constraints. Balance high-priority work with travel and the organization's scheduling rules.
Plan Combines a scope, goal, and time range with application and recurrence settings. Rebalance the team's next two days and decide how to approve changes.

With the administrator role, open Settings > Optimization > Scheduling Plans in the Resource Scheduling app and select New. Enter a name, select the scope and scheduling goal, choose the Apply method, set the time range, and save. With the user role, run an existing approved plan instead of creating or changing its configuration.

Execution and application are separate decisions:

Setting What it controls
On-demand run Starts when you select Run optimization plan.
Recurrence Starts runs on a configured schedule.
Review before apply Holds each suggested result for review before bookings change.
Apply automatically Applies the result without a separate approval for that run.

A recurring plan with Review before apply automates the optimization request, but still needs someone to approve the changes. A recurring plan with Apply automatically makes the workflow autonomous: the agent runs and applies scheduling changes within the configured scope and goal. An on-demand plan can also apply automatically. Recurrence alone doesn't determine whether results need review.

For the North territory evaluation, start with a narrow scope and Review before apply. Compare several runs and refine the goal before considering automatic application in the test environment. Confirm who monitors the plan and handles exceptions. See Run batch optimizations.

Supervise results and investigate exceptions

Open a plan's Optimization Requests grid to monitor runs. For a request marked Ready for review, open the result and check these views:

  • Gantt: Inspect each resource's suggested appointments.
  • Map: Compare visit order and travel routes.
  • Booking details: Examine Create, Update, Delete, and None change types, along with resources and times.
  • Open requirements: Investigate jobs that couldn't be scheduled, including their priority and promise times.

Select Apply only after reviewing the changes. Application is asynchronous. If bookings, requirements, or resources change after the run, the agent warns you before applying. A batch result can't be applied if it's more than 72 hours old or past the start of its time range.

Use exceptions to direct the next action:

Result What to investigate
A requirement remains unassigned. Check duration, location, promised times, required characteristics, and eligible resource work hours.
An appointment doesn't move despite a gap elsewhere. Check its booking status optimization method and booking-level restrictions. A status without an optimization method defaults to Do Not Move.
The suggestion changes an appointment you need to preserve. Review the booking's approved protection settings before rerunning; inspect deletion changes as well as moved bookings.
A request is Failed, or the result is incomplete. Investigate the request and the documented limits, then correct the data or narrow the optimization before another run.

Don't treat automatic application as automatic resolution of every service exception. Monitor results, investigate outstanding work, and follow the organization's communication process for changed appointments. See Improve optimization results and Limits and troubleshooting.