> For the complete documentation index, see [llms.txt](https://docs.shortcutco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shortcutco.com/readme/dispatch/optimize-routes-and-the-assistant.md).

# Optimize routes, Fix today, and Balance teams

Let Shortcut work out the driving order, fix a day's problems, or even out the work between teams. You always see a preview first.

You can always order routes by hand (see [Assign crews and set the route order](https://docs.shortcutco.com/readme/dispatch/assigning-and-ordering-routes.md)). These tools do it for you, and they always show you a preview before anything changes.

{% embed url="<https://www.youtube.com/watch?v=EPD1PFojCVs>" %}
Video: optimizing six teams in one pass (1:48).
{% endembed %}

## Before you start: two settings that make a big difference

1. **Set your route start and end address.** Open **Settings → Operations → Scheduling & jobs** and enter where teams start and finish the day (your shop or yard). The optimizer plans the route from there and back. If you leave it blank, it just orders the stops relative to each other. See [Scheduling & jobs](https://docs.shortcutco.com/readme/configuration/settings-capacity-+-route-start-and-end.md).
2. **Make sure addresses can be found on the map.** A stop that Shortcut can't place on the map is skipped by the optimizer and stays where it was. These show up on the **Needs attention** tab as **Missing coordinates**, with a **Fix address** button.

## Optimize routes

**For the whole day:** open **⋯** in the header and choose **Optimize routes**.

**For one team:** open the **⋯** on that team's lane header and choose **Optimize**.

**On a phone:** tap the route button in the Dispatch header for all teams, or **Optimize route** on a team's header for just that team.

Either way, a window opens (**Optimize All Routes** or **Optimize Route:** and the team's name) and starts working straight away; there are no settings to choose. Stops in the **Unassigned** lane are left out because they don't belong to a route yet.

* **One team** puts that team's scheduled stops in the shortest driving order. Nothing moves to another team.
* **All teams** plans the whole day at once, so it can also move a stop to a different team when that shortens the day overall. It spreads the work across every team on the day, so no team is given much more than the larger of its own plan and an even share of the day. It treats teams as interchangeable, though: it doesn't know which team handles chemical or irrigation work. If a team's stops must stay with that team, optimize that team on its own instead.

While it runs you'll see **Optimizing routes** with a timer. A big day can take a couple of minutes. Keep the window open.

When it's done you get **Preview ready**. Nothing has changed yet. The preview shows:

* **What you'd save.** A table with one row per team: **Miles** and **Drive time**, before → after, with the difference (for example **42.3 → 35.1 −7.2 mi** and **1 h 50 min → 1 h 32 min −18 min**). When you optimize all teams, an **All teams** row at the bottom adds them up. Drive time is time on the road only, not time on site. If Shortcut couldn't measure the before and after for every team, you'll see **Savings unavailable for this run.** instead of numbers.
* **What moves.** Each customer whose place changes, with **Stop 7 → Stop 3** and **Earlier** or **Later**.

Click **Apply preview** to use the new order, or **Close** to keep what you had. After applying, the board refreshes with the new numbers.

<figure><img src="https://2299783971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOhi7KtJ4vY1pDKwWu5SV%2Fuploads%2Fgit-blob-e34edfdef08e918d53d0c254249a8c135afe3244%2Fdispatch-optimize-savings.png?alt=media" alt="The Optimize All Routes preview: Preview ready, 61 stops resequenced, a table with Miles and Drive time before and after for Crew 1 to Crew 6 and an All teams total, and the list of stops that move with Stop 1 → 10 and Later"><figcaption><p>Before you apply, the preview shows each team's miles and drive time before and after, and which stops move.</p></figcaption></figure>

A few things to know:

* **Teams hear about it when it matters to them.** If applying gives a team a stop or takes one away today, or changes the order of their next three unstarted stops, everyone on that team gets a **Your route changed** push. Otherwise they see the new order the next time they open Today. See [What your crew sees](https://docs.shortcutco.com/readme/dispatch/assigning-and-ordering-routes.md#what-your-crew-sees).
* **The new order is for today only.** If you'd like it to stick, drag any stop slightly and use **Keep every Tuesday** on the pill that appears, or simply run Optimize again next week. After **Optimize routes** for all teams, that button saves one team's order at a time, so do it on each team you want to keep. Stops that moved to another team stay there for today only.
* **There's no undo after applying**, so check the preview first. If you don't like the result, drag the stops back or run Optimize again. If you drag a stop after applying, the pill's **Undo** reverses just that drag and leaves the optimized order in place.
* **If one team would end up with far too much,** Optimize stops before showing a preview, for example *"Route optimization would give one team 40 stops (limit 18), so no preview was created and nothing changed."* Check the day's teams and stops, then try again, or optimize teams one at a time.
* If something goes wrong you'll see **Optimization failed safely. No changes were made.** with a **Retry optimization** button.

## Fix today, Balance teams, and other Dispatch shortcuts

On a computer, open **Jump to** while you're on Dispatch: press **⌘K** (Mac), **Ctrl K** (Windows) or **/**, or click **Jump to...** in the sidebar. Dispatch's shortcuts come first, under **Dispatch**. Type a few letters to find one, for example *unass* for **Show unassigned jobs**.

* **Fix today's schedule** and **Balance teams** (below).
* **Rain plan** opens **Fix today's schedule** for the day.
* **Show unassigned jobs** filters the board to jobs with no team and highlights them.
* **Open unscheduled jobs** opens the **Unscheduled** view.
* **Show map** or **Hide map**.
* **Show at-risk jobs** highlights the jobs Dispatch flagged, and lists the problems in a message.
* The board's own suggestions for the day, such as optimizing one team's route. Each opens a preview first.
* **Review route optimization**, when an optimization you started is waiting for you.

**Fix today's schedule**, **Balance teams** and **Show at-risk jobs** are on the Optimize plan. On another plan the row shows **Optimize**, and choosing it offers **See plans**.

### Fix today's schedule

Looks at what Dispatch flagged on the day you're viewing (stops with no team, teams with too much, visits that can't fit) and proposes the fixes.

1. Choose **Fix today's schedule**. The **Fix Schedule** window opens and says **Clip is looking at the board...**
2. You'll see a list of changes, for example *Fix Thu Nov 5: 3 changes*. Each row names the customer and service, the change (another team, another day, or a new place in a route), and the reason.
3. Untick any change you don't want.
4. Click **Apply all** (**Apply it** when there's one change, or **Apply** with the number you left ticked). Click **Cancel** to change nothing.

Teams see the change on their route. Customers whose visits move to another day get a text only if your automations send one. If the day needs nothing, you'll see **Schedule looks good**.

After applying, **Undo all** puts the changes back when it's offered. Click **Done** to close.

### Balance teams

Spreads the day's work more evenly across your teams.

1. Choose **Balance teams**. The **Balance Teams** window opens.
2. The top line says how many visits would move, for example *Balance crews on Wed Oct 28: move 1 visit*. **Booked hours** shows each team's hours **Before** and **After**. Under it, each visit to move names the customer and service, the old and new team, and the reason.
3. Untick any move you don't want.
4. Click **Move it** (**Move all** with the number when there are several, or **Apply** with the number you left ticked). Click **Cancel** to change nothing.

Teams see the change on their route. No customer is texted. If the day is already even, you'll see **Teams are balanced**.

After moving, **Undo all** puts the visits back when it's offered. Click **Done** to close.

<figure><img src="https://2299783971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOhi7KtJ4vY1pDKwWu5SV%2Fuploads%2Fgit-blob-a5bd23cbda21d9cb6d7d1cc71d2d48f00a89d712%2Fdispatch-balance-teams.png?alt=media" alt="The Balance Teams window for Wed Oct 28: Booked hours for Crew 1 to Crew 6, Before and After, with Crew 2 going from 7h 22m to 6h 49m and Crew 5 from 5h 56m to 6h 29m, and one ticked move, Wade Abbott · Lawn Mowing from Crew 2 to Crew 5 because Crew 2 has more work"><figcaption><p>Balance Teams shows each team's booked hours before and after, and the visits it would move.</p></figcaption></figure>

## Related pages

* [Dispatch overview](https://docs.shortcutco.com/readme/dispatch.md)
* [Assign crews and set the route order](https://docs.shortcutco.com/readme/dispatch/assigning-and-ordering-routes.md)
* [Scheduling & jobs (route start and end)](https://docs.shortcutco.com/readme/configuration/settings-capacity-+-route-start-and-end.md)
* [Route map](https://docs.shortcutco.com/readme/dispatch/route-map.md)
* [Ask Clip and use Jump to](https://docs.shortcutco.com/readme/clip/ask-clip-and-the-command-menu.md)

<details>

<summary>Still stuck?</summary>

Use **Contact us** in the account menu, or email **<hello@shortcutco.com>**, with the date, which team, and a screenshot of the preview.

</details>
