# Magento 2 AI Content Generator

### <span style="color: #3b82f6;">Installation and User Guide for Magento 2 AI Content Generator</span>

**Table of Contents**

1. [*Installation* ](#bkmrk-installation)
    - *Download Extension*
    - *Installation via app/code*
    - *Installation via Composer*
2. [*Configuration Settings for AI Content Generator*](#bkmrk-configuration-settin)
    - *General Settings*
    - *Product Settings*
    - *Category Settings*
    - *CMS Page Settings*
3. [*AI Content Generator Settings on Product Pages*](#bkmrk-ai-content-generator)
    - *Short Description*
    - *Description*
    - *Meta Title*
    - *Meta Description*
    - *Meta Keywords*
4. [*AI Content Generator Settings on Catgory Pages*](#bkmrk-ai-content-generator-2)
    - *Description*
    - *Meta Title*
    - *Meta Description*
    - *Meta Keywords*
5. [*AI Content Generator Settings on CMS Pages*](#bkmrk-ai-content-generator-3)
    - *Page Content*
    - *Meta Title*
    - *Meta Description*
    - *Meta Keywords*
6. *[AI Content Generator API Logs](#bkmrk-ai-content-generator-5)*

### <span style="color: #3b82f6;">Installation</span> [](#bkmrk-)

- <span style="color: #f97316;">**Download Extension:**</span> Once you have placed the order from our site then go to My Account section and click on My Downloadable Products and download the extension package.

[![image - 2025-06-05T172432.087.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t172432-087.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t172432-087.png)

- <span style="color: #f97316;">**Installation via app/code:**</span> Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added. After the successful upload of the package, run below commands on Magento 2 root directory.
    
    ```php
    composer require orhanerday/open-ai
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy en_GB en_US
    ```
- <span style="color: #f97316;">**Installation via Composer:**</span> Please follow the guide provided in the below link to complete the installation via composer.

<p class="callout success">[https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer](https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer)</p>

### <span style="color: #3b82f6;">Configuration Settings for AI Content Generator</span> [](#bkmrk--51)

Go to **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; AI Content Generator**

#### <span style="color: #f97316;">General Settings</span> [](#bkmrk--49)

- **Enabled –** Select "Yes" or "No" to enable or disable the module.
- **License Key –** Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at <support@scommerce-mage.com>.

[![image.png](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/scaled-1680-/IbYimage.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/IbYimage.png)

#### <span style="color: #f97316;">Chat GPT</span>

- **AI Service** - Please select the AI Service from the dropdown "**ChatGPT**".
- **Chat GPT versions -** Please select the Chat GPT versions from the dropdown "**ChatGPT3.5**".
- **Chat GPT API key-** Please enter the Chat GPT API key.
- **Retention Days -** Define the retention days for the logs that are kept in the database.
- **Cron Job -** Define Cron schedule for purging of the log data.
- **Purge Log -** Select 'Yes' to enable purging of log data in the database

[![image.png](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/scaled-1680-/UJ5image.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/UJ5image.png)

#### <span style="color: #f97316;">Gemini</span>

- **AI Service** - Please select the AI Service from the dropdown "**Gemini**".
- **Gemini API version -** Please select the Gemini API version from the dropdown "Gemini Flash".
- **Gemini API key-** Please enter the Gemini API key.
- **Retention Days -** Define the retention days for the logs that are kept in the database.
- **Cron Job -** Define Cron schedule for purging of the log data.
- **Purge Log -** Select 'Yes' to enable purging of log data in the database

[![image.png](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/scaled-1680-/Au1image.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/Au1image.png)

#### <span style="color: #f97316;">Groq</span>

- **AI Service** - Please select the AI Service from the dropdown
- **Groq Versions -** Please add the Groq versions. The AI will generate content based on the selected version. Choose 'Custom' to enter a custom value
- **Groq API Key -** Enter the API key from Groq (<span style="text-decoration: underline;">**[https://console.groq.com/](https://console.groq.com/))**</span>
- **Retention Days -** Define the retention days for the logs that are kept in the database.
- **Cron Job -** Define Cron schedule for purging of the log data.
- **Purge Log -** Select 'Yes' to enable purging of log data in the database

[![image.png](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/scaled-1680-/AE5image.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2026-03/AE5image.png)

**Note:-** Switch store view or website to expose the settings below:-

#### <span style="color: #f97316;">Product Settings</span> [](#bkmrk--49)

- **Meta Title Character Prompt–** Add the prompt for Meta Title on product pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Product Meta Title. This data can be overwritten or custom prompt can be used at the product level. Google recommendation for Meta title limit is up to 70 characters.
- **Meta Description Prompt –** Add the prompt for Meta Description on product pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Product Meta Description. This data can be overwritten or custom prompt can be used at the product level. Google recommendation for Meta Description limit is up to 160 characters.
- **Meta Keywords Prompt–** Add the prompt for Meta Keywords on product pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Product Meta Keywords. This data can be overwritten or custom prompt can be used at the product level. Google recommendation for Meta keyword limit is up to 10 keyword phrases or 160 characters.
- **Short Description Prompt –** Add the prompt for Short Description on product pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Product Short Description Title. This data can be overwritten or custom prompt can be used at the product level. Google recommendation for Short Description is up to 200 words.
- **Product Description Prompt –** Add the prompt for Product Description on product pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Product Description. This data can be overwritten or custom prompt can be used at the product level. Google recommendation for Page Description limit is up to 3600 characters.

[![image (50) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-50-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-50-1.png)

#### <span style="color: #f97316;">Category Settings</span> [](#bkmrk--49)

- **Meta Title Character Prompt–** Add the prompt for Meta Title on category pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Category Meta Title. This data can be overwritten or custom prompt can be used at the category level. Google recommendation for Meta title limit is up to 70 characters.
- **Meta Description Prompt –** Add the prompt for Meta Description on category pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Category Meta Description. This data can be overwritten or custom prompt can be used at the category level. Google recommendation for Meta Description limit is up to 160 characters.
- **Meta Keywords Prompt–** Add the prompt for Meta Keywords on category pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Category Meta Keywords. This data can be overwritten or custom prompt can be used at the category level. Google recommendation for Meta keyword limit is up to 10 keyword phrases or 160 characters.
- **Category Description Prompt –** Add the prompt for Category Description on category pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Category Page Description. This data can be overwritten or custom prompt can be used at the category level. Google recommendation for Page Description limit is up to 3600 characters.

[![image - 2025-06-05T173041.098.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173041-098.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173041-098.png)

#### <span style="color: #f97316;">CMS Page Settings</span> [](#bkmrk--49)

- **Meta Title Character Prompt–** Add the prompt for Meta Title on CMS Pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Content Meta Title. This data can be overwritten or custom prompt can be used at the CMS page level. Google recommendation for Meta title limit is up to 70 characters.
- **Meta Description Prompt –** Add the prompt for Meta Description on CMS Pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Content Meta Description. This data can be overwritten or custom prompt can be used at the CMS page level. Google recommendation for Meta Description limit is up to 160 characters..
- **Meta Keywords Prompt–** Add the prompt for Meta Keywords on CMS Pages. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Content Meta Keywords. This data can be overwritten or custom prompt can be used at the CMS page level. Google recommendation for Meta keyword limit is up to 10 keyword phrases or 160 characters.
- **Page Content Prompt –** Add the prompt for CMS pages content. This prompt setting will be used to extract AI generated content from either ChatGPT or Google Gemini for Content Page Description. This data can be overwritten or custom prompt can be used at the CMS Page level. Google recommendation for Page Description limit is up to 3600 characters.

[![image - 2025-06-05T173139.927.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173139-927.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173139-927.png)

### <span style="color: #3b82f6;">AI Content Generator Settings on Product Pages</span> [](#bkmrk--51)

AI content generator works with the following fields on the product pages. Go to **Admin&gt;Catalog&gt;Product** and then select any product.

#### <span style="color: #f97316;">Short Description</span> [](#bkmrk--49)

Click on **Fetch Content** and Based on the prompt set in the configuration the content is generated and populated automatically into this field.

[![image - 2025-06-05T173217.934.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173217-934.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173217-934.png)

In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image (51) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-51-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-51-1.png)

#### <span style="color: #f97316;">Description</span> [](#bkmrk--49)

Edit the description with page builder and when add a HTML element the AI Content Generator options are present. Click on **Fetch Content** and Based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image (52) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-52-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-52-1.png)

#### <span style="color: #f97316;">Meta Title</span> [](#bkmrk--49)

Go to Product settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Title and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T173511.451.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173511-451.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173511-451.png)

#### <span style="color: #f97316;">Meta Description</span> [](#bkmrk--49)

Go to Product settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Description and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T173540.580.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173540-580.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173540-580.png)

#### <span style="color: #f97316;">Meta Keywords</span> [](#bkmrk--49)

Go to Product settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Keywords and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T173607.960.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173607-960.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173607-960.png)

### <span style="color: #3b82f6;">AI Content Generator Settings on Category Pages</span> [](#bkmrk--51)

#### <span style="color: #f97316;">Description</span> [](#bkmrk--49)

Edit the description with page builder and when add a HTML element the AI Content Generator options are present. Click on **Fetch Content** and Based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image (53) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-53-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-53-1.png)

#### <span style="color: #f97316;">Meta Title</span> [](#bkmrk--49)

Go to Category settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Title and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T173749.393.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173749-393.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173749-393.png)

#### <span style="color: #f97316;">Meta Description</span> [](#bkmrk--49)

Go to Category settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Description and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T173812.504.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173812-504.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173812-504.png)

#### <span style="color: #f97316;">Meta Keywords</span> [](#bkmrk--49)

Go to Category settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Keywords and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T173853.829.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t173853-829.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t173853-829.png)

### <span style="color: #3b82f6;">AI Content Generator Settings on CMS Pages</span> [](#bkmrk--51)

#### <span style="color: #f97316;">Page Content</span> [](#bkmrk--49)

Edit the content with page builder and when add a HTML element the AI Content Generator options are present. Click on **Fetch Content** and Based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image (54) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-54-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-54-1.png)

#### <span style="color: #f97316;">Meta Title</span> [](#bkmrk--49)

Go to Page settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Title and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T174037.290.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t174037-290.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t174037-290.png)

#### <span style="color: #f97316;">Meta Description</span> [](#bkmrk--49)

Go to Page settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Description and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T174108.710.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t174108-710.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t174108-710.png)

#### <span style="color: #f97316;">Meta Keywords</span> [](#bkmrk--49)

Go to Page settings&gt;Search Engine Optimization. Click on **Fetch Content** below Meta Keywords and based on the prompt set in the configuration the content is generated and populated automatically into this field. In case you want to add a custom prompt for this product simply click on **AI Content Using Custom Prompt** and add your prompt then when you click **Fetch Content** the content is generated based on your custom prompt.

[![image - 2025-06-05T174129.738.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t174129-738.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t174129-738.png)

### <span style="color: #3b82f6;">Frontend</span> [](#bkmrk--51)

AI content generator generates content on all Category, Product, CMS Pages. Please check some of the frontend screengrabs of the generated content:-

#### <span style="color: #f97316;">Product Pages</span> [](#bkmrk--49)

<span style="color: #f97316;">[![image - 2025-06-05T174155.536.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t174155-536.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t174155-536.png)</span>

#### <span style="color: #f97316;">Category Pages</span> [](#bkmrk--49)

<span style="color: #f97316;">[![image (55) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-55-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-55-1.png)</span>

#### <span style="color: #f97316;">CMS Pages</span> [](#bkmrk--49)

<span style="color: #f97316;">[![image (56) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-56-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-56-1.png)</span>

#### <span style="color: #f97316;">Meta Keywords</span> [](#bkmrk--49)

<span style="color: #f97316;">[![image (57) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-57-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-57-1.png)</span>

### <span style="color: #3b82f6;">AI Content Generator API Logs</span> [](#bkmrk--51)

Go to **Scommerce AI Content Generator&gt;API Logs** to view logs of each API request used by AI content Generator.

[![image - 2025-06-05T174813.572.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-05t174813-572.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-05t174813-572.png)

The grid contains request response and the AI engine used:-

[![image (58) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-58-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-58-1.png)

If you have a question related to this extension please check out our [<span style="text-decoration: underline;">**FAQ Section**</span>](https://www.scommerce-mage.com/magento-2-ai-content-generator.html#customfaq) first. If you can't find the answer you are looking for then please contact [**support@scommerce-mage.com**](mailto:core@scommerce-mage.com)**.**