Samsara Equipment Utilization Automation for Construction Fleets
Turn Samsara equipment and vehicle signals into a weekly utilization view, service queue, and reviewed redeployment decisions for construction fleet teams.

TL;DR: what you'll build. Samsara equipment utilization automation means a scheduled workflow pulls Samsara vehicle and stats data every week, a Major app applies your utilization and service rules, and an agent drafts a move, return or service recommendation only for the exceptions. The equipment manager approves every consequential action. You end up with a reviewable queue with history, not a dashboard alert nobody owns.
Why Samsara equipment utilization automation matters on a construction fleet
The process owner is the equipment manager (or fleet operations manager) at a mid-market contractor. Samsara already shows where each machine is and how it has been used. The decisions that follow live somewhere else: a spreadsheet for job assignments, an email thread for rental returns, a calendar reminder for service.
That gap is where money leaks. An excavator sits dormant on one job while another crew rents the same class of machine. A loader passes its service interval because the hours were in telematics and the reminder was in someone's inbox. Both problems show up on Monday morning, usually after the damage is done.
Major is the build platform for closing that gap. A Major app holds equipment, readings, assignments and decisions in managed tables. A workflow runs the repeatable steps on a schedule. An agent handles the judgment calls. For broader context, see construction workflows for AI agents and our guide to governed workflow automation.
What breaks today
- Utilization is viewed per machine in Samsara, but never joined to which job the machine was assigned to.
- Service thresholds are tracked by whoever remembers to check.
- Rental versus owned decisions are made from memory or a spreadsheet that is a week stale.
- Nobody can answer "who decided to move that machine, and based on what reading?"
Telemetry is a signal that still needs a decision
A low-hours reading might mean the machine is idle. It might also mean the tracker lost power, the machine was staged for a pour on Thursday, or the operator was out sick. Treating the number as an order is how a contractor returns a rental it needed.
This build keeps that distinction. Rules compute; an agent explains; a person decides.
The systems involved: Samsara and the records you keep yourself
This process touches one external system, Samsara, plus records that live in your Major app. Keep them separate in your head and in your schema.
Samsara: what it holds and how you reach it
Samsara's public developer docs describe a REST API at https://api.samsara.com (EU and Canada hosts also exist). Two endpoints carry this build:
- Vehicle list:
GET /fleet/vehiclesreturns vehicle records with fields such as id, name, vin and externalIds. It takes a limit (1 to 512, default 512), an after cursor, tag filters, and time filters such as updatedAfterTime. The reference lists a rate limit of 25 requests per second and a "Read Vehicles" scope. - Vehicle stats feed:
GET /fleet/vehicles/stats/feedreturns stat events per vehicle. You request stat types with the types parameter, and the stats feed guide demonstrates gps and engineStates. The token needs the "Read Vehicle Statistics" scope.
Samsara also documents an asset API for equipment (powered and unpowered equipment, via the assets endpoints). The guide says it is in beta and must be enabled by your Samsara account team. This article builds on the vehicle endpoints and treats assets as an option to confirm with your rep.
Authentication, paging and polling
Samsara authentication uses an API token sent as Authorization: Bearer <token>, or OAuth 2.0 for marketplace apps. You create a token in the dashboard under Settings, API Tokens, and choose tag access plus granular read or write scopes. The plaintext token is shown once, and requests must be server-side because browser CORS is not supported.
Paging works the same way on both endpoints: the response carries a pagination object with endCursor and hasNextPage, and you pass the cursor back as after. On the feed, the first call without a cursor returns the last known values, even if they are old. Later calls with a saved cursor return updates since then.
The docs say to poll no more often than every five seconds, and describe longer intervals such as daily as fine. A weekly pull respects that trivially. A cursor is a bookmark: you tell Samsara where you stopped reading, and it hands you only what is new.
Gotchas worth knowing
- An initial feed call returns last-known values with no freshness guarantee, so you must store the reading timestamp and check it yourself.
- Stat types beyond gps and engineStates are listed in the API reference. Whether your tenant exposes engine-hour data for each machine class is not something the docs can tell you. Verify it per machine in your own account.
- The docs we reviewed give no webhook details for this use, so this build polls on a schedule.
- Samsara's docs do not describe a service-order or job-assignment endpoint for this build. Those records live in your Major app.
Major-managed records
- Equipment: machine id, name, class, owned or rented, current job.
- Readings: one row per pull, with source timestamp and stat values.
- Rules: thresholds by asset class, set by your contractor policy.
- Review items: flagged machines, rule matched, agent recommendation, status.
- Action log: who approved what, when, and the reading it was based on.
Construction records worth preserving
If your sites fall under OSHA's Construction Industry Standards, 29 CFR Part 1926, equipment inspection and maintenance happen inside a safety program your compliance owner runs. Applicability depends on the project, so confirm the specifics with that person.
This workflow does not establish compliance. What it does is keep timestamped, attributable records that make your own process easier to audit.
- Every flag stores the reading, its source timestamp and the rule that fired.
- Every approval stores the approver and the time.
- Service follow-up is a tracked item with an owner and an age, not an email.
- Nothing is deleted when thresholds change; the version of the rule that applied stays on the record.
Retention periods are a policy decision for your safety and legal teams. Set them in the app, not in the agent's instructions.
Architecture: app, agent and workflow
The cleanest way to think about it: the workflow is the weekly routine, the agent is the experienced equipment manager's second opinion, and the app is the logbook everyone shares. Repeatable work runs as an app instead of a model re-reasoning every week, in the same way a checklist beats remembering each step.

Figure 1: Samsara data flows through a Major workflow and app; the agent only sees exceptions, and a person approves.
The workflow: deterministic steps
- Trigger: a weekly schedule (for example, Monday 6 AM) or a manual run.
- Pull vehicles and stats from Samsara using the stored cursor.
- Deduplicate by vehicle and source timestamp, and check freshness.
- Apply the threshold rules from the Rules table.
- Route flagged records to the agent, then to an approval step.
The agent: judgment only
The agent sees only flagged items. It reads the evidence the app hands it, explains the likely cause, and drafts one of four recommendations: reassign, return, schedule service, or no action. It cites the reading timestamp for each claim and states its uncertainty.
Why an LLM here? The rules can say "hours delta is below the idle threshold." They cannot weigh that the machine is staged for next week's pour or that the tracker has been silent for nine days. That weighing is judgment.
The app: human view and state
The app is where the equipment manager works. It shows utilization by machine and job, a review queue, the evidence behind each flag, and the approval buttons. The agent calls the app's own endpoints to read evidence and write its recommendation, so nothing is held in the model's memory.
Build it on Major, step by step
Connectors are connected once by IT, with credentials in Major's central credential store, scoped per connector, never in code or prompts. Every app, agent and workflow reuses them.
- Connect Samsara once as a custom API connector. Samsara has no official Major connector, so IT creates a custom API connector with base URL https://api.samsara.com and Bearer authentication, using a token scoped to Read Vehicles and Read Vehicle Statistics (and tag-limited if your fleet is divided). You should see the connector listed with a successful test call to the vehicle list.
- Build the app. Ask Major for an Equipment Utilization app with the tables Equipment, Readings, Rules, Review Items and Action Log, and a review queue screen. You should see an empty queue with a status column and a rules screen with one row per asset class.
- Set the rule parameters. Enter idle and service thresholds per asset class from your own policy; do not copy numbers from this article. You should see each rule saved with a version and an editor.
- Add the agent. Give it read access to the review item and evidence endpoints of the app, and write access only to the recommendation field. You should see a test item return a draft with timestamps, uncertainty and a "no action" option.
- Set the workflow trigger. Schedule the pull weekly, add the deduplicate and freshness steps, then the rules step, the agent step for flagged items and a human approval step. You should see a scheduled workflow with an approval node before any record is marked actioned.
- Test with a sandbox run. Run against a small tag-scoped group of vehicles and check that stale readings show as Unknown. You should see readings land in the Readings table with cursors saved and no duplicates on a second run.
- Roll out with permissions. Give the equipment manager approve rights, field supervisors read access, and IT admin rights. You should see SSO sign-in and a role-limited view for each group.
Example prompt for the app
Build an Equipment Utilization app with tables for Equipment, Readings (vehicle id, source timestamp, stat values, cursor), Rules (asset class, idle threshold, service threshold, version), Review Items (equipment, rule matched, evidence, recommendation, status, approver) and an Action Log. Add a review queue that shows flagged machines with their reading timestamps and approve, reject and no-action buttons. Expose endpoints the agent can call to read evidence and write a recommendation.
Example prompt for the agent
You review flagged equipment. For each item, read the evidence from the app and draft a recommendation: reassign, return, schedule service, or no action. Cite the source timestamp of every reading you rely on, state your uncertainty, and say what data is missing. Never approve, move, return or order anything. If the reading is stale or missing, say so and recommend a person check.
Governance and IT control
This is what a governed software factory produces: a business team builds the tool and IT keeps the controls. For this process that means:
- SSO and role-based access: the equipment manager approves, supervisors view, and only IT edits the connector.
- Scoped secrets: the Samsara token sits in the credential store, limited to the two read scopes, rotatable without touching the app. Regenerating a Samsara token disables the old one, so IT updates the store first.
- Audit logs: who ran the workflow, who changed a rule, who approved each item.
- Managed database and storage: the tables above, with backups and access governed by IT.
- Versioned deploys: a threshold or workflow change is a new version you can compare and roll back.
- Approvals: every move, return or service decision needs a named person.
Failure handling and edge cases
Fail closed. When the data is doubtful, the record becomes Unknown and goes to a person.
- Stale or missing readings: if the source timestamp is older than your freshness window, mark Unknown and skip the rule. Do not guess.
- API errors and rate limits: retry with bounded exponential backoff. The vehicle list documents 25 requests per second, so a weekly job should never approach it, but page politely. If retries fail, alert the owner and stop.
- Paging and partial syncs: save the cursor only after a page is fully written. If a run dies midway, the next run resumes from the last saved cursor.
- Duplicate events: key readings on vehicle id plus source timestamp so a replayed page changes nothing.
- Mixed OEM fields: different machine makes expose different signals. Missing stat type means "not available," not zero.
- Threshold changes: keep the rule version on every flag so history is not rewritten.
- Samsara unavailable or token expired: the workflow pauses and notifies IT. It never falls back to old data silently.
What the agent must never do alone: approve a move, return a rental, or create a service order. Those are the manager's decisions, and the approval step is how they are recorded.
A worked example with numbers
This is an illustrative example, not a customer result. A contractor runs 120 tracked machines across eight active jobs, and the equipment manager reviews utilization every Monday.

Figure 2: Records within policy are logged; flagged ones go to the agent and then to the equipment manager.
What the workflow does
Say the pull returns 120 machines. Freshness checks mark 6 as Unknown because their last reading is older than the window. The rules pass 96 and flag 18.
For example, a mid-size excavator, asset id EX-114, shows an hours delta below its class idle threshold for three weekly pulls, last seen 2 days ago, assigned to Job 7.
What the agent decides
The agent drafts: "Recommend reassign to Job 3, which has an open request for the same class. Evidence: three pulls, latest source timestamp Monday 05:40. Uncertainty: the Job 7 schedule is not in the data, so confirm the machine is not staged for upcoming work. Alternative: no action."
What the human approves
The manager knows Job 7 starts a pour in ten days and rejects the reassignment. The app records the rejection, the reason and the reading used. A second flagged loader near its service threshold gets approved for service, and the app creates a service request record and notifies the shop.
Before and after, illustrative arithmetic
- Before: reviewing 120 machines by hand at about 4 minutes each is roughly 480 minutes, or 8 hours a week.
- After: the manager reviews 18 flags plus 6 unknowns at about 5 minutes each, which is 120 minutes, or 2 hours.
- Difference: about 6 hours a week returned to the manager, in this example only. Your numbers will differ.
What to measure
Pick the metrics the equipment manager already cares about, and measure from your own baseline rather than a benchmark.
- Utilization coverage: share of machines with a fresh reading each week.
- Data freshness: age of the newest reading per machine.
- Flag review rate: flagged items reviewed within the week.
- Approved action completion: approved moves and services that were actually done.
- Overdue service queue age: how long service items wait.
- False-positive flags and override rate: how often the manager rejects a recommendation, which tells you when rules need tuning.
Review these in the same Monday meeting where you review the queue. If override rate stays high for one asset class, the rule for that class is probably wrong, not the manager. If data freshness slips for a group of machines, suspect the tracker or the tag scope on the token before blaming the workflow.
Write each metric down with its owner and how it is calculated from the Review Items and Readings tables, so the number means the same thing next quarter.
Frequently asked questions
How does Samsara equipment utilization automation work?
Telemetry and utilization signals feed a rule-based review queue. A scheduled workflow pulls the data, the app applies your thresholds, and an agent drafts a recommendation for exceptions. A manager approves any redeployment or service decision.
Which Samsara API endpoints can support an equipment utilization workflow?
The documented vehicle list and vehicle stats feed endpoints. Confirm in your own account which stat types and token scopes your machines expose.
Can equipment utilization alerts automatically create maintenance work?
Here, a flag creates a recommendation and, once approved, a service request stored in the Major app. The reviewed docs describe no Samsara write endpoint for work orders, so this build does not assume one.
How should a construction team handle stale or missing equipment data?
Store the source timestamp, check it against a freshness window, and show an Unknown state. Retry with bounded backoff, resume from the saved cursor, and route unresolved records to a person.
What governance controls should apply to fleet automation?
Centrally managed, least-privilege credentials, SSO with role-based access, audit history of runs and approvals, a retention policy, and human approval for every operational action.
Before you go live
Copy this checklist into your rollout ticket and tick each item with the person who owns it. Do not switch on the weekly schedule until every line has an owner and a date.
- [ ] Samsara token created with only Read Vehicles and Read Vehicle Statistics scopes, stored in the credential store
- [ ] Engine-hour or utilization stat availability verified per machine class in your tenant
- [ ] Thresholds set by asset class from your policy and signed off by the equipment manager
- [ ] Sandbox run completed on a tag-scoped group with no duplicate readings
- [ ] Approval step required before any move, return or service action
- [ ] Freshness window set and Unknown state visible in the queue
- [ ] Alerts on workflow failure routed to a named owner
- [ ] OSHA and retention questions confirmed with your safety and compliance owner
For another human-reviewed construction process, see how to automate Procore RFI response drafting.
More construction AI automation use cases
- AI agents for construction: every use case by tool
- AI agents for operations & revops: every use case by tool
- Automate Plex shipment reports and part-shortage alerts with AI
- Automate Procore RFI response drafting with AI
- Automate Shopify fraud-risk order hold routing to Gorgias with AI
- Automate Shopify ShipStation delayed-shipment alerts with AI
- Automate NetSuite sales order to production handoff with AI
Start building on Major
Build a governed Samsara utilization app where repeatable rules run in code, equipment history stays in managed state, and people approve consequential decisions. Reason once. Run forever.
Related articles
- Veeva Vault CAPA Automation: A Governed Build Guide
- UKG Sanitation Crew Scheduling Automation for Food Plants
- Plex Part Shortage Alerts: Automate Production Checks with AI
About the author
Ritvij Gautam is Head of Growth at Major.
Last reviewed December 3, 2026 by Ritvij Gautam.
Frequently asked questions
- How does Samsara equipment utilization automation work?
- Telemetry and utilization signals feed a rule-based review queue. A scheduled workflow pulls the data, the app applies your thresholds, and an agent drafts a recommendation for exceptions. A manager approves any redeployment or service decision.
- Which Samsara API endpoints can support an equipment utilization workflow?
- The documented vehicle list (GET /fleet/vehicles) and vehicle stats feed (GET /fleet/vehicles/stats/feed) endpoints. Confirm in your own account which stat types and token scopes your machines expose.
- Can equipment utilization alerts automatically create maintenance work?
- Here, a flag creates a recommendation and, once approved, a service request stored in the Major app. The reviewed docs describe no Samsara write endpoint for work orders, so this build does not assume one.
- How should a construction team handle stale or missing equipment data?
- Store the source timestamp, check it against a freshness window, and show an Unknown state. Retry with bounded backoff, resume from the saved cursor, and route unresolved records to a person.
- What governance controls should apply to fleet automation?
- Centrally managed, least-privilege credentials, SSO with role-based access, audit history of runs and approvals, a retention policy, and human approval for every operational action.