> For the complete documentation index, see [llms.txt](https://docs.g-iot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.g-iot.io/platform-user-guide-book/device/device-dashboard-details/add-device-rules.md).

# Add Device Rules

At the Rules level, IoT smart rules can be added through widgets.

Click on the ''+'' icon to Add new lot rule widget

{% hint style="warning" %}
Important: Only rule widgets compatible with the device's specific capabilities are available for selection in the portal.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcqrtZc4odmuFbqjLhwHKr6XtJ4sb2i4qZ88iQ7h3sBEFbXOmBTyUh7dbtwrxm0dmHKeScShmJ-PnY6XJCr3F1lp74ndQ-p5NghYJVLvy6J5vOSADF4FVgx-pM6HXwNyvmkEyhRrA?key=M-g4csUEzYvWKn331EzU-Woy" alt=""><figcaption><p>Add new device rule</p></figcaption></figure>

{% hint style="success" %}
LM - Rules\
[https://app.gitbook.com/o/DKrl40rifuf7Bl8WIqXK/s/fEQ6KpTjmszWVWQqgcEa/level-meter-full-device-guide-book/level-meter-greater-than-giots-function/lm-rules](/level-meter-full-device-guide-book/level-meter-greater-than-giots-function/lm-rules.md)
{% endhint %}

{% hint style="success" %}
LCT - Rules\
[https://app.gitbook.com/o/DKrl40rifuf7Bl8WIqXK/s/fEQ6KpTjmszWVWQqgcEa/low-cost-tracker-full-device-guide-book/low-cost-tracker-greater-than-giots-functions/lct-rules](/low-cost-tracker-full-device-guide-book/low-cost-tracker-greater-than-giots-functions/lct-rules.md)
{% endhint %}


---

# 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.g-iot.io/platform-user-guide-book/device/device-dashboard-details/add-device-rules.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.
