> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating dynamic delivery content with Mustache

> Create dynamic content for your deliveries with Mustache syntax.

Certain configuration options in delivery destinations support using Mustache references to personalize aspects of the delivery, such as:

* An email subject
* File names, including email and SFTP
* Slack message content

This guide describes the references that are currently supported and provides some example outputs.

## User attributes

<Note>
  User attributes aren't supported for SFTP destinations.
</Note>

You can use the [default system user attributes](/administration/users/attributes#default-system-user-attributes) to personalize the delivery. For example:

```markdown wrap title="Delivery subject & body" theme={null}
Subject: Daily tasks for {{omni_user_name}}

Body: 

Hey there, {{omni_user_name}}! Here are your tasks for the day:
```

Email deliveries also support [custom-defined user attributes](/administration/users/attributes). **Note**: This is only supported for email deliveries.

## Date and time

<Note>
  **Unless noted**, all destinations support the references in this section.
</Note>

The values of these references will reflect the delivery's [schedule settings](/share/deliveries). For example, if the schedule is configured to use the `America/New_York` timezone, the values that recipients see will be in that timezone.

<ParamField path="{{currentDate}}">
  Current date in `YYYY-MM-DD` format

  **Example output**: `2025-07-24`
</ParamField>

<ParamField path="{{yesterdayDate}}">
  Yesterday's date in `YYYY-MM-DD` format

  **Example output**: `2025-07-23`
</ParamField>

<ParamField path="{{currentYear}}">
  Current year

  **Example output**: `2025`
</ParamField>

<ParamField path="{{currentMonth}}">
  Current month

  **Example output**: `07`
</ParamField>

<ParamField path="{{currentDay}}">
  Current day of the month

  **Example output**: `24`
</ParamField>

<ParamField path="{{currentTime}}">
  Current time in `HH:MM:SS AM/PM` format

  **Example output**: `1:00:00 PM`
</ParamField>

<ParamField path="{{timeZone}}">
  Current timezone

  **Example output**: `(America/New_York)`
</ParamField>

## Schedule details

<Note>
  **Unless noted**, all destinations support the references in this section.
</Note>

<ParamField path="{{entityName}}">
  Name of the dashboard/workbook

  **Example output**: `Daily team planning`
</ParamField>

<ParamField path="{{entityLink}}">
  **Not supported for SFTP**. A link to the dashboard/workbook.

  **Example output**: `https://blobsrus.omni.co/dashboards/3eafe04d`
</ParamField>

<ParamField path="{{format}}">
  The format of the delivery

  **Example output**: `png`
</ParamField>

<ParamField path="{{scheduledTaskName}}">
  The name of the scheduled task. Will not populate for one-off deliveries - task must be saved.

  **Example output**: `Daily Task Schedule`
</ParamField>

<ParamField path="{{scheduleDescription}}">
  **Not supported for SFTP**. The description of the scheduled task. Will not populate for one-off deliveries - task must be saved.

  **Example output**: `Mondays, Tuesdays, Wednesdays, Thursdays, and Fridays at 09:00 am EDT`
</ParamField>

## Recipients

<ParamField path="{{recipientEmail}}">
  **Email destinations only.** The recipient's email.

  **Example output**: `blobby@blobsrus.com`
</ParamField>

<ParamField path="{{numRecipients}}">
  **Not supported for SFTP**. The number of recipients who received the delivery.

  **Example output**: `5`
</ParamField>

## Examples

```markdown title="Greeting with Omni user name attribute" theme={null}
Dear {{omni_user_name}},
```

```markdown wrap title="Link to dashboard/workbook" theme={null}
Review the {{entityName}} report here: {{entityLink}}
```

```markdown wrap title="Slack only - Clickable link to dashboard/workbook" theme={null}
Review the <{{entityLink}}|{{entityName}}> report
```

```markdown wrap title="Report generated at" theme={null}
This automated report was generated on {{currentMonth}}/{{currentDay}}/{{currentYear}} at {{currentTime}}.
```

```markdown title="Delivery recipient" theme={null}
Report delivered to: {{recipientEmail}}
```

```markdown title="SFTP file name" theme={null}
{{currentDate}}-{{entityName}}
```
