Integrating an AI routing engine with ServiceTitan centers on its dispatch board and the underlying Job and Technician objects. The integration typically works by pulling a daily snapshot of scheduled jobs—including location, priority, estimated duration, required skills, and parts on the truck—via ServiceTitan's REST API. An external AI model processes this data alongside real-time feeds for traffic and weather, then returns an optimized sequence and assignment. This optimized schedule is pushed back into ServiceTitan, updating the Dispatch Board and individual technician schedules via the API, allowing dispatchers to review and approve changes within their familiar interface.
Integration
AI Integration for ServiceTitan Route Optimization

Where AI Fits into ServiceTitan's Dispatch Workflow
A technical blueprint for integrating AI-driven route optimization into ServiceTitan's core dispatch operations.
The high-value impact is turning a static morning schedule into a dynamic plan that adapts throughout the day. For example, when a high-priority emergency job is added, the AI can instantly re-optimize the remaining routes for the affected technicians, minimizing the cascading delays to other appointments. This reduces drive time by 10-20% in practice, directly translating to more jobs completed per day, lower fuel costs, and improved on-time arrival rates. The system acts as a co-pilot for the dispatcher, who retains final approval but is freed from manual map gazing and constant mental recalculation.
A production rollout involves a phased approach: start with a read-only integration to generate and display recommended routes without making live changes, building trust with the dispatch team. Governance is critical; all AI-suggested changes should be logged in a separate audit trail, and the system should include a manual override toggle. The integration must respect ServiceTitan's existing business rules, such as technician certifications, customer preferences, and promised time windows, which are enforced by using the AI model's constraints. For teams exploring this, we recommend beginning with a pilot group of 5-10 technicians to validate the model's accuracy and refine the workflow before scaling. For related patterns, see our guides on AI Integration for ServiceTitan Work Order Automation and AI Integration for ServiceTitan Technician Copilots.
Key ServiceTitan APIs and Data Surfaces for Routing
Core Objects for Route Optimization
The Jobs and Dispatch APIs provide the primary data model for building and optimizing daily routes. The Job object contains essential fields like Address, ScheduledStart, EstimatedDuration, Priority, and RequiredSkill. The Technician object includes HomeAddress, ShiftHours, and Certifications.
To feed an AI routing engine, you typically poll or subscribe to these endpoints to get a real-time snapshot of pending jobs and available technicians. The optimization logic—whether a third-party service like NextBillion.ai or a custom algorithm—processes this data alongside external factors (traffic, weather) and pushes optimized assignments back via the Dispatch API's assignment endpoints.
json// Example GET /jobs payload snippet for routing { "id": 12345, "property": { "address": "123 Main St...", "latitude": 34.0522, "longitude": -118.2437 }, "scheduledStart": "2024-05-15T09:00:00Z", "estimatedDurationMinutes": 90, "priority": "High", "requiredSkillIds": [7, 12] }
High-Value AI Routing Use Cases for ServiceTitan
Integrating third-party or custom AI routing engines with ServiceTitan's dispatch data unlocks dynamic, multi-factor route optimization. These use cases detail where AI connects to reduce drive time, improve on-time arrivals, and balance technician workloads.
Dynamic Multi-Technician Route Sequencing
AI analyzes the day's open work orders, real-time technician GPS locations, job priority, and estimated duration to re-sequence the dispatch board in real-time. This moves beyond static zones, creating optimal daily routes that adapt to traffic, cancellations, and emergency adds.
Predictive Job Duration for Capacity Planning
Integrate ML models with ServiceTitan's historical job data (service type, technician, parts used) to predict accurate job durations. This intelligence feeds the routing engine to prevent overbooking, create realistic travel buffers, and balance daily technician capacity before dispatch.
Real-Time ETA Updates & Proactive Customer Comms
Connect AI routing outputs to ServiceTitan's customer communication APIs. As routes are dynamically optimized, the system automatically triggers SMS or email updates with revised ETAs. This reduces inbound "where's my tech?" calls and improves customer satisfaction scores (CSAT).
Fuel & EV Range-Aware Routing
For fleets with mixed fuel/electric vehicles, AI incorporates vehicle-specific constraints like EV charging station locations and estimated range. The engine optimizes routes to ensure technicians can complete their assigned jobs without running out of charge or needing inefficient refueling detours.
Skills-Based & Inventory-Constrained Dispatch
Augment basic location routing by integrating with ServiceTitan's technician skill certifications and truck stock levels. The AI engine ensures a job is routed to a qualified tech whose van has the required parts, maximizing first-time fix rates and reducing costly secondary trips.
Post-Job Analysis & Continuous Learning
Implement a feedback loop where actual job completion times, traffic conditions, and customer feedback are sent back to the AI model. This continuously retrains the routing algorithms using ServiceTitan's operational data, improving prediction accuracy and optimization over time.
Example AI-Driven Routing Workflows
These workflows detail how to connect third-party or custom AI routing engines to ServiceTitan's dispatch data. Each pattern is designed to be implemented via ServiceTitan's API, triggering dynamic route optimization that respects business rules and technician constraints.
Trigger: Dispatcher opens the Dispatch Board each morning, or an automated job runs 30 minutes before the first technician's start time.
Context/Data Pulled:
- Pull all
Jobrecords for the day with statusDispatchedorScheduled. - Fetch associated
Customeraddresses and geocodes. - Pull
Technicianrecords, including their home base location, skill tags, truck inventory levels, and scheduled breaks. - Retrieve real-time traffic conditions for the service area via an external API (e.g., Google Maps).
Model/Agent Action: The AI routing engine processes the data, considering:
- Estimated job duration (based on historical ServiceTitan
Jobdata). - Hard constraints (technician certifications, required parts on truck).
- Soft constraints (customer time windows, priority levels).
- Objective: Minimize total drive time while maximizing on-time arrivals.
System Update/Next Step:
The optimized sequence is posted back to ServiceTitan via the Job API, updating the Appointment start/end times and the assigned technician if a re-assignment improves the route. The dispatch board refreshes automatically.
Human Review Point: The dispatcher reviews the proposed changes in a "Preview" pane, can lock specific high-priority jobs, and approves the final schedule before technicians are notified via the mobile app.
Typical Integration Architecture and Data Flow
A practical blueprint for connecting an AI routing engine to ServiceTitan's dispatch data to generate dynamic, efficient daily schedules.
The integration architecture is event-driven, centered on ServiceTitan's dispatch board and its underlying data objects. A typical flow begins by extracting the day's scheduled jobs from the Job and Dispatch objects, along with technician details from the Technician object (location, skills, vehicle type). This data is packaged into a payload containing job addresses, estimated durations, priority flags, required parts, and any customer-specific time windows. This payload is sent via a secure API call—often triggered by a scheduled automation or a dispatcher's manual "optimize" action—to an external AI routing engine (e.g., a custom model or third-party service like NextBillion.ai).
The AI engine processes this input against real-time constraints like traffic, weather, and technician breaks. It returns an optimized sequence: a re-ordered list of job assignments per technician with calculated travel times and updated ETAs. This optimized schedule is then pushed back into ServiceTitan via its Dispatch API, updating the dispatch board. The system can also write proposed changes to a custom ProposedRoute object for dispatcher review and approval before finalizing, ensuring human-in-the-loop governance. Key to this flow is a bidirectional sync that updates job statuses (e.g., En Route, On Site) from the ServiceTitan mobile app back to the routing engine, allowing for real-time re-optimization if delays occur.
Rollout typically starts with a pilot group of technicians. Governance is critical: the integration should maintain a full audit log of all optimization requests and applied changes within ServiceTitan or a separate logging service. Performance is measured by comparing key metrics like total drive time, on-time arrival rates, and technician utilization before and after AI integration. The goal isn't perfection but consistent, incremental improvement—turning a dispatcher's complex, hour-long puzzle into a validated, data-backed schedule in minutes.
Code and Payload Examples
Triggering an AI Routing Engine
When a dispatcher finalizes the day's schedule, a background job in your integration layer should call the AI routing service. This payload includes the essential job and technician data from ServiceTitan needed for optimization.
pythonimport requests # Example payload to send to a custom routing microservice optimization_payload = { "dispatch_date": "2024-05-15", "jobs": [ { "job_id": "ST-1001", "address": "123 Main St...", "coordinates": {"lat": 34.0522, "lng": -118.2437}, "estimated_duration_minutes": 90, "priority": "high", "required_skills": ["HVAC"], "time_window_start": "09:00", "time_window_end": "12:00" } # ... more jobs ], "technicians": [ { "tech_id": "T-501", "start_location": {"lat": 34.0632, "lng": -118.3581}, "skills": ["HVAC", "Electrical"], "shift_start": "08:00", "shift_end": "17:00" } # ... more technicians ], "optimization_goals": ["minimize_drive_time", "balance_workload"] } # Send to your AI routing endpoint response = requests.post( "https://api.your-routing-engine.com/v1/optimize", json=optimization_payload, headers={"Authorization": "Bearer YOUR_API_KEY"} ) optimized_schedule = response.json()
The AI service returns a new sequence of jobs per technician, calculating optimal travel times and respecting constraints.
Realistic Operational Impact and Time Savings
This table illustrates the tangible improvements in daily dispatch operations after integrating a third-party AI routing engine with ServiceTitan's job and technician data. Metrics are based on typical implementations for mid-sized HVAC, plumbing, or electrical service companies.
| Metric | Before AI | After AI | Notes |
|---|---|---|---|
Daily route planning time | 45–90 minutes manual drag-and-drop | 5–15 minutes review & adjustment | AI proposes optimized sequences; dispatcher approves and handles exceptions. |
Average drive time per technician | 2.5–3.5 hours | 2.0–2.8 hours | Reduction from dynamic sequencing that accounts for traffic, job duration, and priority. |
On-time arrival rate | 70–80% | 85–92% | Improved ETA accuracy from predictive travel times and buffer logic. |
Fuel cost per truck (monthly) | Based on historical averages | 5–12% reduction | Savings from reduced mileage and idle time via efficient clustering. |
Last-minute schedule changes | Reactive, disrupts entire board | Proactive re-optimization in <2 mins | AI re-sequences remaining jobs when a delay or new emergency job is added. |
Dispatcher cognitive load | High: constant juggling of maps, times, skills | Moderate: focus on exceptions & communication | System handles combinatorial optimization; human focuses on customer and technician needs. |
Pilot to full rollout | Manual process mapping: 4–6 weeks | Phased go-live: 2–3 weeks | Initial integration focuses on a single territory or service line to validate logic and gain trust. |
Governance, Security, and Phased Rollout
A controlled implementation ensures AI-driven route changes are trusted, secure, and deliver measurable ROI.
A production-grade AI routing integration operates as a decision-support layer on top of ServiceTitan's dispatch data. The core pattern involves a secure, containerized service that pulls the day's job list (via ServiceTitan's Jobs and Technicians APIs), enriches it with real-time traffic and weather data, runs optimization algorithms, and returns a proposed schedule. This service should never write directly to ServiceTitan's dispatch board; instead, it pushes optimized routes to a dedicated dispatch review queue within ServiceTitan (e.g., as a custom object or via a connected app). This creates a mandatory human-in-the-loop step where dispatchers can review, adjust, and approve AI-suggested changes, maintaining operational control and building trust in the system.
Security is paramount, as the integration handles sensitive PII (customer addresses) and business-critical scheduling data. Implement OAuth 2.0 with scoped permissions for ServiceTitan API access, ensuring the AI service only has read/write access to necessary objects. All data in transit must be encrypted (TLS 1.3), and any cached job data for model training should be anonymized and purged based on a strict retention policy. For on-premise or hybrid deployments, the routing engine can be deployed within the customer's VPC, ensuring data never leaves their network. Audit logs must track every optimization run, including input parameters, the suggested change, the dispatcher who approved/rejected it, and the final outcome, enabling continuous model evaluation and accountability.
A successful rollout follows a phased, metrics-driven approach:
- Phase 1 (Pilot): Select 2-3 trusted dispatchers and a single branch or service line. Run the AI in shadow mode, comparing its proposed routes against manually created ones without making live changes. Measure key variances in total drive time, on-time arrival rates, and fuel cost projections.
- Phase 2 (Assisted Dispatch): Enable the dispatch review queue for the pilot group. Dispatchers review and apply AI suggestions. Monitor adoption rates, time saved in planning, and any change in technician feedback or customer satisfaction (CSAT) scores tied to on-time performance.
- Phase 3 (Scale & Refine): Roll out to additional branches, using learnings to refine the model's cost functions (e.g., weighting technician skill matching higher than pure drive time). Integrate feedback loops where dispatchers can flag poor suggestions, which are automatically routed to a review dataset for model retraining.
This controlled, iterative process de-risks the integration, aligns AI outputs with human expertise, and builds a clear business case for expansion based on hard metrics like reduced fuel consumption, increased jobs per day, and improved SLA compliance.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Practical questions for technical teams planning to integrate AI-driven route optimization with ServiceTitan's dispatch data.
The integration typically uses a combination of ServiceTitan's REST APIs and webhooks to create a real-time data pipeline.
Typical Architecture:
- Data Ingestion: A middleware service (e.g., built with Node.js or Python) polls or listens to key ServiceTitan API endpoints:
GET /api/v2/dispatch/boardfor current job assignments and technician status.GET /api/v2/dispatch/jobsfor job details (location, priority, estimated duration, required skills).GET /api/v2/membersfor technician profiles (certifications, hourly rate, home base).
- Event Triggers: ServiceTitan webhooks are configured for events like
Job.Created,Job.Updated, orDispatch.Board.Updatedto push changes immediately to your routing service queue. - Context Enrichment: The middleware enriches this data with external context (live traffic via Google Maps API, weather forecasts) before sending a payload to the AI routing engine.
- Optimization & Return: The AI engine processes the payload and returns an optimized dispatch sequence. The middleware then calls
PUT /api/v2/dispatch/boardto update assignments or suggests changes via a dispatcher UI overlay.
Key Consideration: For high-volume operations, implement a message queue (e.g., RabbitMQ, AWS SQS) to handle webhook bursts and ensure idempotent processing of dispatch updates.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us