Make it possible to upload images or files to the chatbot
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3556362. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>For agents especially, but also in other use cases you might want to provide context from a file. The ChatConsumerInterface has a method that will tell you what files are allowed to upload. See <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-14"><a href="https://www.drupal.org/project/ai/issues/3492940" title="Status: Reviewed &amp; tested by the community">#3492940: Add ChatProcessor</a></span> - this issue is dependent on that.</p> <p>We need to expose this on the Deepchat, that has support for it.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Change the setting of Deepchat depending on if images should be allowed.<br> If so add a setting to the block, to enable image attachments - use the Deepchat Image attribute.<br> Change the setting of Deepchat depending on if some files should be allowed.<br> If so add a setting to the block, to enable file uploading - use the Deepchat mixedfiles attribute.<br> Add the images to the ChatInput<br> Add the files to the the SetInputFiles method.</p>
issue