- Issue created by @a.dmitriiev
- π¬π§United Kingdom MrDaleSmith
Just to note https://www.drupal.org/project/ai/issues/3484358 π AI Content needs refactoring to use plugins Active introduced the ability to select values from fields held within paragraphs. I'm not sure about the proposed solution to this - generating an AIO version of a full page may lead to confusion when it comes to copying the right bit of the AI content into the right fields on the edit page, and getting suggestion for (non-Paragraph) referenced entities could get very confusing.
Not a maintainer: just throwing in my 2p.
- π§πͺBelgium wouters_f Leuven
I agree with this issue in the sence that apart from drupalisms, it should take into account
- use the entire page
- the proposed changes in the forms
to generate a new title proposition.I think the idea is that with automator this submodule is replaced by widgets that to almost exactly what you propose.
- π¬πͺGeorgia davit.magaldadze
davit.magaldadze β made their first commit to this issueβs fork.
- Merge request !549Issue #3489572 by a.dmitriiev: Allow summarize, analyze, suggest title and... β (Open) created by a.dmitriiev
- π©πͺGermany a.dmitriiev
I have created a MR with the following changes:
1. The method
getSetProvider
fromAiContentSuggestionsPluginBase
class was copied toAiProviderPluginManager
service as it can be used in many other places, not only in the content suggestion plugins. The method is still there in plugin base class but now uses the service internally. This was done for backwards compatibility, so there are no breaking changes as the method was also in the interface.
2. I have added the new configuration setting to "AI Content Suggestions settings" page. This is a system prompt for content suggestion that are attached to the field widget
3. For all string/text fields on "Manage form display" now there is a third party setting from ai_content_suggestions module. This setting allows to generate suggestions per field and paste the result back directly to the field it is attached to. It is possible to use tokens and also entity render tokens from this module https://www.drupal.org/project/token_entity_render β for example:
4. In the result on the form you will see the following:
when the field is clicked/focused:
and then when the button is clicked there will be a dialog with suggestions one or mulitple (it depends on the prompt):
when one of the suggestions is clicked, then it is inserted directly into the field. It works for string fields, text fields and also with CKEditor fields.