# Ubidots Integration

[Ubidots](https://ubidots.com/) is an Industrial Internet of Things (IIoT) platform designed for developers and businesses to easily connect, collect, and visualize sensor data. It offers tools for data analysis, real-time monitoring, and automated actions, making it ideal for applications in industries such as manufacturing, healthcare, and environmental monitoring. This article provides step-by-step instructions on sending alerts from the Ubidots platform to ilert to ensure critical issues are escalated to responsible specialists as quickly as possible.

## In ilert: Create a Ubidots alert source

1. Go to **Alert sources** -> **Alert sources** and click **Create new alert source**.

   <figure><img src="/files/rmL9OoRxcWnDwcJZQm4Y" alt=""><figcaption></figcaption></figure>
2. Search for **Ubidots** in the search field, click the Ubidots tile, and then **Next**.

   <figure><img src="/files/1WoRRYB5U40PbeMJ7Hit" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="/files/y4Bakf2apGhBN56U8ZPR" alt=""><figcaption></figcaption></figure>
5. Select your [Alert grouping](/alerting/configure-alerting/alert-sources.md#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.

   <figure><img src="/files/nTlB0ZCIW1SP3dj6P9nO" alt=""><figcaption></figcaption></figure>
6. The next page shows additional settings, such as customer alert templates or notification priority. Click **Finish setup** for now.
7. On the final page, an API key and/or webhook URL will be generated. You will need it later.

   <figure><img src="/files/dMLTRiShQm0wXAhqhrx2" alt=""><figcaption></figcaption></figure>

## In Ubidots: Create a Trigger Event

1. On the top bar, click on **Data** **->** **Events**.

<figure><img src="/files/gjD2GLbKbNGEVslu2Ytt" alt="" width="563"><figcaption></figcaption></figure>

2. Now click on the "+" to create a new Trigger Event.

<figure><img src="/files/6Lkv6mrtt9PATAhSuVuX" alt="" width="563"><figcaption></figcaption></figure>

3. Select a **Variable** and configure a trigger as you like. Click on **Next** to proceed to the next step.

<figure><img src="/files/TvXrm7ObMwvY8vb3NMD4" alt="" width="563"><figcaption></figcaption></figure>

4. Now click on **ADD ACTION**.

<figure><img src="/files/8r7Pwd9RE3r9fOOLeXwV" alt="" width="563"><figcaption></figcaption></figure>

5. Select **Trigger webhook** from the list.

<figure><img src="/files/3FPlSQBC4QpqetPwYHXD" alt="" width="563"><figcaption></figcaption></figure>

6. Enter the previously in ilert created integration URL into the URL field.

<figure><img src="/files/f4sClOk5C5bg4FZuM9bb" alt="" width="563"><figcaption></figcaption></figure>

7. Copy and paste the following payload:

```json
{
	"eventType" : "alert",
	"deviceId" : "",
	"deviceName" : "",
	"lastValue": "",
	"lastValueTimestamp" : "",
	"triggerValue" : "",
	"triggerTimestamp" : "",
	"variableId" : "",
	"variableName": ""
}
```

8. Now fill the payload with the help of the tag button.

<figure><img src="/files/TL5MisQoqxcnDySRbG0P" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/gBQwgUlTNJEmy6ehrnAP" alt="" width="563"><figcaption></figcaption></figure>

9. To send resolve events, click on **Back to Normal**.

<figure><img src="/files/JNULCqmE5TEpnrthtUdA" alt="" width="563"><figcaption></figcaption></figure>

10. Enable **Back to normal action** and copy following payload:

<pre class="language-json"><code class="lang-json">{
	"eventType" : "resolved",
	"deviceId" : "",
	"deviceName" : "",
	"lastValue": "",
	"lastValueTimestamp" : "",
	"triggerValue" : "",
	"triggerTimestamp" : "",
	"variableId" : "",
<strong>	"variableName": ""
</strong>}
</code></pre>

11. Fill out the payload with the tag button.

<figure><img src="/files/tsl3mn4KFhOXiNGSn1vn" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/qlOpkoDKBERjKUcHjPOE" alt="" width="563"><figcaption></figcaption></figure>

12. Save the Trigger action to finish the setup.

## FAQ

**Will alerts in ilert be resolved automatically?**

Yes, as soon as "Back to normal action" is configured and a variable in Ubidots is back to a normal state, the associated alert is automatically resolved in ilert.


---

# Agent Instructions: 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:

```
GET https://docs.ilert.com/integrations/inbound-integrations/ubidots.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
