Agent setup guide
Samsara Daily Fleet Digest
One email every weekday morning: where every truck is, how many are running, idling or off, and the DVIR defects still open, from Samsara.
What it does
One email every weekday morning: where every truck is, how many are running, idling or off, and the DVIR defects still open, from Samsara.
- Every weekday morning, reads every vehicle's last location, speed, engine state and fuel from Samsara.
- Reads the DVIR defects of the last 24 hours that are still open.
- Code counts the trucks running, idling and off; AI writes a headline and what to look at first, without numbers.
- Emails the digest with one line per truck.
What it needs
- A paid plan (agents run live on paid plans).
- An AI provider key (Settings → AI Providers).
- Samsara (Read Vehicle Statistics and Read Defects scopes), connected in Settings → Integrations.
What it doesn't do
- It doesn't change anything in Samsara.
- It doesn't know your loads, so it can't say whether a truck is late.
- The email lists up to 50 trucks.
Availability and plans
Available
Its workflow is built and tested, and every app it needs is live. You can get it and set it up now.
Included free on the Enterprise plan; on other paid plans it's a one-time purchase per workspace (the price is on the Agents page). The Agents page in the app always shows its current status.
Before you start
- A paid plan: agents run live, and the Free plan only runs Dry Runs.
- An AI provider key (OpenAI, Anthropic, Google and more) in Settings → AI Providers. AI usage is billed by your provider.
- These apps, connected in Settings → Integrations: Samsara.
- Nothing to send: the agent runs on a schedule.
- About 7 minutes.
Set it up step by step
Get the agent first (buy it, or it's already yours when your plan includes it), then in Agents → My agents press “Set up this agent”. That creates the agent's workflow in your workspace (it counts towards your plan's workflow limit) and opens the canvas with a setup checklist above it. Each item links to the exact place to go and ticks itself off when it's done.
1. Connect your AI provider
The AI steps run on your own key (OpenAI, Anthropic, Google and more). Add one in Settings → AI Providers.
2. Connect Samsara
Connect Samsara with your own API token (Settings → Integrations → Samsara lists the read scopes each step needs).
3. Pick the Samsara account
Open “Where every truck is” and “Open defects (last 24 hours)” and pick your Samsara connection.
| Setting | What to enter | In step |
|---|---|---|
| Samsara account | Your Samsara connection. Pick your connected Samsara account. | “Where every truck is” |
| Samsara account (same one) | The same Samsara connection. Pick your connected Samsara account. | “Open defects (last 24 hours)” |
4. Describe your mornings
Open “Morning headline” and replace the placeholder.
| Setting | What to enter | In step |
|---|---|---|
| What to notice | Replace the placeholder with your fleet, yards and what you want to notice each morning. It starts as “[YOUR FLEET, YOUR YARDS OR TERMINALS, WHAT YOU WANT TO NOTICE EACH MORNING (E.G. TRUCKS STILL AT A CUSTOMER, IDLE TRUCKS, UNSAFE DEFECTS) AND WHO READS THIS]” until you replace it. | “Morning headline” |
5. Where to send it
Open “Email the digest” and enter the email address.
| Setting | What to enter | In step |
|---|---|---|
| Send the digest to | Replace the example address with yours (or your team's). It starts as “you@your-company.example” until you replace it. | “Email the digest” |
6. Test it with Dry Run
Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.
7. Switch the trigger on
Open the trigger, set your time zone and switch the schedule on. It runs weekdays at 6:30.
How it works
The agent is a normal workflow with 6 steps (1 AI step). You can open, edit and monitor it like any other workflow.
- Weekdays at 6:30 — Runs on a schedule (cron 30 6 * * 1-5, UTC — change it in the trigger's settings). Runs Monday to Friday at 6:30. Set your time zone on the trigger.
- Where every truck is — Samsara: Get vehicle locations. Reads every vehicle's last GPS location, address, speed, engine state and fuel from Samsara; engine on / idle / off counted in code.
- Open defects (last 24 hours) — Samsara: List DVIR defects. Reads the DVIR defects updated in the last 24 hours that are still open, from Samsara.
- Morning headline — AI step (runs on your AI provider key). AI writes a two-line headline and what to look at first, from the lists (computed in code), without typing numbers.
- Email the digest — Sends an email from your workspace's sender. Emails the headline, the counts (from Samsara, counted in code), the open defects and every truck's last location.
- Digest sent — Kept in the run history. The run history keeps every digest.
Test it with Dry Run
Press Dry Run in the canvas. The agent runs on the sample data stored on its trigger (the “Sample data for Dry Run” box), so you can check every step's output before anything is live.
- Nothing is sent or written: app actions, emails and Slack posts are simulated, and AI steps don't call your AI provider.
Go live
- Open the trigger, set your time zone and switch the schedule on. It runs weekdays at 6:30.
- Scheduled runs start only once the schedule is activated, and can't repeat faster than your plan's minimum interval.
- The setup checklist adds a “paid plan” item before activation: live runs need a paid plan (the Free plan only runs Dry Runs).
- When every checklist item is done and the trigger is on, the checklist says “Live — this agent is running”. Follow its runs in the workflow's History tab and in Analytics → Agents.
Questions
Are the counts from AI?
No. Locations and defects come from Samsara and the counts are made in code; the AI only writes the headline in words.
How many trucks fit?
Up to 2,560 vehicles; the email lists 50 and says how many more there are.
Which Samsara scopes?
Read Vehicle Statistics (locations) and Read Defects; defects need Samsara's Telematics Essential license.
Troubleshooting
- “No AI provider connected” or a rejected key: connect or fix the key in Settings → AI Providers, then press Test there.
- A checklist item stays unticked: the setting is still empty or still contains its placeholder text. Open the step from the checklist and fill it in.
- An app step fails with “Needs reconnect”: the account's access was revoked or expired. Reconnect it in Settings → Integrations.
- It didn't run at the expected time: the schedule must be activated, and its time is in the trigger's timezone.
- A step failed: open the run in History and check that step in the Trace tab for the error and what it received.
Generated from the agent's own workflow, so it always matches what the agent does. Last updated .