Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.6.17 Update released for Drupal core (10.6.17)! Release: Linkit 7.0.17 Minor update available for module linkit (7.0.17). Release: Raven: Sentry Integration 7.6.0 Minor update available for module raven (7.6.0). Release: Geocoder 8.x-4.36 Minor update available for module geocoder (8.x-4.36). Release: Copyright Footer 3.4.0 Minor update available for module copyright_footer (3.4.0). Release: Shortcode Gmap 3.0.1 Minor update available for module shortcode_gmap (3.0.1). Release: IDNA Convert Service (punycode) 2.0.6 Minor update available for module idna (2.0.6). Release: IDNA Convert Service (punycode) 2.0.5 Minor update available for module idna (2.0.5). Usage Milestone: Schemata Module schemata crossed 1,000 active installs. Module Revived: Backlinks Index 1.1.5 Module backlinks_index updated after 7 months of inactivity (1.1.5).

AI Decision

No security coverage

Part of the AI ecosystem · 307 projects

View on drupal.org

AI Decision adds a shared Decision API to the Drupal AI module. Ask typed questions about text or structured data and receive answers with probabilities that your application can use for classification, scoring, and workflow decisions.

The API is provider-independent: providers implement a common contract, while site builders and developers control the criteria, thresholds, and actions.

Features

  • Yes/no questions: Get the probability that a condition is met, such as whether a support request concerns billing.
  • Choice questions: Select from defined options and receive a probability for each option.
  • Score questions: Evaluate content against descriptive levels and receive a probability-weighted score.
  • Multiple questions per request: Ask related, independent questions about the same input.
  • Typed response validation: Reject incomplete or invalid answers before application code uses them.
  • Decision guardrails: Apply configured regular-expression, character-length, and moderation checks to Decision requests, with support for custom checks.

Included modules

  • AI Decision: The shared operation, typed inputs and outputs,
    validation, and guardrail integration.
  • AI Decision Explorer: An optional AI API Explorer integration for experimenting with questions, inspecting probabilities, and generating PHP examples.
  • AI Decision Automators: Optional AI Automators rules for populating Boolean, list, integer, decimal, and float fields. Supports single-choice and multi-select lists.

Example uses

  • Classify support requests into configured categories.
  • Flag content for editorial review.
  • Score relevance, urgency, or sentiment against your own criteria.
  • Populate structured fields from unstructured content.

Your application determines how answers affect its workflow. Probabilities and confidence measures help define thresholds; they do not guarantee correctness.

Requirements

  • Drupal 10.5+ or Drupal 11.2+.
  • Drupal AI 1.4.9 or later within the 1.x series, including AI 1.5.
  • A configured AI provider implementing the Decision operation to make inference calls. li>

TypeSafe AI Provider implements the Decision API. Other providers can implement the same interfaces and use the shared Explorer and Automators integrations.

The optional Explorer requires AI API Explorer. The optional Automators integration requires AI Automators and its dependencies.

For developers

Use the Drupal AI provider manager to submit a DecisionInput and receive normalized, typed answers. Provider implementations handle their service-specific request and response formats. See the project README for API examples, provider implementation guidance, and supported guardrail behavior.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
6 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Sep 18, 2026