> For the complete documentation index, see [llms.txt](https://help.tillit.cloud/tillit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/integrations/wire-flow/task-types-and-integrations/messaging-and-notifications.md).

# Messaging & Notifications

Wire Flow messaging and notification tasks for sending emails and publishing MQTT messages to IoT devices from within a workflow.

## Send Email

Sends an email from within a workflow. All fields support dynamic values from the workflow state.

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-d4a10008c868c062bc33990c5b67db462510ec30%2FPasted%20image%2020260414120957.png?alt=media" alt=""><figcaption></figcaption></figure>

| Field       | Description                                                 |
| ----------- | ----------------------------------------------------------- |
| **To**      | Static (`user@example.com`) or dynamic (`$.body.recipient`) |
| **Subject** | Supports `{$.body.field}` placeholders                      |
| **Body**    | Plain text or HTML. Supports `{$.body.field}` placeholders  |

The "From" address is configured at the environment level.

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-89720a1fdc128904ef723f6f409c29843b01bf10%2FPasted%20image%2020260414121024.png?alt=media" alt=""><figcaption></figcaption></figure>

**Example:**

```
To:      $.body.customerEmail
Subject: Order {$.body.orderId} confirmed
Body:    Hello {$.body.customerName}, your order has been processed.
```

## IoT MQTT Publish

Publishes a message to an MQTT topic on AWS IoT Core. Use this to send instructions or status updates to edge devices.

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-abe0626355dbf804241519b9a08fb0ca4f01defc%2FPasted%20image%2020260414121032.png?alt=media" alt=""><figcaption></figcaption></figure>

| Field       | Description                                                                                 |
| ----------- | ------------------------------------------------------------------------------------------- |
| **Topic**   | Static or dynamic: `factory/{$.body.lineId}/commands`                                       |
| **Payload** | JSONPath to select a subset of state to publish. Leave empty to publish the full state body |
