> For the complete documentation index, see [llms.txt](https://docs.akenza.io/akenza.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akenza.io/akenza.io/get-started/rule-engine/rule-actions/downlink.md).

# Downlink

Sending a **downlink** allows to control or configure physical devices from the cloud. The **downlink** action can be used to send downlinks based on applied business logic. For example, if the temperature exceeds a certain threshold then close the blinds.

It is possible to select one or more **MQTT- or LoRa devices** with the same Data Flow for which the downlink should be triggered.

{% hint style="info" %}
Sending downlinks is **only possible for MQTT- and LoRa-devices.** It is not possible for HTTP-, CoAP- or Sigfox devices.
{% endhint %}

Following downlink message type has to be entered for:

* **LoRaWAN**
  * port (an integer value)
  * confirmed (a boolean value)
  * payload hex string or JSON object (requires a downlink encoder in the device type)
* **MQTT**
  * topic (a string) - The optional topic added here will be appended to the downlink topic to which the downlink is published to e.g. when providing "myTopic" the resulting downlink topic will look as follows: /down/\<secret>/id/\<deviceID>/myTopic.
  * payload as a JSON object - it is possible to use template variables "key": "{{data.temperature}}".

![Downlink template](/files/Br9PKg3FOKnPH5yNWSjW)


---

# 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.akenza.io/akenza.io/get-started/rule-engine/rule-actions/downlink.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.
