PHP Notice if no Actions configured in AI Assistant
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3480528. --> Reported by: [mrdalesmith](https://www.drupal.org/user/2612656) Related to !181 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>If the AI Chatbot module and its dependencies are enabled and configured, entering a prompt for the AI generates a PHP Notice error in the background.</p> <p><code>Warning: Undefined array key "actions" in Drupal\ai_assistant_api\AiAssistantApiRunner-&gt;process() (line 395 of /var/www/html/web/modules/contrib/ai/modules/ai_assistant_api/src/AiAssistantApiRunner.php)</code></p> <p>This is because the code currently expects at least one AiAssistantAction to be available on the site, or for the locked "Advanced" pre-action prompt to have been altered to allow the LLM to use another datasource.</p>
issue