Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

AI Validations

262 sites No security coverage Drupal 10–11 AI ecosystem
View on drupal.org

AI Validations enhances the Field Validation module by integrating AI-powered checks for various field types. It allows you to leverage AI for tasks like content moderation, text classification, image analysis, and even audio validation based on custom prompts or predefined rules. This enables automatic filtering and validation of user-submitted content through your configured AI providers.

Overview

AI Validations adds AI-powered validation rules to the Field Validation module. Attach any of the seven built-in rules to a text, image, or audio field, point it at an AI provider configured in AI Core, and it will pass or fail the field value automatically.

Features

  • AI text prompt validation. Send a custom prompt with a text field value. The prompt must instruct the model to return XTRUE when the value passes or XFALSE when it fails.
  • AI moderation validation. Validate text fields using the AI module's native moderation operation. Content flagged by the provider fails validation. You can restrict failure to specific categories (e.g. hate,violence,sexual); if left blank, any flagged category causes failure.
  • AI text classification validation. Send a text field value to your AI provider for classification. Validation fails when the text is classified as the category you configure. You can set the tag, finder type (exact, contains, or case-insensitive), and a minimum confidence threshold.
  • AI image classification validation. Send uploaded images to your AI provider for classification. Validation fails when the image is classified into a disallowed category. You can set the tag, finder type, and minimum confidence. An image style can be applied first to reduce token usage.
  • AI image prompt validation. Send an uploaded image with a custom prompt. The prompt must instruct the model to return XTRUE or XFALSE (e.g. "contains no explicit content", "shows a person wearing safety equipment"). Accepts an optional image style to reduce token usage.
  • AI object detection validation. Validate images using the AI module's object detection operation. Require or forbid specific object names, use AND or OR logic for multiple keywords, and configure whether the rule passes or fails on a match. Accepts an optional image style to reduce token usage.
  • AI audio validation. Validate audio file fields. A speech-to-text provider transcribes the uploaded file, then a chat provider evaluates the transcript against your custom prompt. The prompt must instruct the model to return XTRUE if the value passes or XFALSE if it fails.

Requirements

Use cases

  • Block user-submitted text that fails an AI moderation check (e.g. hate speech, violent content)
  • Reject submissions your AI provider classifies as spam or off-topic
  • Enforce content policies on text fields with a custom XTRUE/XFALSE prompt
  • Reject uploaded images that match a disallowed classification (e.g. NSFW or off-brand imagery)
  • Require uploaded photos to contain specific elements (e.g. a logo, safety equipment, a product shot)
  • Require or block named objects in images (e.g. "must contain person", "must not contain weapon")
  • Validate audio uploads by transcribing them and evaluating the transcript against a custom prompt

How it works

Each rule is a Field Validation plugin. You attach it to a field, choose your AI provider and model through AI Core, and configure the match criteria. On form save the rule calls the provider, interprets the response, and returns pass or fail to Field Validation. All six rules sit alongside your existing validation rules in the same admin UI.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Dec 2025
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.3.0 Stable 10–11 Jul 1, 2026
1.3.x-dev Dev 10–11 Feb 24, 2026
1.0.0-alpha1 Pre-release 10–11 Dec 17, 2025
1.0.x-dev Dev 10–11 Dec 17, 2025