Automatic Badges

Local plugins ::: local_automatic_badges
Maintained by Cristian J. Lamus, Daniela Alexandra Patiño Davila
Automatic Badges is a Moodle local plugin that allows teachers to define rules for automatically awarding badges to students based on their activity and performance in a course. Rules can be triggered by minimum grade thresholds, forum participation, assignment submissions, or any grade book item — including calculated grades that aggregate multiple activities. Global rules can target all instances of a module type at once, and an optional bonus points system writes extra credit directly to the grade book when a badge is issued. Badges are evaluated in real time via Moodle events and in batch through a scheduled task. A built-in dry-run simulator lets teachers preview which students would receive a badge before activating any rule.
Latest release:
2 sites
22 downloads
Current versions available: 1

Automatic Badges eliminates the manual work of recognizing student achievements by letting teachers define smart rules that issue Moodle badges automatically, the moment a student meets the configured criteria.


Rule-based badge awarding

Teachers create rules that link a badge to a specific condition. When a student satisfies that condition — whether through a grade, a forum post, or an assignment submission — the badge is issued without any manual intervention. Rules can be enabled or disabled independently, and each rule targets a single badge in the course.

Flexible criteria

Each rule is driven by one of the following criterion types:

  • Minimum grade — awards the badge when a student reaches a configurable score threshold in any gradable activity. Supports comparison operators: ≥, >, ≤, <, or exact match.
  • Grade range — awards the badge when a grade falls between a minimum and maximum value.
  • Grade book item — targets any item in the Moodle grade book directly, including calculated grades and category aggregates that combine scores from multiple activities (e.g. a weighted average of a report, a presentation, and a final exam). This is not limited to individual activities.
  • Forum participation — awards the badge based on the number of posts, replies, or topics a student has created in a forum.
  • Forum grade — combines forum activity with a minimum grade requirement.
  • Assignment submission — triggers when a student submits or has their submission graded within an optional deadline.
  • Section completion (cumulative) — awards the badge when a student meets grade requirements across all gradable activities in a course section.

Global rules

Instead of creating one rule per activity, teachers can define a global rule that applies the same criteria to every instance of a given module type in the course. The plugin clones the base badge automatically for each activity and generates the individual rules in bulk.

Bonus points system

Rules can optionally grant extra credit points when a badge is issued. The plugin creates a dedicated "Bonificaciones (Auto Badges)" category in the grade book and manages the grade items automatically, ensuring bonus points appear cleanly alongside regular grades.

Real-time and scheduled evaluation

Badges are awarded through two complementary mechanisms: a Moodle event observer that reacts instantly when a grade is updated or a forum post is created, and a scheduled task that performs a full batch evaluation across all active rules and enrolled students.

Dry-run simulator

Before activating a rule, teachers can run a simulation that evaluates all enrolled students against the rule configuration and shows a detailed breakdown: who would receive the badge, who already has it, and who does not yet meet the criteria — with specific reasons for each case.

Custom badge designer

The plugin includes a canvas-based badge editor where teachers can compose badge images using built-in shapes, icons, text, and colors, or upload their own custom images to create fully personalized badges without leaving Moodle.

Course-level control

Automation is opt-in at the course level via a custom course field. Only courses where the field is enabled participate in rule evaluation, giving administrators full control over which courses use the feature.


Requirements: Moodle 4.5 or later.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Cristian J. Lamus (Lead maintainer)
Daniela Alexandra Patiño Davila: Co-author
Please login to view contributors details and/or to contact them

Comments

Show comments
Please login to post comments