Skip to main content

Send notification

Description

Use this action to send notifications to users who meet the rule's conditions.

💡 In practice: this is the most common action for reminders, encouragement, and teacher alerts.

Improve notification delivery

Enhance your notifications with our Datacurso Message Hub plugins, which let you send notifications via WhatsApp and SMS using providers like Twilio. Click here to purchase and activate now!

For more information, visit the documentation page: https://docs.datacurso.com/index.php?title=Message_Hub

Configure notification sending (Required only if you have the Datacurso Message Hub plugins installed)

  1. Go to Site administration > General > Messaging > Notification settings

Notification settings

  1. In the Default notification preferences section, find Smart Rules AI notification and enable the option for Datacurso Message Hub.

Notification preferences
Notification preferences

Action configuration

  1. Subject:
    Define the notification subject.

  2. Body:
    Define the notification body.

Send notification

  1. Placeholders
    You can use placeholders in the notification body to personalize the message for each user. Available placeholders:
    • {$a->coursename} - Course name
    • {$a->courselink} - Course link
    • {$a->fullname} - User full name
    • {$a->firstname} - User first name
    • {$a->lastname} - User last name

Notification placeholders

  1. Roles to notify:
    Choose the course roles that determine who receives the notification when the rule matches a user.

    • The matched user receives the notification only if they hold at least one of the selected roles in the course.
    • Additionally, other course users who hold any of the selected roles that the matched user does not hold will also receive the notification.
    • Roles already held by the matched user are excluded from the "other recipients" search to avoid duplicate delivery.

    Example:

    • Selected roles: Student, Teacher.
    • If the matched user is a Student, they receive the notification. Other recipients will be users with the Teacher role only (other Students will not receive this notification from this action run).
    • If the matched user has none of the selected roles, they do not receive the notification, but users with any of the selected roles will.

Notification roles