Skip to main content

Configuration

Most Smart Rules AI setup happens within each course (when you create rules).
At the site level, the focus is ensuring scheduled tasks (cron) run reliably and optionally improving notification delivery (Message Hub).


Course-level configuration (Teachers)

1) Where to configure rules

Rules are created and managed per course:

Course → More → Smart Rules AI

Course menu showing More → Smart Rules AI

2) Activate or pause automation

Each rule has an Active toggle:

  • Active ON: the rule can run when conditions are met
  • Active OFF: the rule is paused (no actions execute)

Tip: Use Active OFF to pause automation while you tweak conditions or actions.


Permissions and visibility

If a teacher cannot see Smart Rules AI in the course menu, the most common causes are:

  • Missing course permissions or role
  • The plugin is not installed or enabled site-wide

(See Installation and your site’s role configuration.)


What is NOT configured here

  • Conditions and actions are configured within each rule (see Adding rules, Available conditions, and Available actions).
  • AI reinforcement activity creation depends on the plugins listed in Prerequisites.

Troobleshoting

This section lists the most common issues when using Smart Rules AI and how to fix them.


I can’t find “Smart Rules AI” in my course menu

Most common causes:

  • You don’t have the required role/capabilities in the course (teacher/admin).
  • The plugin is not installed or not enabled site-wide.

What to do:

  1. Confirm you are in the correct course.
  2. Ask your administrator to verify the plugin is installed and enabled.
  3. Request teacher-level access in that course.

Tip: The usual path is Course → More → Smart Rules AI.

Course administration


My rule is not running (nothing happens)

Most common cause: Moodle cron is not running reliably.

What to check:

  1. Make sure the rule is Active.
  2. Confirm the site has cron running (see Prerequisites).
  3. Wait for the next scheduled run (some conditions/actions run on a schedule, not instantly).

Admin note: Some conditions are evaluated by scheduled tasks at specific times or intervals. If those tasks don’t run, the rules won’t execute.

Rules list showing the configured rule summary


I added a rule, but it matches nobody

Possible causes:

  • The condition is too strict.
  • The expected data is missing (no grades yet, completion isn’t tracked, etc.).

What to do:

  1. Start with a simple, easy-to-match condition (for example, No course access with a short period).
  2. Verify that some learners actually meet the condition right now.
  3. If you are using grade/completion conditions, confirm the activity has grades/completion configured.

An activity does not appear in the selector (I can’t choose it)

This is common with conditions such as Activity completed, Activity not completed, Grade in activity, or Passing grade.

Most likely cause: the activity lacks the required completion and/or grading settings.

What to do:

  1. Open the activity settings in Moodle.
  2. Check Activity completion settings:
    • For completion-based rules, ensure completion tracking is enabled for that activity.
    • For grade-based rules, ensure completion/grade requirements are set so Moodle records the data you need.
  3. Save the activity and return to Smart Rules AI.

Activity completion automatic


I selected multiple roles in “Roles to notify” and got unexpected recipients

Smart Rules AI uses role-based logic to avoid duplicates:

  • The matched user receives the notification only if they hold at least one of the selected roles.
  • Other users in the course may receive the notification if they hold any of the selected roles that the matched user does not have.

What to do:

  • For simple learner reminders, select only Student.
  • Add Teacher only when you want teacher alerts.

See details in Available actions → Send notification.

Notification roles


I enabled “Create AI reinforcement activity” but the action is missing or fails

This action requires additional plugins and setup.

What to check:

  1. Moodle version is 4.5+.
  2. The Restriction by user plugin is installed and enabled.
  3. The Course Creator AI plugin is installed and enabled.

See: Prerequisites.

Create AI activity


“Enable activity” does not unlock anything

Most common causes:

  • The Restriction by user plugin is not installed or enabled.
  • The selected activity is not configured in a way that allows restrictions to be toggled.

What to do:

  1. Verify Restriction by user is installed and enabled (see Prerequisites).
  2. Re-check that you selected the correct activity modules in the action configuration.
  3. Confirm the rule is active and that learners actually match the condition.

Restriction by user


Notifications not delivered?

If your rule uses Send notification but users don’t receive messages, verify:

  1. Moodle cron is running (rules must execute), and
  2. Message delivery is configured correctly in Configuration (Message Hub + notification preferences + roles to notify).