Office Hours Automator seems broken
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3576688. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !1273
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>[One-line status update for stakeholders]<br>
<strong>Short Description: </strong>[One-line issue summary for stakeholders]<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Neither FWA or normal automator is storing values. We need to figure out why.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>1. Make sure that AI Automators and Field Widget Action modules are enabled.<br>
2. Install the Office Hours module: <a href="https://www.drupal.org/project/office_hours">https://www.drupal.org/project/office_hours</a><br>
3. Create a content type under <a href="https://drupal11-test.ddev.site/admin/structure/types/add">https://drupal11-test.ddev.site/admin/structure/types/add</a><br>
4. In label set "Office Hours Automator"<br>
5. Click "Save and manage fields"<br>
6. Click "Re-use an existing field"<br>
7. Pick "Body" and click "Re-use"<br>
8. Click "Save Settings"<br>
9. Click "Create a new field"<br>
10. Pick "Office Hours" as the field type<br>
11. Set the label to "Office Hours"<br>
12. Click "Continue"<br>
13. Scroll down and check "Enable AI Automator"<br>
14. In the "Choose AI Automator Type" pick "LLM: Office Hours"<br>
15. In "Automator Base Field" pick "Body"<br>
16. In Automator Prompt write "Based on the context text return the office hours that you can find. Context: {{ context }}"<br>
17. Open "Advanced Settings"<br>
18. Pick "Direct" under "Automator Worker"<br>
19. Click Save.<br>
20. Goto form display for the content type: <a href="https://drupal11-test.ddev.site/admin/structure/types/manage/office_hours_automator/form-display">https://drupal11-test.ddev.site/admin/structure/types/manage/office_hours_automator/form-display</a><br>
21. On Office Hours choose "Office hours (list) and then click the cogwheel to edit the field settings.<br>
22. Open "Field Widget Actions"<br>
23. Under "Add new action" choose "Automator Office Hours" and click "Add action"<br>
24. Check "Enable Automators"<br>
25. Open "Enable an Automator and click "Office Hours Default"<br>
26. Click "Update"<br>
27. Click "Save"<br>
28. Go to Create Office Hours Automator under <a href="https://drupal11-test.ddev.site/node/add">https://drupal11-test.ddev.site/node/add</a><br>
29. In the title write something whatever.<br>
30. In the body write "Our office is open from 9am to 5pm on weekdays and from 10am to 4pm on weekends."<br>
31. Click the FWA button nothing happens. <strong>Expected</strong>: the field is filled out.<br>
32. Try to save and go to edit the content. <strong>Expected</strong>: the field is filled out.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Fix whatever is wrong with the office hours </p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3>
<h3 id="summary-ai-usage">AI usage (if applicable)</h3>
<p>[ ] AI Assisted Issue<br>
This issue was generated with AI assistance, but was reviewed and refined by the creator.</p>
<p>[ ] AI Assisted Code<br>
This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p>
<p>[x ] AI Generated Code<br>
This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p>
<p>[ ] Vibe Coded<br>
This code was generated by an AI and has only been functionally tested.</p>
issue