# Notification templates

A notification template is the actual message that relevant users will receive. It is part of a notification scheme that will be triggered by an event.<br>

For example, if a booking is confirmed (the event), it'll trigger the notification scheme named `Booking confirmed`. This notification scheme comprises 4 notification templates. This means that there will be a total of 4 notifications sent. However, some of these notifications may be for 1 specific group of users only.

When you create a notification template, you can determine the:

* type of notification
* message
* recipient (for applicable events only)
* delivery schedule (for applicable events only)

### Types of notification

There are two types of notification templates:

* Email
* Web and app

Email notifications will be sent to the user’s email address.&#x20;

Web notifications will be shown when the user logs in to RBS on their desktop or laptop.&#x20;

App notifications will be sent as a push notification to users who have the Workpal app installed on their mobile device.&#x20;

{% hint style="info" %}
Although web and app notifications are sent separately, the message that you create must be the same for both.
{% endhint %}

### Message

You can edit the message that will be sent using personalisation tags. When the notification is sent, these tags will be replaced with information that’s relevant to the user or booking.

<table><thead><tr><th width="206">Personalisation tag</th><th width="231.33333333333331">Description</th><th>Example</th></tr></thead><tbody><tr><td>Additional service</td><td>Name of the additional service, and the quantity or time requested.</td><td>Cleaning services (1 hour)</td></tr><tr><td>Booking ID</td><td>Unique ID of the booking</td><td>GOVTECH/1234324343</td></tr><tr><td>Booking dates</td><td>Date of the booking. Can be a single date or a list of dates (if it's a recurring booking).</td><td>28 July 2023, Friday</td></tr><tr><td>Booking hosts</td><td>Current hosts for the booking. If there are multiple hosts, each host will be separated by a line break.</td><td><p>Alicia Lim Xin Yi (Alicia_Lim@tech.gov.sg)</p><p>Alexander Koh Wei Jie (Alexander_Koh@tech.gov.sg)</p><p>Audrey Ng Li Ying (Audrey_Ng@tech.gov.sg)</p></td></tr><tr><td>Booking owner</td><td>Current owner for the booking</td><td>Aaron Lee Jun Jie (Aaron_Lee@tech.gov.sg)</td></tr><tr><td>Booking time</td><td>Time of the booking</td><td>10:00am – 12:00pm</td></tr><tr><td>Booking title</td><td>Booking title, as entered by the user.</td><td>Scrum of scrums</td></tr><tr><td>Booking usage</td><td>Booking usage, as selected by the user at the time of booking.</td><td>VIP meeting</td></tr><tr><td>Date and time booking was edited</td><td>Date and time the booking was last edited</td><td>6 July 2023, 12:36pm</td></tr><tr><td>Date and time booking was made</td><td>Date and time the booking was first made</td><td>6 July 2023, 12:36pm</td></tr><tr><td>Last user to update booking</td><td><p>The user who last updated the booking, and their email. This could be:</p><ul><li> a user who edited the booking</li><li>an agency admin who cancelled the booking</li></ul></td><td>Aaron Lee Jun Jie (Aaron_Lee@tech.gov.sg)</td></tr><tr><td>Previous booking hosts</td><td>The previous booking hosts before the booking was transferred. Includes their email. If there are multiple hosts, each host will be separated by a line break.</td><td><p>Alicia Lim Xin Yi (Alicia_Lim@tech.gov.sg)</p><p>Alexander Koh Wei Jie (Alexander_Koh@tech.gov.sg)</p><p>Audrey Ng Li Ying (Audrey_Ng@tech.gov.sg)</p></td></tr><tr><td>Previous booking owner</td><td>The previous booking owner before the booking was transferred. Includes their email.</td><td>Aaron Lee Jun Jie (Aaron_Lee@tech.gov.sg)</td></tr><tr><td>Reason for cancellation</td><td>The reason provided by the admin for cancelling the booking</td><td>Sorry, we need the room for a last-minute VIP meeting.</td></tr><tr><td>Recipient's full name</td><td>Full name of the recipient of the notification</td><td>Alicia Lim Xin Yi</td></tr><tr><td>Recurring label</td><td>Label to indicate a recurring booking. If it is not a recurring booking, nothing will be shown.</td><td><img src="https://1434314168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKh3QAdDkZRpCzNg4Hjve%2Fuploads%2F7bymQFV9FDU1HwvEXE9N%2FRecurringlabel.png?alt=media&#x26;token=1d747dc1-a961-4f29-b08b-5e31c82ad871" alt=""></td></tr><tr><td>Resource name</td><td>Name of resource</td><td>0811 Einstein</td></tr><tr><td>User who made booking</td><td>The user who made the booking</td><td>Aaron Lee Jun Jie</td></tr></tbody></table>

### Recipient

Depending on the event that will trigger the notification scheme, you may be able to decide the recipient for the notification template.&#x20;

This means you can have a different notification template (and message) for each recipient.

| Event                      | Possible recipients                                                                               |
| -------------------------- | ------------------------------------------------------------------------------------------------- |
| Booking cancelled by admin | <ul><li>Booking hosts</li><li>Booking owner</li></ul>                                             |
| Booking cancelled by user  | <ul><li>Booking hosts</li><li>Booking owner</li></ul>                                             |
| Booking confirmed          | <ul><li>Booking hosts</li><li>Booking owner</li><li>User who made booking</li></ul>               |
| Booking reminder: upcoming | <ul><li>Booking hosts</li><li>Booking owner</li></ul>                                             |
| Booking transferred        | <ul><li>New booking owner</li><li>Previous booking hosts</li><li>Previous booking owner</li></ul> |

### Delivery schedule

Depending on the event that will trigger the notification scheme, you may be able to decide when a notification template will be sent. For example, for upcoming booking reminders, you can choose to send the notification 1 day before the booking at 2pm.

| Event                        | When to send the notification?                           |
| ---------------------------- | -------------------------------------------------------- |
| Account deactivation warning | How many days before account deactivation?               |
| Additional service: reminder | <p>How many days before booking?</p><p>At what time?</p> |
| Booking reminder: upcoming   | <p>How many days before booking?</p><p>At what time?</p> |

### Viewing and editing notification templates

To edit a notification template:

1. On the side navigation bar, select **Notifications**
2. Select a notification scheme from the table
3. On the side panel, look for notification templates and select **Edit**
4. Select the notification template to edit
5. Make your edits and select **Save**

<figure><img src="https://1434314168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKh3QAdDkZRpCzNg4Hjve%2Fuploads%2FWuzqCXxa5e47fPiPY8Ck%2FNotifications-2.png?alt=media&#x26;token=e4215d20-cea6-47a0-9dda-027f1c53ff84" alt="Screenshot of a notifications scheme shown on the side panel, showing the step to edit notification templates."><figcaption></figcaption></figure>

***

### More about notifications

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Notifications</strong></td><td><ul><li><a href="..#default-notification-schemes">Default notification schemes</a></li><li><a href="..#custom-notification-schemes">Custom notification schemes</a></li></ul></td></tr></tbody></table>
