On this page
ContentAI
Description
The ContentAI module allows store owners to auto-generate content for the entire product. The module uses the OpenAI API to generate unique and relevant content for your products.
Using our module, you can now auto-generate content for any product attribute having the following text input type:
- Text Area
- Text Field
- Text Editor
- PageBuilder
- WYSIWYG editor
Compatibility
ContentAI module is compatible with the following Magento platforms:
| Community Edition (Open Source) | Enterprise Edition (Commerce) | Cloud Edition |
|---|---|---|
| 2.4.* | 2.4.* | 2.4.* |
Installation
Installing module using zip file
- Unzip and paste the extension file into your root Magento folder.
- Connect to your server by SSH.
- Go to your Magento root folder.
- To install the extension, perform this command:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deployComposer installation
If you haven't installed any Aitoc module before, in that case, first, you will need to add your Aitoc composer repository. Please review the document to see how you can add a composer repository.
To install the module, you will need to run the following commands:
composer require aitoc/ai
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -fOpenAI API account
It is a requirement to have an OpenAI API account set up and configured. Our module uses OpenAI's "GPT-3.5-turbo" model to generate text content, and each request costs a small amount of money.
Please visit their pricing page for more information about those costs and how they are calculated.
Note
Free trial accounts are currently available that will enable you to test the results.
Module Configuration
To access the module configuration, go to Admin> Stores > Configuration > AITOC EXTENSIONS > Aitoc AI OR Admin > Aitoc > Aitoc AI > Configuration
General

-
Enabled = Select Yes to enable the module functionality.
-
Enabled for scopes = Select the website/store view for which the module functionality should work.
Note
Our module and the GPT-3.5-turbo model are currently optimized for only English. Therefore, for now, it is better only to enable the scopes, which are English.
API Configuration

The module uses OpenAI API, so you must create your account for OpenAI and generate the secret token key. You can generate secret token keys from this page.
Under the Token field, enter the secret token key generated under your OpenAI account.
Product description generation settings

From this tab, you can pre-define how long the product description content you need. Suppose you have selected the Default number of paragraphs = 4. In that case, the product description content generated by the will be four paragraphs long.
You can select up to 10 paragraphs from the configuration field.
USPs per each attribute set
The module lets the admin define unique selling points for each attribute set. These USPs are used to generate the product description.

You can define up to 3 features of a product that make it different from and better for each attribute set. So that will allow you to have different USPs for each product according to their attribute set.
Prompt Management
The module allows you to create a Prompt for any product attribute that has the following input type:
- Text field
- Text area
- Text Editor
- Pagebuilder
Creating a prompt enables the module functionality to auto-generate content for the product attributes and set validations to ensure each product has the correct content.
How to Create Prompt
You can create a prompt for the product attributes directly from the product detail page. In the admin product detail page, for each product attribute having the input type mentioned above, the module will provide an icon using which you can create a Prompt.

Clicking on the icon will redirect you to the prompt creation form, where you can enter the Prompt and define the minimum character word validation.

-
Enabled: Enable/Disable usage of Prompt.
-
Name: Attribute name will be pre-filled in this field. This name will be visible in the Prompt listing grid.
-
Selector: Add the field details on the product page where the module will add functionality to auto-generate content.
-
Prompt: The entered message here is to pass the instruction to OpenAI. You can use a different variable to adjust the response from OpenAI and generate content based on the defined variable.
Note
You can use all the product attributes as a variable. You will need to enter the attribute code as a variable.
-
Validator: You can enable/disable minimum word validation using this option.
So if you have selected Validator = Min Words && Validator Parameter = 50, the module will check if the attribute has equal or more than 50 characters.
Suppose the attribute will have less than 50 words in the added content. In that case, the module will consider it an issue. The ContentAI section on the product detail page will show that attribute.

Note
-
Many fields will be pre-defined when creating a promot for the selected attribute. We suggest leaving all the pre-defined field as it is.
-
Please keep the "scope" value 0 for now. In the future, the module will have new functionality where you can select the Prompt's scope.
Once you have created and enabled a Prompt for any product attribute, the module will enable functionality to auto-generate content.
Example of how the Prompt works
Here we have created a Prompt for the "Feature" attribute of the product, which has a Text Area input type.

Clicking on the icon will open the Prompt creation form:

Once you have entered the Prompt message and selected Validator, click the Save button.
Once you have saved the Prompt and if it is enabled, the module will display the ContentAI button for the "Feature" attribute to auto-generate content.

Note
Suppose the attribute has a "Page Builder" or WYSIWYG editor option. In that case, the module will add an option in the text element to generate the content.
Also, based on the validator selection when creating a prompt, if the content in the Feature attribute does not have selected minimum words or the content is missing, the ContentAI table in the product detail page will show it as an issue.

In this way, you can enable the module functionality to auto-generate content for any text-based product attribute and ensure each product has appropriate content available for all its attributes.
Prompt Grid
You can check all the existing prompts from the path: Admin > Aitoc > Prompts Management.

The module, by default, creates a Prompt for the following product attributes:
- Short Description
- Meta Keywords
- Meta Description
You can modify the existing prompts according to your requirement by clicking the Add New button to create new prompts.
ContentAI section on the product detail page
When you open the product detail page in Admin, you will see the ContentAI section at the top of that page. Based on the available Prompt for product attributes, this section will notify if any attribute has an issue with content according to prompt configuration and validation.
Suppose the content is not suitable for any attributes. In that case, it will display a text telling what the issue is along with the hyperlink.

Clicking on a hyperlink will open a popup to auto-generate and modify the content for a specific attribute. In the above example, clicking on the "Meta Description" issue will open a popup where the admin can generate content for the Meta Description.

The module also checks and shows the issue under the ContentAI table for each Store view. By default, the current store view issues will be only visible. Clicking "Show all issues" will expand the section and show issues for all available store views.

The green tick will appear if the content is good enough for all the fields.

Generating content
Whenever you are editing a product in the admin panel, you will now get an additional button labeled "ContentAI" to enable AI content to be generated. These buttons will be positioned under the attributes for which the promotion has been created.


Generate text for attributes having input type PageBuilder or WYSIWYG editor.
The module correctly adds a new element in the Pagebuilder Text element and WYSIWYG editor, using which you can generate the product description.

Click on the elements highlighted above; a ContentAI popup will appear. Here, you can select the product's key attribute and edit the USPs you have defined for the product's attribute set. Once you have filled in the information, click on Generate button, and the module will generate the content.

The length of the generated content will depend upon the number of paragraphs selected in the admin configuration. However, the module also allows rewriting the content in fewer paragraphs than selected in the admin configuration. Selecting any lower number of paragraphs will generate new content.

Once you are happy with the content after the modifications and review, click on Accept button to replace the Description attribute content with the generated one.
Generate text for attributes having input type other than Pagebuilder.
Clicking on the ContentAI button under these attributes will open a popup. The popup will show the attribute name, the attribute's existing content, and the generated field.
When you click the Generate button, the module generates the content and populates under the "Generated" field. The module will show unique content whenever you click the generate button.

You can modify the content module generates. Once you have finalized the content, click on the Accept button. It will show a dialog for confirmation. Once you confirm, the existing content will be replaced by the available content under the "Generated" field.
THANK YOU FOR CHOOSING AITOC EXTENSIONS!
