> 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

## Send Email

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

<figure><img src="/files/3itUd7I1qMHplbHCNFTT" 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="/files/cb9AVlxx0Ncitd6lFhLD" 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="/files/U4el6iP5MWjEeeMCmJPF" 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 |
