Speed-up content production using the power of AI. Magento 2 AI Content Generator extension connects OpenAI's API with your store and helps you auto-generate content on the go!
Table of Content
- Extension Installation Guide
- Configuration
- Product Settings
- Category Settings
- CMS Settings
- Generating AI Content for Products
- Generating AI Content for Category Meta Data
- Generating AI Content for CMS Meta Data
- For Magento Marketplace Customers
- Find the Composer name and version of the extension in the extension’s composer.json file.
- Login to your SSH and run:
- composer require meetanshi/magento-2-ai-content-generator --ignore-platform-reqs
-
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension installed properly, run the command:
- php bin/magento module:status Meetanshi_ChatGPT --ignore-platform-reqs
- By default, the extension is probably disabled.
- Enable the extension and clear static view files:
- php bin/magento module:enable Meetanshi_ChatGPT --clear-static-content
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
-
- For Meetanshi Customers
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- For Meetanshi Customers
- Configuration
To configure the extension, log in to Magento backend, move to Stores à Configuration à AI Content Generator where you can find various settings to configure the extension.
- AI Content Generator: Enable the AI Content Generator extension from here.
- GPT-3 API Key: Enter the API key received while registration with GPT-3.
- Product Settings
The extension facilitates configuring the character limits settings for products while fetching the content automatically through AI.
- Meta Title Character Limit: Enter characters limit to be considered while auto generating AI content for product meta titles.
- Meta Description Character Limit: Enter characters limit to be considered while auto generating AI content for product meta descriptions.
- Short Description Character Limit: Enter characters limit to be considered while auto generating AI content for product short descriptions.
- Category Settings
The extension facilitates configuring the character limits settings for categories while fetching the content automatically through AI.
- Meta Title Character Limit: Enter characters limit to be considered while auto generating AI content for category meta titles.
- Meta Description Character Limit: Enter characters limit to be considered while auto generating AI content for category meta descriptions.
- CMS Settings
You can also configure the character limits settings for CMS pages while fetching the content automatically through AI.
- Meta Title Character Limit: Enter characters limit to be considered while auto generating AI content for CMS pages meta titles.
- Meta Description Character Limit: Enter characters limit to be considered while auto generating AI content for CMS pages meta descriptions.
- Generating AI Content for Products
Move to Catalog > Products, select a product and click edit. Go to the Content tab and click on Short Description field. Switch to text editor mode and you can see buttons to fetch content automatically and using a custom prompt. Click “Fetch AI Content” to automatically fetch content based on the product title.
- Fetch AI content using custom prompt
Click on “AI Content Using Custom Prompt” and it will open a popup to enter the custom prompt. After adding the custom prompt, click “Fetch Content” to fetch the content based on the custom prompt entered.
- Fetch AI Content for Product Description
The extension facilitates fetching AI content for product long description (only if page builder is enabled) as well. Move to Catalog > Products, click to edit a product, move to Content tab and Description field, click “Edit with Page Builder” button, open the “HTML Code” under the “Elements” tab. Here, you can see both the “Fetch AI Content” and “AI Content Using Custom Prompt” buttons. You can follow the same steps as mentioned for short description above to fetch auto AI content or fetch AI content using custom prompt for the product description.
- Fetch AI Content for Meta Title and Meta Description
The admin can also fetch AI content for product meta data. Move to Catalog > Products, click to edit a product, move to Search Engine Optimization tab and you can see “Fetch AI Content” and “AI Content Using Custom Prompt” buttons. You can follow the same steps as mentioned for short description above to fetch auto AI content or fetch AI content using custom prompt for the category meta title and meta description.
Note: The character limit set for the product short description, meta title and meta description will only be applied for auto “Fetch AI Content” buttons. For the custom prompt, you require to add character limits in prompt itself. For example, “write a meta title for joust duffle bag within 60 characters”.
- Generating AI Content for Category Meta Data
Move to Catalog > Categories, select a category. move to Search Engine Optimization tab and you can see “Fetch AI Content” and “AI Content Using Custom Prompt” buttons. You can follow the same steps as mentioned for product short description above to fetch auto AI content or fetch AI content using custom prompt for the category meta title and meta description.
Note: The character limit set for the category meta title and meta description will only be applied for auto “Fetch AI Content” buttons. For the custom prompt, you require to add character limits in prompt itself. For example, “write a meta title for bags within 60 characters”.
- Generating AI Content for CMS Meta Data
Move to Content > Pages, select and edit a page. move to Search Engine Optimization tab and you can see “Fetch AI Content” and “AI Content Using Custom Prompt” buttons. You can follow the same steps as mentioned for product short description above to fetch auto AI content or fetch AI content using custom prompt for the page meta title and meta description.
Note: The character limit set for the page meta title and meta description will only be applied for auto “Fetch AI Content” buttons. For the custom prompt, you require to add character limits in prompt itself. For example, “write a meta title for privacy and cookie policy within 60 characters”.