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