An AI employee that plans routes every morning, before the team gets in
Hand the morning routing job to an AI employee: it takes the day's stops, shares them out by area, orders each rep's visits and sends every route with directions.
Part of the guide AI employees
An AI employee that plans routes does the dispatcher's first hour of the day on its own. Every morning at a set time it reads the day's stops, shares them out between the people in the field by area, puts each person's visits in an order that wastes the least time on the road, and sends the routes with directions before anyone has made coffee. A person still decides what goes on the list and checks the result; the AI employee does the sorting and ordering.
This is for operations leads, sales managers and small business owners who spend the start of every day rearranging a spreadsheet of addresses: service technicians, merchandisers, inspectors, couriers with fixed rounds, account managers who visit customers. It explains what the job involves, the choices you make once, what each person receives, where the limits are, and how to set it up in xMap Flows.
The morning routing job, step by step
Strip away the tools and the job is the same everywhere. Somebody gathers the stops for the day, decides who takes which, orders each person's stops, works out roughly how long the day will take, and tells everyone. Each of those steps is a block in a flow:
- Gather the stops. They usually live in a table: jobs booked, accounts due a visit, sites to inspect. My data reads a table you keep on the My data page; New rows starts the flow when rows are added to a shared spreadsheet or a table. Stops can also be found, for example new shops from Nearby places.
- Share them out. Split by territory divides the stops between 2 and 12 reps, or up to 20 people you name, in compact areas of about the same size. Each stop carries its owner and its territory (North, South-east, Centre).
- Order them. Route planner builds one route for each owner from a start you pick, by car, on foot or by bike, with or without the drive back.
- Tell everyone. Email sends the routes; a Slack message or a spreadsheet app can carry them too.
The choices you make once
The first setup takes a few decisions that then hold every morning. Getting them right matters more than any clever algorithm.
- Where every route starts. The depot, the office or each rep's home. Pick it from the search so it has a position.
- How people travel. Car, walking or cycling changes both the order and the times; a city-centre merchandiser on foot and a van technician in the suburbs need different settings.
- Whether routes end back at the start. Switch it on when vans return to a depot, off when reps finish at home.
- How many stops fit a day. Route planner takes up to 50 stops in a route and passes the rest on after the routes, said in the step. Decide your own realistic number from how long a visit takes, and cap the list before it reaches the planner with Sort and limit.
- Who shares the work. A fixed team named in Split by territory, or a field in your table that already says who owns each account.
What each person receives
Every stop that is routed keeps its own fields (name, address, phone, notes from your table) and gains its place in the route, the distance and minutes from the stop before, the travel minutes from the start, and the whole route's stops, kilometres and minutes. It also gets a directions link for its part of the route. A long route has several links, because a directions link holds only a handful of stops between its start and end.
A made-up example of how it reads: technician Ada starts at the depot, has 9 stops, 48 km and about two and a half hours of driving, with her first visit 14 minutes away. Ben, covering the centre, has 12 stops close together and under an hour behind the wheel. A manager sees at a glance whether one route is much longer than the others and moves a stop by hand.
Where the limits are
Routes follow the roads when the routing service plans them. When it cannot, because it is not set up, today's share of it is used or a call fails, the order is worked out on straight lines with distances stretched to allow for roads, and the step and every email say the route is an estimate. Estimated routes are a sensible order, not a timed plan.
Route planner orders travel. It does not know opening hours, booked appointment times, lunch breaks or the time a visit takes, so it will not promise that stop seven is reached by 11:00. Keep those rules in the list itself: leave out a shop that is closed on Mondays, or split morning-only customers into their own short run. And it plans one day at a time; it does not spread a month of visits across the calendar.
Setting up the AI employee
The guide to AI employees for field operations covers the wider idea; for the routing job itself, this is the flow:
- Schedule: every weekday at 06:30, in your team's time zone.
- My data: today's stops, from a table your office keeps up to date.
- Filter: only stops marked for today, or due this week.
- Split by territory: between the people working today.
- Route planner: one route for each owner, from the depot, by car.
- Email: one email to the team listing every route by owner and visit order, with a link to the full list as a file.
Run it once by hand and look at the routes before you deploy it. If a route looks wrong, the fix is almost always in the list (a stop with a bad address, a rep who is off today) rather than in the planner. Once it runs on its own, it appears on the Flows page as an AI employee with its own timetable and a record of every morning it worked. Ready-made starting points are Merchandiser visit plan for the week, New outlets, graded and routed to each rep and Field sales routes to sign up new restaurants.
Questions
How many stops can one route hold?
Route planner takes up to 50 stops in a route. Stops past that, and items without a position, go on after the routes and the step says so.
Can each rep get their own route?
Yes. Split by territory gives every stop an owner, and Route planner set to one route for each rep builds a separate route for each owner.
Does it account for appointment times?
No. It orders the stops to save travel. Keep timed appointments out of the list, or in a separate run, and plan them by hand.
What happens if the roads cannot be routed that day?
The order is worked out on straight lines, distances are stretched to allow for roads, and the step and every email say the route is an estimate.
Templates that do this
Read next
More on ai employees and automation · Every article · Templates