
Field Sales AI
Route-IA
Visit routes that fit the day: balanced territories, the right frequency and respected time windows, with no external map service.
What it is
An AI product to plan the field team's routine. You upload the customer spreadsheet with latitude and longitude, visit time, time window and frequency, and register the team with starting base, workday and working days. A proprietary combinatorial optimization engine draws balanced territories, spreads visits across the cycle days and builds every route within windows, lunch and workday, using Clarke-Wright, 2-opt, Or-opt and ALNS. Everything is computed inside the product: distance is the straight line times a detour factor calibrated with real distances, and the map is drawn from the points themselves.
Applications
- Workload-balanced territories (capacitated k-means)
- 1, 2 or 4-week plans by frequency: weekly, twice a week, biweekly and monthly
- Routes with time windows, lunch, workday and daily visit cap
- Map and schedule by rep and day, with an itinerary exportable to CSV
- Comparison with the spreadsheet order and nearest neighbor, with savings in km and cost
- No external service: distance calibrated by real distances or an uploaded matrix
Route-IA turns the customer spreadsheet into an optimized visit plan, with map, schedule and measured savings, and the AI explains what changed.
Scientific basis
The science, algorithms and models behind Route-IA
Route-IA solves a classic operations research problem: the periodic vehicle routing problem with time windows. A proprietary, deterministic engine draws territories, spreads visits across the cycle days and optimizes every route within workday, lunch and time windows. Nothing leaves the machine: no Google Maps, no routing service and no third-party maps. The AI only explains the numbers the engine computed.
- 01
Distance with no external service
The distance between two points is the great-circle distance, from the haversine formula on the coordinates, multiplied by a detour factor that captures how much longer the street is than the straight line. If you upload a distance matrix or measured legs, they replace the estimate.
d = f · 2R · arcsin √(sin²(Δφ/2) + cos φ₁ · cos φ₂ · sin²(Δλ/2))
References: Sinnott (1984) · Love & Morris (1979) · Boscoe, Henry & Zdeb (2012)
- 02
Calibrating the factor by least squares
With 3 or more known real distances (odometer, history), the engine estimates the factor by regression through the origin and reports the mean error, the maximum error and the centered R². Outside the plausible range the factor is clamped and flagged; with a large error, the report recommends uploading the matrix.
f̂ = Σ dᵣ · dₕ / Σ dₕ²
References: Legendre (1805) · Gauss (1809) · Ballou, Rahardja & Sakai (2002)
- 03
Time, workday, lunch and windows
Each leg uses the urban speed for the first kilometers and the highway speed for the rest. Every route leaves the base at the start of the workday, waits for windows to open, takes lunch once the lunch time has passed (or within a long wait) and returns to the base. A visit is only accepted if it starts inside its window and the route fits the workday and the visit cap.
t = min(d, L)/vᵤ + max(0, d − L)/vᵣ
References: Solomon (1987) · Desrochers, Desrosiers & Solomon (1992)
- 04
Balanced territories: capacitated k-means
When a point has no fixed rep, the engine groups points into territories starting from the bases. Each point's load is its number of visits times visit time plus typical travel; each person's target load is proportional to their available hours. Points choose in regret order and centers move to the weighted centroid, pulled toward the base.
min Σ wᵢ · [h(i, cₖ) + ½ h(i, bₖ)] | Σ wᵢ ≤ 1,03 · W · Cₖ / Σ C
References: MacQueen (1967) · Lloyd (1982) · Mulvey & Beck (1984) · Kalcsics, Nickel & Schröder (2005)
- 05
Periodic visit plan
Frequency becomes day patterns: weekly on the same weekday, twice a week 2 to 4 days apart, biweekly on alternating weeks, monthly on one day of one week. The most demanding points choose first the pattern that least increases the day's load (quadratic cost) and stays closest to the points already set for that day.
c(p) = Σ_{d∈p} [(2Lᵈ·w + w²)/C + t(i, c̄ᵈ)]
References: Beltrami & Bodin (1974) · Christofides & Beasley (1984) · Cordeau, Gendreau & Laporte (1997)
- 06
Construction: Clarke-Wright and cheapest insertion
The engine builds two solutions and keeps the better one: Clarke and Wright savings, which merges routes by largest saving when the merge respects windows and workday, and cheapest insertion with time windows, which places each visit at the feasible position with the smallest increase.
s(i, j) = c(b, i) + c(j, b) − c(i, j)
References: Clarke & Wright (1964) · Solomon (1987)
- 07
Local search: 2-opt, Or-opt, relocate and swap
Within a route, 2-opt reverses crossing segments and Or-opt moves blocks of 1 to 3 visits. Between routes, a point leaves with all its visits and returns with the best rep, pattern and position, and two neighboring points of different reps swap owners. Only moves that lower the total cost and stay feasible are kept.
Δ = c(a, j) + c(i, k) − c(a, i) − c(j, k) < 0
References: Croes (1958) · Lin (1965) · Or (1976) · Savelsbergh (1992)
- 08
ALNS with simulated annealing
Adaptive large neighborhood search destroys part of the solution (random, worst, related by proximity or a whole route) and rebuilds it (greedy, regret-2 or hardest first). Operator weights adapt to success and simulated annealing accepts worse solutions with a probability that falls with temperature. Same seed, same result.
P(A) = e^(−Δ/T), T ← α·T, ωₒ ← 0,9·ωₒ + 0,1·πₒ/uₒ
References: Kirkpatrick, Gelatt & Vecchi (1983) · Shaw (1998) · Ropke & Pisinger (2006)
- 09
Objective, balance and priority
The cost adds kilometers and minutes with the weights of the chosen goal (km, time, cost per km and per hour, or balance), plus the workload deviation across people. Serving comes before shortening: an unserved point carries a penalty larger than any route, growing with priority or revenue. When the team cannot cover everything, the lowest-priority points go first, each with its reason.
Z = Σᵣ (cₖ·kmᵣ + cₘ·minᵣ) + λ·Σᵥ |ρᵥ − ρ̄| + Σ_{i∉S} M·nᵢ·(1 + 2πᵢ)
References: Toth & Vigo (2014) · Matl, Hartl & Vidal (2018)
- 10
Honest comparison with the naive route
For the same served visits, the report computes how it would look without the engine: nearest base, rotating days and the spreadsheet order, and also the nearest neighbor. These routes ignore windows and workday, and the report shows the visits outside the window and the overtime they would cause.
s = (d₀ − d*) / d₀
References: Rosenkrantz, Stearns & Lewis (1977) · Johnson & McGeoch (1997)
Reproducible optimization, no black box
What goes into each route is decided by published algorithms, with explicit rules and a recorded seed. Distance is an estimate: with straight line and factor, each leg may be off by 10% to 25%, and the report says so. Calibrating with real distances or uploading the matrix makes the plan more faithful.
Discover the other products
Price-IA
Optimize prices, discounts and margins
Trade-IA
Measure the causal effect of trade actions and allocate the budget by store and week
Comerc-IA
Guide the commercial routine
Diagnostic-IA
Diagnose commercial operations with data, interviews and evidence
Negot-IA
Train and prepare commercial negotiations
Anot-AI
Convert WhatsApp orders into sales orders in the ERP
JBP-IA
Build and track joint business plans (JBP)
Link-AI
Bring links, offers and contacts together on a public page
Strategic-IA
Choose, execute and adjust strategies under uncertainty
Vend-AI
Practice discovery, value proposition, objection handling and closing
Decision-IA
Prioritize business projects, investments and initiatives
Forecast-IA
Forecast sales, demand and target attainment
Churn-IA
Predict customer churn and prioritize retention by return
Portfolio-IA
Evaluate and optimize the product mix
Coach-IA
Analyze real sales meetings and coach improvements
Map-IA
Map processes and deploy AI agents at every step
Resolve-AI
Resolve bureaucratic customer-service requests
Entrevista-AI
Run and evaluate video interviews
Talk-AI
Serve your website visitors with an AI trained on your content
Blog-AI
Keep an active blog with AI-written articles
Argument-IA
Practice challenging, defending and handling objections
Dialog-AI
Practice conversations with reports, peers and bosses
Scenario-IA
Build long-term economic and commercial scenarios
Compet-IA
Simulate competitor moves and strategic responses
Entr-AI
Prepare travelers for border control with honesty and clarity