Existing Automator failing to work
I have been using a fairly simple Automator on a field for quite some time with v1.3.x of the module. The Automator calls upon two other fields via their token names to 'assess' a response to a piece of written work as below... The field being processed is `field_analytical_evaluation` and the contents of the `Automator Prompt (Token)` is... `Follow the instructions in [node:field_analytical_rubric] to assess the content of [node:field_response].` It has worked very well indeed for a long time but I haven't tested it for a while and in doing so today, I am seeing the following error ("Undefined array key "field_name") in the logs... `Warning: Undefined array key "field_name" in Drupal\ai_automators\PluginBaseClasses\RuleBase->runRawChatMessage() (line 681 of C:\laragon\www\bit-by-bit-d11\public_html\modules\contrib\ai\modules\ai_automators\src\PluginBaseClasses\RuleBase.php) #0 C:\laragon\www\bit-by-bit-d11\public_html\core\includes\bootstrap.inc(104): _drupal_error_handler_real(2, 'Undefined array...', 'C:\\laragon\\www\\...', 681) #1 C:\laragon\www\bit-by-bit-d11\public_html\modules\contrib\ai\modules\ai_automators\src\PluginBaseClasses\RuleBase.php(681): _drupal_error_handler(2, 'Undefined array...', 'C:\\laragon\\www\\...', 681) #2 C:\laragon\www\bit-by-bit-d11\public_html\modules\contrib\ai\modules\ai_automators\src\PluginBaseClasses\RuleBase.php(600): Drupal\ai_automators\PluginBaseClasses\RuleBase->runRawChatMessage('Follow the inst...', Array, Object(Drupal\ai\Plugin\ProviderProxy), Object(Drupal\node\Entity\Node)) #3 C:\laragon\www\bit-by-bit-d11\public_html\modules\contrib\ai\modules\ai_automators\src\PluginBaseClasses\ComplexTextChat.php(38): Drupal\ai_automators\PluginBaseClasses\RuleBase->runChatMessage('Follow the inst...', Array, Object(Drupal\ai\Plugin\ProviderProxy), Object(Drupal\node\Entity\Node)) #4 C:\laragon\www\bit-by-bit-d11\public_html\modules\contrib\ai\modules\ai_automators\src\AiAutomatorRuleRunner.php(70): Drupal\ai_automators\PluginBaseClasses\ComplexTextChat->generate(Object(Drupal\node\Entity\Node), Object(Drupal\field\Entity\FieldConfig), Array) #5 C:\laragon\www\bit-by-bit-d11\public_html\modules\contrib\ai_integration_eca\modules\automators\src\Plugin\Action\AiAutomatorRule.php(103): Drupal\ai_automators\AiAutomatorRuleRunner->generateResponse(Object(Drupal\node\Entity\Node), Object(Drupal\field\Entity\FieldConfig), Array) #6 C:\laragon\www\bit-by-bit-d11\public_html\modules\contrib\eca\src\Entity\Objects\EcaAction.php(109): Drupal\ai_integration_eca_automators\Plugin\Action\AiAutomatorRule->execute(Object(Drupal\node\Entity\Node)) ...` For clarity (and for want of a better way to explain the situaion) here is a screenshot of the field configuration showing the two tokens in place... ![image](/uploads/120c5bc56dede5563caa7e464b8d6b05/image.png){width=834 height=600} For further clarity, it so happens that the Automator is trigger via an ECA component but I do not think that should be relevant... ![image](/uploads/56a1e3fdff43c92c98a89c5f20f18869/image.png){width=586 height=600} Can anyone offer any advice on what else I should check here please? The situation seems to be the same for a Drupal 10 version of the site using ai `v1.3.4` and a Drupal 11 version using `1.4.0-rc1` so I suspect it might have been broken at some point as far back as an update of the `v1.3.x` version.
issue