# Setup Class Notifications

{% embed url="<https://youtu.be/_vdSxdvYwsM?si=m6dXkLQ42fl1SXNk>" %}

## How to Setup Class Notifications for Participants

Learn how to configure class notifications for participants, including bookings, reschedules, cancellations, and more. Manage notifications efficiently for individual and bulk class updates.

{% hint style="warning" %}
**Note:**\
If you are scheduling or updating multiple classes in bulk, participants will receive notifications for each class individually. To avoid sending multiple notifications, consider using our **Bulk Class Trigger Automation** to send a consolidated summary notification.

For more information on bulk class notifications, check the setup guide here: [**Bulk Class Notification Setup.**](https://help.whautomate.com/product-guides/class-bookings/setup-bulk-class-notifications-for-participants)
{% endhint %}

1. Go to the **Whautomate** app then click the **Automation** menu and select the **Add Rule** button as shown below picture 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FzxrXaHuzqp3NKsHlGz5o%2Fimage.png?alt=media&#x26;token=dcd6191b-0457-4e56-9d5a-27efc2548ee6" alt=""><figcaption></figcaption></figure>

2. Select the **Create Rules from Scratch** option to continue

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FzJxAVnwoiUm7rNy0kbyd%2Fimage.png?alt=media&#x26;token=1a7be4df-5c39-4785-9520-848526453024" alt=""><figcaption></figcaption></figure>

3. Choose the **Class Participant Updates** as a **Trigger 👇**

{% hint style="info" %}
This rule gets triggered when a class participant is added, updated, or cancelled.
{% endhint %}

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FkU6SQpYK7E624BPtj8QO%2Fimage.png?alt=media&#x26;token=ea657b6c-9424-4354-9c93-82730b9811cb" alt=""><figcaption></figcaption></figure>

4. **Add Conditions (Optional)**

(i) To add conditions, simply click on the **"Add Condition**" button

(ii) Choose the condition Field option like **"Class Participant Status"** 👇

(iii) Define the operator for the condition, such as **equals**, **not equals**, or other available options.

(iv) Pick the **Condition Type** based on the class status, e.g., **Booked**, **Rescheduled**, or **Cancelled**.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FabSuVkdMJ9B1zsa7wjAI%2Fimage.png?alt=media&#x26;token=921e92ce-8c09-4f37-9a32-582380bb80a9" alt=""><figcaption></figcaption></figure>

(v) Example: Setting Up a Booking Condition

* **Condition Field**: Class Participant Status
* **Operator**: Equals
* **Condition Type**: Booked

This setup ensures that when a class is booked for a participant, the status will be marked as **Booked**, and the participant will receive a notification via **WhatsApp** and **Email**.

{% hint style="info" %}
**Note:**\
You can set conditions for different class types (e.g., scheduled, canceled) to ensure that participants only receive relevant notifications tailored to the class status.
{% endhint %}

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FSPU5OktvQCcpmlvSxsiA%2Fimage.png?alt=media&#x26;token=419d3547-3d0d-4090-a296-d74d05e75764" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Important Note:**

If you have already set up the **Bulk Class Notification**, you need to configure an additional condition to manage notifications effectively and avoid sending multiple unnecessary notifications.

#### **Setup a Participant Frequency Condition**

1. **Condition Field**: Select **"Participant Frequency"**.
2. **Condition Type**: Choose either:
   * **Individual**: To prevent notifications from being sent for bulk class scheduling.
   * **Bulk/Repeat**: To allow notifications to be sent for each class when scheduling bulk classes.

#### **Example Usage**

* If you are scheduling **bulk classes** and want to send notifications for **each class**, set the condition type to **"Bulk/Repeat"**.
* If you want to prevent multiple notifications when scheduling bulk classes, set the condition type to **"Individual"**.
* For single-class scheduling, ensure the condition type is set to **"Individual"** so the notification is sent. 👇
  {% endhint %}

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FleQq42WNsJmIDD8kCB0k%2Fimage.png?alt=media&#x26;token=9bcb1db5-d5e8-4a81-a952-bdd67d235aeb" alt=""><figcaption></figcaption></figure>

**5. Select an Action**&#x20;

Choose how you want to notify your client about their booked class, such as by **WhatsApp** or **email.**

For WhatsApp: Eg. I Select a **Send a WhatsApp template message** action and fill in the required details. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FAhDzbTu7uwPF2fG14aSY%2Fimage.png?alt=media&#x26;token=973bbb0a-59e5-4eec-bbc6-5812064768ba" alt=""><figcaption></figcaption></figure>

**(i) Select a WhatsApp Template Message** Choose the template message you want to use to notify your client of their **class booking confirmation**.

**(ii)** For example: I have selected the **class\_confirmation\_notification(en)** template.

I used the custom message template which was already created and approved by Meta. So first you need to create a new **WhatsApp Message Template**, you can select the **Create New Template** link. This will take us to the template page where we can submit our new template for custom notifications.

{% hint style="info" %}
However, please note that any custom notification settings will be discarded, and we will need to set them up again after our new template is approved.
{% endhint %}

Check this below link on how to create WhatsApp message templates 👇

[**WhatsApp Message Templates**](https://help.whautomate.com/product-guides/integrations/whatsapp-cloud-api/whatsapp-message-templates)

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FbZSWvxMrLWoWVJm7gCMG%2Fimage.png?alt=media&#x26;token=6ff14fde-c593-4c4d-a1d9-449ed5e6f82e" alt=""><figcaption></figcaption></figure>

(iii) When you enter **(#)** in the Parameter field, a list will pop up. You can choose from the options provided to fill out the parameter details. 👇

**Eg**: #class.clientName = {{class.clientName}}, #class.className = {{class.className}}, etc.

**Available Personalisation Variables:**

**Class Variables**

{{class.clientName}}, {{class.date}}, {{class.time}}, {{class.practitioner}}, {{class.className}}, {{class.duration}}, {{class.onlineClassLink}}, {{class.onlinePassCode}}, {{class.addToCalendarURL}}, {{class.detailsURL}}, {{class.partialdetailsURL}}, {{class.cancelURL}}, {{class.partialcancelURL}}, {{class.addToCalendarEmailAttachmentURL}}, {{class.timezone}}

**Client Variables**

{{client.name}}, {{client.preferredName}}, {{client.age}}, {{client.gender}}, {{client.email}}, {{client.phone}}, {{client.calendarSyncURL}}, {{client.photoURL}}, {{client.address}}, {{client.emergencyRelationType}}, {{client.emergencyContactName}}, {{client.emergencyContactPhone}}

**Business Variables**

{{business.name}}, {{business.address}}, {{business.phone}}, {{business.mapDirectionUrl}}, {{business.operatingHours}}

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FQVnoRiyM2bOekAUDlZGq%2Fimage.png?alt=media&#x26;token=d2574a2f-fc9b-4169-ab03-c46403c4145d" alt=""><figcaption></figcaption></figure>

6. Once the action is set, Click the **Save** button.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FO3cUqMqeh9JTbS152n51%2Fimage.png?alt=media&#x26;token=86e4bf6d-92b8-443b-861a-5c1be36cac44" alt=""><figcaption></figcaption></figure>

7. **Test the Notification**
   * Add test participants to a class to ensure the notification triggers correctly.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FKr39RonQZnoslLFSfb3m%2Fimage.png?alt=media&#x26;token=e1f0dfa4-ec05-4837-9067-8f50199a511a" alt=""><figcaption></figcaption></figure>
