Moodle Plugins directory: Automatic Badges | Moodle.org
Automatic Badges
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.
Comments