Out-of-the box, the Content Generation (Image Analysis) considers all the supported attributes to generate the content. However, you can configure to include or exclude the attributes from the Content Generation process.
Sample JSON configuration
Sample JSON to include only certain attributes for Image Analysis.
{
"metaInfo": {
"dataIndex": "config",
"collectionName": "configObjects",
"responseObjectName": "response"
},
"configObjects": [
{
"id": "rock-attribute-manage-v2_pstdsku_dataSteward_commerceUXConfig",
"name": "rock-attribute-manage-v2_pstdsku_dataSteward",
"type": "commerceUXConfig",
"data": {
"contexts": [
{
"context": {
"component": "rock-attribute-manage-v2",
"entityType": "pstdsku",
"role": "dataSteward"
},
"jsonData": {
"config": {
"imageAnalysisAttributeList": {
"inclusion": [
"pstdskuname",
"pstdmfgbrandname",
"pstdsuppliercompanyname",
"pstdcountryoforigin",
"pstdproductdescription",
"pstdshortdescription",
"pstdsearchkeywords",
"pstdstatus",
"pstdcolor",
"pstdsize",
"pstdproductweight",
"pstdmarketingcopy",
"pstdpackagesize",
"pstdpackagedepth",
"pstdpackagewidth",
"pstdpackageheight",
"pstdpackageweight"
],
"exclusion": []
}
}
}
}
]
}
}
]
}To configure attributes for Content Generation (Image Analysis):
Download the attached JSON file.
Open the attribute-manage-v2_pstdsku_commerceUXConfig.json file and specify the following:
Parameters | Details |
|---|---|
context | Specify the following: component: Specify the name of the component to be configured. entityType: Specify the entity type for which the component is to be configured, else _ DEFAULT. role: Specify the role for which the component is to be configured, else _DEFAULT. By default, _DEFAULT is specified for role, which implies the component is configured for all roles and users. |
Config > imageAnalysisAttributeList | Specify the following: inclusion: Specify the attributes that must be included for generating content using Image Analysis. or exclusion: Specify the attributes that must be excluded for generating content using Image Analysis. Note: You must define either inclusion or exclusion. If both are specified, only inclusion will be considered. |
Upload both the JSON configuration files in the Classic UI. For more information, see How to upload UI Configurations.
Go to Products page and click on a product.
In the PDP, click the Generate Content button to initiate Image Analysis. For more information, see How to generate content using AI.
The content is generated only for attributes based on the configuration.
