Field Widget Action for llm_classification Automator on options_select widget

Created on 9 July 2025, 7 days ago

Problem/Motivation

The Field Widget Action module is merged into 1.2.x, however we need to start adding Automators plugins to it. The parent issue #3534445: Parent Issue: Create Field Widget Actions plugins for Automators. is a parent issue for all the implementations of the Automators plugins. Read more in the parent issue.

This issue implements the Field Widget Action plugin for the **Entity Reference field pointing to taxonomy terms**, using the **Options Select widget** (`options_select`) and the `llm_classification` AI Automator. This allows automatic classification of content into taxonomy terms (e.g., topics, categories, tags) using AI.

Proposed resolution

  • In the AI Automators module, create a new Field Widget Action plugin under src/Plugin/FieldWidgetAction.
  • Name the plugin file LlmClassificationOptionsSelect.php.
  • Use the FieldWidgetAction attribute and connect it to:
    • field_types: entity_reference
    • widget_types: options_select
  • Set the formElementProperty to target_id and configure aiAutomatorsAjax to populate the correct option based on LLM output.
  • Manually test that the Automator correctly selects a term from the select list, and attach a video of this working to the issue (or request a reviewer to do so).
  • (optional) Add a kernel test to validate the AJAX response.
  • (optional) Add a functional JavaScript test to verify the UI interaction.
Feature request
Status

Active

Version

1.2

Component

AI Automators

Created by

🇮🇳India anjaliprasannan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024