Try out Google Chrome Built in AI, build validation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3558778. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I've been in contact with a developers relations manager at Google Chrome and they would love to get feedback on the built in frontend models and how they can be used within a Drupal context.</p>
<p>Since they run on your local machine the actual usage of these are more complex to use as an actual AI provider - we would require triggers from the frontend, that provides context from the backend to the frontend, where the inference happens and returns a results. All in a safe way.</p>
<p>However one easy way of getting started to understand the API is to make a frontend validation, either via <a href="https://www.drupal.org/project/clientside_validation">https://www.drupal.org/project/clientside_validation</a> or something custom.</p>
<p>This should be able to prescan for typical unstructured validations, like if PII exists in a textarea.</p>
<p>The documentation is available via:</p>
<ul>
<li><a href="https://developer.chrome.com/docs/ai/built-in">https://developer.chrome.com/docs/ai/built-in</a></li>
<li><a href="https://developer.chrome.com/docs/ai/summarizer-api">https://developer.chrome.com/docs/ai/summarizer-api</a></li>
<li><a href="https://developer.chrome.com/docs/ai/language-detection">https://developer.chrome.com/docs/ai/language-detection</a></li>
<li><a href="https://developer.chrome.com/docs/ai/translator-api">https://developer.chrome.com/docs/ai/translator-api</a></li>
<li><a href="https://developer.chrome.com/docs/ai/prompt-api">https://developer.chrome.com/docs/ai/prompt-api</a></li>
<li>
</ul>
<p>Some other partner use cases:</p>
<ul>
<li><a href="https://developer.chrome.com/blog/pb-jiohotstar-translation-ai">https://developer.chrome.com/blog/pb-jiohotstar-translation-ai</a></li>
<li><a href="https://developer.chrome.com/blog/summarizer-redbus-miravia">https://developer.chrome.com/blog/summarizer-redbus-miravia</a></li>
<li><a href="https://developer.chrome.com/blog/prompt-api-blog-cyberagent">https://developer.chrome.com/blog/prompt-api-blog-cyberagent</a></li>
<li><a href="https://developer.chrome.com/blog/ai-action-workshop-nyc">https://developer.chrome.com/blog/ai-action-workshop-nyc</a></li>
</ul>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Create a frontend validation module, that can work with a browser model to do validation.</p>
<p>Preferably this should be done by someone that know the AI modules abstraction layer well, so it works as research for this as well.</p>
issue