Setup and integration manual


The summary and image generation functions in the Ametys back office content require configuration.

Summary

The AI summary feature is available on the"edition.textarea" widget only, and is activated via the"summarize" widget parameter, which must list the fields to be summarized.

For example, in the article content type, the "abstract" attribute can summarize the rich "content" text placed just after it.

<attribute name="abstract" type="string">
   <label i18n="true">CONTENT_ARTICLE_ABSTRACT</label>
   <description i18n="true">CONTENT_ARTICLE_ABSTRACT_DESC</description>
   <widget>edition.textarea</widget>
   <widget-params>
       <param name="summarize">content</param>
   </widget-params>
</attribute>

Image generation

The AI image generation feature is available on the"edition.file" widget only, and is activated via the"summarize" widget parameter, which must list the fields to be summarized.

For example, in the article content type, the "illustration/image" attribute can generate an illustration from the title, subtitle, rich content text and image alternative.

<attribute name="image" type="file">
   <label i18n="true">CONTENT_ARTICLE_IMAGE</label>
   <description i18n="true">CONTENT_ARTICLE_IMAGE_DESC</description>
   <validation>
       <custom-validator class="org.ametys.cms.data.FileValidator"/>
   </validation>
   <widget>edition.file</widget>
   <widget-params>
       <param name="allowSources">external,resource</param>
       <param name="filter">image</param>
       <param name="summarize">../title,../document-subtitle,../content,alt-text</param>
   </widget-params>
</attribute>

 

Back to top

AI