Route planning with your agent
Plan each worker's day in a better order, then save the new times in one step.
What Doing Work provides
routes.day: one day's stops for every worker, in visit time order. Each stop has the address, map point, time, length, arrival window and priority, and says if it is locked because the worker is already on the way, there or done. Each worker's start point (their own, or the shop yard) and any visits with no worker come back too.routes.setLocationandroutes.setStart: save a map point for a job's address, or where a worker starts the day.routes.apply: save new times, and new workers if you want, for up to 100 visits at once. All or nothing: if a visit can't move or the plan leaves a worker with overlapping visits, nothing changes and you get the problems back. Use dry_run to check first.schedule.route: one worker's stops in order with a map link per stop and a driving directions link for the first 10 stops, to send the worker.visits.onTheWay: sends the customer an on-my-way notice with the ETA.
What your agent does
Reads the day with routes.day and orders the stops with a maps or routing tool the shop picks. It shows you the new order and times, then saves them all with routes.apply. Then it sends each worker their stops and directions link.
Paste this into your agent
"Plan tomorrow's routes. Read https://doingwork.work/docs/agent-guides/route-planning/ first. Use routes.day for tomorrow, order each worker's stops with our maps tool, and show me the new times and any worker changes. When I say yes, save them with routes.apply (check with dry_run first). Then send each worker their route from schedule.route with the directions link."
Limits
- Doing Work doesn't optimize routes. Your agent does that with the maps tool you pick, so the order is only as good as that tool.
- Stops with no map point yet need one saved with routes.setLocation, or your agent can look up the address.
- routes.apply moves up to 100 visits at a time, and only visits that are still scheduled.
- The directions link covers the first 10 stops.
More: Agent guides, Compare.