> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/inbound-integrations/samsara.md).

# Samsara Integration

With the ilert Samsara integration, you can create alerts in ilert based on Samsara events.

If Samsara's fleet management system identifies a problem, such as a vehicle malfunction or a driver safety incident, ilert can promptly send alerts to the relevant team members, ensuring a quick response. Here's a step-by-step guide on how to connect Samsara and ilert.

## In ilert: Create a Samsara alert source

1. Go to **Alerting** → **Alert sources** and click **Create new alert source**.
2. Search for **Samsara**, click its tile, and click **Next**.
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Choose who gets notified: select **Use existing escalation policy** and pick a policy, or **Generate new escalation policy** to start with a basic one that notifies you first. Click **Next**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8a281bf3931f5a1a531951ce97984d50989dd875%2Falert-source-escalation-step.png?alt=media" alt="The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below."><figcaption><p>Pick an existing escalation policy, or generate a basic one without leaving the wizard.</p></figcaption></figure>
5. Select **Default grouping** and click **Continue setup**. It groups events by the alert key the integration sets; the other [grouping options](/alerting/configure-alerting/alert-sources.md#event-grouping) are easier to judge once events are arriving.
6. The next page shows more settings, such as notification priority and alert templates. Click **Finish setup** for now; you can change them later.
7. On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FmOV5sHlCxwou1lUgj9Xz%2F1-1.png?alt=media&amp;token=c7eb712d-03f3-4797-b56e-d3ab36379dff" alt=""><figcaption></figcaption></figure>

## In Samsara: Create a webhook

1. In the sidebar, click on the Alert bell icon.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FqEjdAQSj1W7ih5MhirBs%2F1-2.png?alt=media&amp;token=13f1e755-ff04-4057-8e67-d1a64348afde" alt="" width="563"><figcaption></figcaption></figure>

2. On the next screen, click on **Create Alert**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fl8koO7uDmB8qqcDDCRpx%2F2.png?alt=media&amp;token=d35ce007-efd4-4b0a-8d84-1d2389d3e245" alt="" width="563"><figcaption></figcaption></figure>

3. Now select a desired **Trigger**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FpxuG7uvOZwNmDcYvT1jo%2F3.png?alt=media&amp;token=ea581692-9d23-43d1-8641-f4ee7dc85188" alt="" width="563"><figcaption></figcaption></figure>

4. Now open the **Add Action** menu and choose **Send Webhook**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fw2IBKFLpa5gMDljHZntV%2F3-2.png?alt=media&amp;token=c307a6a0-1869-4d4a-a3c9-b8e6aff9888f" alt="" width="563"><figcaption></figcaption></figure>

5. A new tab will open. Now click on **Manage**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fl6pHmGhswF7PvKV0CDPY%2F3-3.png?alt=media&amp;token=5722906b-379a-47eb-8279-a4c968797ad0" alt="" width="563"><figcaption></figcaption></figure>

6. Click on **Add Webhook**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F6ZUjbciIvq5Uzntil7tC%2F4.png?alt=media&amp;token=9528a5c4-d5d7-419c-bbab-d4289432993c" alt="" width="563"><figcaption></figcaption></figure>

7. Enter a **Name**, the ilert alert source URL created in this [step](#in-ilert-create-a-samsara-alert-source) into the **Payload URL** field, and select some desired **Event Subscriptions**.
8. Click on **Create** to finish the webhook setup.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FTBLd5XMxhiyntKU9hYvW%2F5-2.png?alt=media&amp;token=01d14a14-504d-4cf9-8dfd-235002504c1c" alt="" width="563"><figcaption></figcaption></figure>

9. Optional: Click on the **Test** button to send a test alert to ilert.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FbyjVTs2AtM2Neb4FWVgb%2F6.png?alt=media&amp;token=8910eefc-b745-433b-8828-220435da95fe" alt="" width="563"><figcaption></figcaption></figure>

## FAQ <a href="#faq" id="faq"></a>

**Are alerts in ilert automatically resolved?**

Yes, as soon as an alert is resolved in Samsara, the corresponding Alert is automatically resolved in ilert.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/samsara.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
