Drupal is a registered trademark of Dries Buytaert
Release: Paragraphs 8.x-1.23 Minor update available for module paragraphs (8.x-1.23). Release: AI (Artificial Intelligence) 1.4.6 Minor update available for module ai (1.4.6). Release: AI (Artificial Intelligence) 1.3.11 Minor update available for module ai (1.3.11). Release: Search and Replace Scanner 2.0.0 Major update available for module scanner (2.0.0). Release: Chosen 5.0.7 Minor update available for module chosen (5.0.7). Release: amazee.ai Private AI Provider 1.4.0 Minor update available for module ai_provider_amazeeio (1.4.0). Release: Content Packages 1.2.0 Minor update available for module content_packages (1.2.0). Release: Instagram Feed Block 1.0.2 Minor update available for module instagram_feed_block (1.0.2). Module Revived: Entity Browser 8.x-2.16 Module entity_browser updated after 11 months of inactivity (8.x-2.16). Usage Milestone: Media entity Twitter Module media_entity_twitter crossed 10,000 active installs.

Comment Moderation AI

1 sites No security coverage
View on drupal.org

This module uses artificial intelligence to automatically moderate user-generated comments on Drupal 11 sites. It analyzes comments as they are submitted, flagging potentially inappropriate content for human moderators and integrating with existing Drupal workflows. The module also offers custom policies for keyword filtering, rate limiting, and PII protection.

Comment Moderation AI helps site owners automatically moderate user‑generated comments using artificial intelligence. The module evaluates comments at submission time and assists moderators by flagging potentially inappropriate, risky, or non‑compliant content before it becomes publicly visible.
This module is designed for Drupal 11 sites that require scalable comment moderation while retaining human oversight and editorial control

Features

Comment Moderation AI adds the following capabilities to Drupal’s core Comment system:

  • AI‑powered comment analysis
  • Automatically evaluates new comments using an external AI moderation service. Currently supporting Open AI via its moderation API

  • Real‑time moderation at submission
  • Comments are analyzed as they are posted, allowing immediate flagging or moderation actions

  • Workflow‑friendly moderation
  • Integrates with Drupal’s existing comment approval and moderation interface, allowing moderators to review flagged comments using familiar tools

  • Automatic status assignment
  • Comments can be automatically marked for review or moderation based on AI evaluation results.

  • Configurable moderation behavior
  • Site administrators can enable or disable moderation behavior based on site requirements.

  • Drupal 11 native support
  • Built specifically for Drupal 11 and follows modern Drupal development best practices.

Integration with OpenAI's newest omni-moderation-latest model for superior accuracy and multimodal support. Enable/disable specific OpenAI moderation categories (hate speech, harassment, violence, etc.)

Also this module integrates will with Key module for managing Open AI keys securely




Intelligent Status Management: Risk-based automatic status assignment (high/medium/low priority) based on confidence scores with comprehensive workflow statuses including auto_flagged_high, auto_flagged_medium, flagged_low_risk, and pending_review.

Advanced Custom Policies: Beyond OpenAI moderation, includes keyword filtering, length restrictions, rate limiting, competitor detection, marketing content identification, and PII protection (emails, phones, SSNs, credit cards, addresses).

Enhanced Views Integration: Seamless integration with Drupal's /admin/content/comment/approval view featuring color-coded status badges, priority indicators, advanced filtering options, and visual flagged/clean indicators.

Post-moderation Capabilities: Allow community members to flag published comments with escalation workflows and comprehensive audit trails for all moderation decisions.

Post-Installation

After installation, navigate to Configuration → OpenAI Comment Moderation (/admin/config/comment-moderation-ai) to configure the module:

  1. OpenAI API Setup: Enter your OpenAI API key and select your preferred moderation model (omni-moderation-latest recommended). Use the built-in connection test to verify your API setup.
  2. Core Moderation Settings: Enable moderation, configure auto-flagging and auto-unpublishing behaviors, and set sensitivity thresholds (0.0 to 1.0).
  3. OpenAI Categories: Enable/disable specific moderation categories like hate speech, harassment, self-harm, sexual content, and violence.
  4. Custom Policies: Configure additional rules including keyword filtering, length restrictions, rate limiting, competitor detection, marketing content blocking, and PII protection.
  5. Permissions: Set up user permissions at /admin/people/permissions for viewing flagged comments, moderating content, and bypassing moderation checks.

Once configured, the module automatically moderates new comments and enhances your existing comment approval workflow at /admin/content/comment/approval with visual status indicators and advanced filtering options.

Additional Requirements

  • OpenAI API Key: Required for AI-powered moderation features. Sign up at OpenAI Platform
  • PHP 8.3+: Required for optimal performance with regex operations and modern PHP features
  • PHP cURL Extension: Essential for API communication with OpenAI services
  • Comment Module: Must be enabled (Drupal core dependency)
  • Key Module: For secure API key storage and management

The module integrates with Drupal's core comment system and requires no additional external libraries beyond the OpenAI API access.

  • Devel: Helpful for debugging moderation workflows and testing custom policies during development
  • Admin Toolbar: Provides quick access to moderation configuration and flagged comments management
  • Views Bulk Operations: Enhances bulk moderation actions for processing multiple flagged comments efficiently
  • Mailsystem: Improves email notification formatting for moderation alerts and flag notifications
  • Token: Enables dynamic token replacement in notification emails and moderation messages

What differentiates this module is its integration with OpenAI's latest Omni models, comprehensive custom policy engine, intelligent risk-based status management, and seamless Views integration for efficient moderation workflows.

Community Documentation

  • Comprehensive README: Detailed documentation included with the module covering all features, configuration options, and troubleshooting guides
  • API Documentation: Inline code documentation for developers wanting to extend or integrate with the module

Activity

Tracked releases
2
Tracked since
Mar 2026
Latest release
4 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.1 Stable Mar 23, 2026
1.0.0 Stable Mar 23, 2026