Skip to main content

Creating dynamic delivery content with Mustache

Heads up!

This guide is only applicable to email and Slack deliveries.

In deliveries that use email or Slack destinations, you can use Mustache references to personalize the delivery's subject and body/message text. This guide describes the references that are currently supported and provides some example outputs.

User attributes

You can use the default system user attributes to personalize the delivery. For example:

// Delivery subject
Daily tasks for {{omni_user_name}}

// Delivery body
Hey there, {{omni_user_name}}! Here are your tasks for the day:

Email deliveries also support custom-defined user attributes. Note: This is only supported for email deliveries.

Date & time

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

DescriptionSyntaxExample output
Current date in YYYY-MM-DD format{{currentDate}}2025-07-24
Current year{{currentYear}}2025
Current month{{currentMonth}}07
Current day of the month{{currentDay}}24
Current time in HH:MM:SS AM/PM format{{currentTime}}1:00:00 PM
Current timezone{{timeZone}}(America/New_York)

Schedule details

DescriptionSyntaxExample output
Name of the dashboard/workbook{{entityName}}Daily team planning
A link to the dashboard/workbook{{entityLink}}https://blobsrus.omni.co/dashboards/3eafe04d
The format of the delivery{{format}}png
The name of the scheduled task. Will not populate for one-off deliveries - task must be saved.{{scheduledTaskName}}Daily Task Schedule
The description of the scheduled task. Will not populate for one-off deliveries - task must be saved.{{scheduleDescription}}Mondays, Tuesdays, Wednesdays, Thursdays, and Fridays at 09:00 am EDT

Recipients

DescriptionSyntaxExample output
Email destinations only. The recipient's email.{{recipientEmail}}[blobby@blobsrus.com](mailto:blobby@blobsrus.com)
The number of recipients who received the delivery{{numRecipients}}5

Examples

Greeting with Omni user name attribute
Dear {{omni_user_name}},
Link to dashboard/workbook
Review the {{entityName}} report here: {{entityLink}}
Slack only - Clickable link to dashboard/workbook
Review the <{{entityLink}}|{{entityName}}> report
Report generated at
This automated report was generated on {{currentMonth}}/{{currentDay}}/{{currentYear}} at {{currentTime}}.
Delivery recipient
Report delivered to: {{recipientEmail}}