For the complete documentation index, see llms.txt. This page is also available as Markdown.

Action Types & Placeholders

The THEN section of an action defines what happens when its conditions are met. One action can contain several THEN actions, e.g. an email and a downlink at the same time.

Select Action Type dialog
Select Action Type

Action types

Type
Fields
What it does

Email

Recipients, Subject, Message

Sends an email to one or more addresses. Type an address and press Enter to add it.

Slack

Webhook URL, Message

Posts the message to a Slack channel through an incoming webhook. See Slack.

Discord

Webhook URL, Message

Posts the message to a Discord channel through a webhook. See Discord.

Webhook

URL, JSON Payload, Headers

Sends an HTTP request with your JSON payload to any external system. Add custom headers (e.g. authorization) with + Add Header. The JSON editor has a Format button.

SMS

Phone Numbers, Message

Sends a text message to one or more phone numbers. See SMS.

Signl4

Webhook URL, Title, Message

Raises an alert in the SIGNL4 mobile alerting app.

Downlink

Asset Name, Downlink Name

Sends a predefined downlink command to an asset, e.g. to switch a relay or valve. The downlink must exist on the asset (see Downlinks).

Event Only

none

Only logs the event in Widgelix (Events page and notifications in the app). This is the default THEN action.

Placeholders

Messages can include live data from the asset that triggered the action. Above the Message field the editor lists the placeholders available for the selected asset template (for example Placeholders (generic-node)). Click a placeholder chip to insert it at the cursor position. Inserted placeholders appear as blue tags in the message.

Email action with placeholders
Message: "Asset [Device_Name] reported [Value] °C"

Built-in placeholders:

Placeholder
Inserts

Device_Name

Name of the asset that triggered the action

ID

ID (e.g. DevEUI) of that asset

Value

The value that caused the trigger

Value_Name

The data field that caused the trigger

In addition, every tag defined on the asset template (such as floor, room or address) is available as a placeholder, so you can tell the recipient exactly where the asset is installed.

When actions are created through the API or the Widgelix MCP server, placeholders are written with double square brackets, for example [[Operated_Device.Device_Name]] or [[Operated_Device.Value]].

Placeholders work in the Message field of a THEN action only. They are not replaced in the email Subject, the SIGNL4 Title or the action's Custom Message.

Example

Message: Asset [[Operated_Device.Device_Name]] in room [[Operated_Device.room]] reported [[Operated_Device.Value]] °C

Result: Asset Greenhouse sensor 1 in room B2 reported 31.4 °C