Add Field Widget Actions (FWA) support for llm_telephone using the telephone_default widget
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3566591. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !1084 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>Add Field Widget Actions (FWA) support for llm_telephone using the telephone_default widget.<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Telephone numbers are often derived from free-text input, contact descriptions, or external data, making them a good candidate for AI-assisted extraction and normalization. Currently, fields using the <code>telephone_default</code> widget do not provide an in-widget way to trigger AI Automators.<br> This issue proposes adding Field Widget Actions (FWA) support for the <code>llm_telephone</code> automator on the <code>telephone_default</code> widget, using <code>modules/ai_automators/src/Plugin/FieldWidgetAction/Email.php</code> as reference implementation. This allows editors to extract or generate telephone numbers and store them directly in the field via the widget UI.<br> A simple way to test this is to configure an AI Automator that analyzes a block of text and extracts a telephone number, which is then saved into the Telephone field using the FWA.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ul> <li>Add a new FWA plugin for the <code>telephone_default</code> widget that triggers the <code>llm_telephone</code> automator, modeled after <code>modules/ai_automators/src/Plugin/FieldWidgetAction/Email.php</code>.</li> <li>Ensure the FWA is only available for Telephone fields and correctly maps the generated value into the widget.</li> </ul> <p>- <strong>This issue was created with the help of AI</strong></p>
issue