For more details see how the AI Content Generator for Magento 2 extension works.
The AI Content Generator extension is a lightweight solution that helps store owners to maximize their productivity and save a huge amount of time by automatically generating compelling descriptions and metadata for their online store pages.
To configure the ChatGPT AI Content Generator extension on your Magento 2 instance, start by adjusting the General Settings.
The extension consists of two modules:
First, please navigate to Stores → Configutarion → Amasty Extensions → OpenAI Core to adjust content generation provider settings.
Content Generation Provider - here you can choose one of the content generation providers: you can use your own OpenAI key or utilize the Amasty AI Service for content generation.
If you prefer selecting the Amasty AI Service as your content generation provider, simply enable this option and save your configuration.
If you prefer to use your own OpenAI key, ensure to create and insert the Secret Key for OpenAI Core before configuring the extension. To do this, please create an account at OpenAI platform, than go to View API Keys and click Create new secret key.
As soon you get the key, come back to your Magento admin panel and insert the Secret Key you've created to allow the extension using OpenAI API.
Now let's proceed with AI Content Generator general settings. Please go to: Stores → Configutarion → Amasty Extensions → AI Content Generator:
Enable Module - set to 'Yes' to enable the module.
Language - by default ChatGPT generates a response in the language of the selected store view locale, but you can choose another language from the dropdown.
The module allows you to specify which fields should be filled with content generated through OpenAPI and to flexibly customize the criteria that participate in the generation.
Content Based on Selected Product Attributes - here you can multi-select the attributes on which the product description will be based. The limit is 1000 attributes.
Content Based on Custom Attributes - Use this setting when the desired attribute is not found in the 'Content Based on Selected Product Attributes' option. Simply enter the attribute codes you need, separated by space.
Model Name - choose the model that will perform content generation.
For now the following models are available within the module:
Temperature - this indicator affects the creativity of the model. The closer this metric is to 2, the more random the responses to requested actions will be. The closer the metric is to 0, the less creative the model's suggestions will be.
Suffix - a string of characters that is added to the end of the prompt input before generating a response. It is an optional parameter that can be used to provide additional context or constraints to the model during the generation process.
Short Description Maximum Tokens - the setting for OpenAI which is used for the content generation for short descriptions. The maximum number of tokens to generate in the completion. Here you can specify the number from 1 to 3100. If model text-ada-001 is used, it is possible to use up to 2000 tokens.
Description Maximum Tokens - the setting for OpenAI which is used for the content generation for descriptions. The maximum number of tokens to generate in the completion. Here you can specify the number from 1 to 3900. If model text-ada-001 is used, it is possible to use up to 2000 tokens.
Meta Title Maximum Tokens - the setting for OpenAI which is used for the content generation for meta titles. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256.
Meta Keywords Maximum Tokens - the setting for OpenAI which is used for the content generation for meta keywords. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256.
Meta Description Maximum Tokens - the setting for OpenAI which is used for the content generation for meta descriptions. The maximum number of tokens to generate in the completion. Here you can specify the number from 1 to 1024.
Replace the Empty Image Tag With a Product Image - sometimes, AI generates a description with an empty img tag. If the setting is enabled, the empty img tag will be replaced with the product image.
Image Width - here you can specify the width, that will be used for the image, if the setting 'Replace the Empty Image Tag With a Product Image' is enabled.
Remove the Image Tag - in cases, when AI generates a description with an empty img tag, you can not only replace it with the product image, but also remove the tag. It will be automatically removed if this setting is set to 'Yes'.
Remove the Title - set to 'Yes' to remove the title from the product description. Usually AI uses the product name as the title.
Stop - the setting for OpenAI which specifies a sequence of tokens that should not be exceeded in the generated text. It used to control the length of the generated text and prevent the model from generating excessively long responses. When the model encounters a “stop” token, it will stop generating text and return the output generated so far.
Fill in Short Description on Product Save if Empty - if this setting is enabled, a process to fill in the Short Description will be launched in the background when the product is saved. The Short Description will be filled in only if the product did not have it before. Typically, the process takes several seconds.
Fill in Description on Product Save if Empty - if this setting is enabled, a process to fill in the Description will be launched in the background when the product is saved. The Description will be filled in only if the product did not have it before. Typically, the process takes several seconds.
Strings to Exclude - specify a list of words entered with a space, that should not be included in the generated content.
Model Name - choose the model that will perform content generation. Find more information about the models in the Product Settings section of this guide.
Temperature - this indicator affects the creativity of the model. The closer this metric is to 2, the more random the responses to requested actions will be. The closer the metric is to 0, the less creative the model's suggestions will be.
Suffix - a string of characters that is added to the end of the prompt input before generating a response. It is an optional parameter that can be used to provide additional context or constraints to the model during the generation process.
Description Maximum Tokens - the setting for OpenAI which is used for the content generation for descriptions. The maximum number of tokens to generate in the completion. Here you can specify the number from 1 to 3900. If model text-ada-001 is used, it is possible to use up to 2000 tokens.
Meta Title Maximum Tokens - the setting for OpenAI which is used for the content generation for meta titles. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256.
Meta Keywords Maximum Tokens - the setting for OpenAI which is used for the content generation for meta keywords. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256
Meta Description Maximum Tokens - the setting for OpenAI which is used for the content generation for meta descriptions. The maximum number of tokens to generate in the completion. Here you can specify the number from 1 to 1024.
Stop - the setting for OpenAI which specifies a sequence of tokens that should not be exceeded in the generated text. It used to control the length of the generated text and prevent the model from generating excessively long responses. When the model encounters a “stop” token, it will stop generating text and return the output generated so far.
Model Name - choose the model that will perform content generation. Find more information about the models in the Product Settings section of this guide.
Temperature - this indicator affects the creativity of the model. The closer this metric is to 2, the more random the responses to requested actions will be. The closer the metric is to 0, the less creative the model's suggestions will be.
Suffix - a string of characters that is added to the end of the prompt input before generating a response. It is an optional parameter that can be used to provide additional context or constraints to the model during the generation process.
Description Maximum Tokens - the setting for OpenAI which is used for the content generation for descriptions. The maximum number of tokens to generate in the completion. Here you can specify the number from 1 to 3900. If model text-ada-001 is used, it is possible to use up to 2000 tokens.
Meta Title Maximum Tokens - the setting for OpenAI which is used for the content generation for meta titles. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256.
Meta Keywords Maximum Tokens - the setting for OpenAI which is used for the content generation for meta keywords. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256.
Meta Description Maximum Tokens - the setting for OpenAI which is used for the content generation for meta descriptions. The maximum number of tokens to generate in the completion. Here you can specify the number from 1 to 1024.
Stop - the setting for OpenAI which specifies a sequence of tokens that should not be exceeded in the generated text. It used to control the length of the generated text and prevent the model from generating excessively long responses. When the model encounters a “stop” token, it will stop generating text and return the output generated so far.
Model Name - choose the model that will perform content generation. Find more information about the models in the Product Settings section of this guide.
Temperature - this indicator affects the creativity of the model. The closer this metric is to 2, the more random the responses to requested actions will be. The closer the metric is to 0, the less creative the model's suggestions will be.
Suffix - a string of characters that is added to the end of the prompt input before generating a response. It is an optional parameter that can be used to provide additional context or constraints to the model during the generation process.
Template Subject Maximum Tokens - the setting for OpenAI which is used for the content generation for email template subject. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256.
Template Content Maximum Tokens - the setting for OpenAI which is used for the content generation for email template content. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 3900.
Stop - the setting for OpenAI which specifies a sequence of tokens that should not be exceeded in the generated text. It used to control the length of the generated text and prevent the model from generating excessively long responses. When the model encounters a “stop” token, it will stop generating text and return the output generated so far.
Strings to Exclude - specify a list of words entered with a space, that should not be included in the generated content.
Model Name - choose the model that will perform content generation. Find more information about the models in the Product Settings section of this guide.
Temperature - this indicator affects the creativity of the model. The closer this metric is to 2, the more random the responses to requested actions will be. The closer the metric is to 0, the less creative the model's suggestions will be.
Suffix - a string of characters that is added to the end of the prompt input before generating a response. It is an optional parameter that can be used to provide additional context or constraints to the model during the generation process.
Template Subject Maximum Tokens - the setting for OpenAI which is used for the content generation for newsletter template subject. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 256.
Template Content Maximum Tokens - the setting for OpenAI which is used for the content generation for newsletter template content. The maximum number of tokens to generate in the completion. Here you can specify the the number from 1 to 3900.
Stop - the setting for OpenAI which specifies a sequence of tokens that should not be exceeded in the generated text. It used to control the length of the generated text and prevent the model from generating excessively long responses. When the model encounters a “stop” token, it will stop generating text and return the output generated so far.
Strings to Exclude - specify a list of words entered with a space, that should not be included in the generated content.
With the ChatGPT AI Content Generator for Magento 2 you can automatically generate the following data for Product Pages:
To generate the short description for the product page please go to Catalog → Products → Needed product → Content section → Short Description:
Generate with AI - click this button to automatically generate the short description for the product, based on previuosly selected product attributes (check here how to select the needed attributes).
Advanced Generation with AI - click this button to add an input or prompt for the automatic creation of custom product description. You can input a specific topic or idea and the AI will generate relevant content based on that input. This is a more flexible option for content generation compared to relying solely on product attributes.
You can use the generated descriptions as they are or flexibly customize them according to your needs.
With the AI Content Generator extension you can automatically generate product page description using Page Builder. This functionality is available for HTML element and Text element. To generate product page description via Page Builder please head to Catalog → Products → Needed product → Content section → Description and click the button 'Edit with Page Builder':
Then hover the text and click on the gear icon:
Here you can see the buttons Generate with AI and Advanced Generation with AI and also generate the content based on particular product attributes or based on custom prompt, as it was described above.
Don't forget to click 'Save' on Page Builder editing page, when the content is generated and you've made the necessary corrections if any.
With the extension you can automatically add Meta Title, Meta Keywords and Meta Description to your product pages, to make your store pages more visible to search engines and therefore to customers. To do this please go to Catalog → Products → Needed product → Search Engine Optimization.
Generate with AI - click this button to generate the Meta Title / Meta Description description / Meta Keywords based on previously selected product attributes.
Advanced generation with AI - click this button to automatically generate the Meta Title / Meta Description / Meta Keywords based on custom input.
With the ChatGPT AI Content Generator extension, you can add content to multiple product pages at once using the mass action. Navigate to Catalog → Products, then select the products you need and choose the appropriate action:
Within the ChatGPT AI Content Generator PRO version you can also generate the following Meta data for multiple product pages via mass action:
In the PRO version of the extension, once you've selected the desired products, you can opt for one or several actions from the modal window:
The duration of the content generation process depends on the number of products selected for the mass action. However, you can track the process's status through a progress bar that appears as soon as the process starts.
With the extension, you can automatically generate the following data for Category Pages:
With the AI Content Generator extension you can automatically generate category page description using Page Builder. To do this please go to go to Catalog → Categories → Needed category → Content section → Description and click the button 'Edit with Page Builder':
Then hover the text and click on the gear icon:
Generate with AI - click this button to automatically generate the description based on category name.
Advanced Generation with AI - click this button to automatically generate the description based on custom input, as it was described in the product content section of this guide.
Don't forget to click 'Save' on Page Builder editing page, when the content is generated and you've made the necessary corrections if any.
With the extension you can automatically add Meta Title, Meta Keywords and Meta Description to your category pages, to make your store pages more visible to search engines and therefore to customers. To do this please go to Catalog → Categories → Needed category → Search Engine Optimization.
Generate with AI - click this button to generate the Meta Title / Meta Description / Meta Keywords based on category name.
Advanced generation with AI - click this button to automatically generate the Meta Title / Meta Description / Meta Keywords based on custom input.
As for now, with the extension, you can automatically generate the following data for your CMS Pages:
With the AI Content Generator extension you can automatically generate CMS pages description using Page Builder. To do this, please go to Content → Pages → Needed page → Content section → Description and click the button 'Edit with Page Builder':
Then hover the text and click on the gear icon:
You can automatically generate descriptions using either HTML or Text elements.
Generate with AI - click this button to automatically generate the description based on CMS page name. This option becomes available when editing existing CMS pages.
Advanced Generation with AI - click this button to automatically generate the CMS page description based on custom input. This option is available for existing CMS pages as well as for cases when you are creating new CMS pages.
Don't forget to click 'Save' on Page Builder editing page, when the content is generated and you've made the necessary corrections if any.
With the extension you can automatically add Meta Title and Meta Description to your CMS pages, to make your store pages more visible to search engines and therefore to customers. To do this please go to Catalog → Content → Needed CMS Page → Search Engine Optimization.
Generate with AI - click this button to generate the Meta Title / Meta Description / Meta Keywords description based on the CMS page name.
Advanced generation with AI - click this button to automatically generate the Meta Title / Meta Description / Meta Keywords based on your custom input.
With the ChatGPT AI Content Generator extension, you can add SEO data to multiple CMS pages at once using mass action. Navigate to Content → Pages, then select the pages you need and choose the appropriate actions in the modal window (you can choose one or several actions simultaneously):
The duration of the content generation process depends on the number of pages selected for the mass action. However, you can track the process's status through a progress bar that appears as soon as the process starts.
To automatically generate Email templates, please navigate to Marketing → Communication → Email Templates.
With the extension you can generate:
Generate with AI - click this button to generate the Template Content based on the Template Name.
Advanced generation with AI - click this button to automatically generate the Template Subject / Template Content based on your custom input.
To automatically generate Newsletter templates, please navigate to Marketing → Communication → Newsletter Templates.
With the extension you can generate:
Generate with AI - click this button to generate the Template Content based on the Template Name.
Advanced generation with AI - click this button to automatically generate the Template Subject / Template Content based on your custom input.
The extension is compatible with Amasty Blog Pro (the compatibility is available as a part of an active Blog Pro product subscription or support subscription). This means that if you have both extensions installed, you can automatically generate Blog Posts content using AI Content Generator.
To adjust Blog content generation general settings please head to Stores → Configuration → Amasty Extensions → AI Content Generator → Blog Posts Settings:
Fill in the settings the same way as it was described above for Product, Category and CMS pages.
Then you can proceed to any Post page and generate the content you need. With the ChatGPT AI Content Generator for Magento 2 you can automatically generate the following types of content for Blog Post pages:
Product Page with auto-generated content:
Category Page with auto-generated content:
Problem:
The following error appears during descripton generation:
Solution:
To make additional functionality available, please install the suggested packages you may need.
For Basic and Pro versions:
amasty/module-ai-blog-pro-content-generator
- Install this package to ensure compatibility with Amasty Blog Pro.For Pro tariff plan only:
amasty/module-ai-mass-actions-content-generator
- Install this package to use the mass SEO field content generation functionality for product pages.