Generating Content for a Category

The Mass Actions feature in NextGenAiAssistant also allows you to generate content for categories, such as descriptions or translations. This is useful for quickly adding or updating content across multiple categories, ensuring consistency and enhancing the presentation of your catalog.

Follow these steps to generate content for categories:

1. Access the Category List

  • In your PrestaShop admin panel, go to Catalog > Categories to view your list of categories.
  • Use filters if necessary to narrow down the selection to specific categories for which you want to generate content.

2. Select Multiple Categories

  • Check the boxes next to the categories you want to include in the mass action.
  • You can select individual categories or use the “Select All” option to include all categories on the current page.

3. Open the Mass Actions Menu

  • Once you’ve selected your categories, click on the Mass Actions button.
  • Choose Create And Run AI Thread from the dropdown menu. This will open the mass action configuration panel where you can set the parameters for the content generation.

4. Configure Mass Action Settings

  • Template: Choose a predefined prompt template if you have one. Templates provide a consistent structure for content requests, helping streamline the generation process.
  • Prompt Text: Use this optional field to add additional instructions to refine the AI’s output. For example, you could specify a desired character count, add keywords, or request a certain tone. This is added on top of the main prompt defined by the selected Prompt Type.
  • Prompt Type: Select the type of content you want to generate. For example, choose Generate Category Description to instruct the AI to create a detailed description based on the category data and settings provided.
  • Model Provider: Set to OpenAI, indicating the module will use OpenAI’s AI technology for content generation.
  • OpenAI Model: Choose between GPT-4o mini and GPT-4o.
    • GPT-4o mini is recommended for most tasks, as it’s more cost-effective.
    • GPT-4o offers more advanced and detailed responses but at a higher cost, ideal if the simpler model doesn’t meet your needs.
  • Languages: Select the language in which the AI will generate the content, ensuring it aligns with your store’s localization requirements.
  • Shops: For multistore setups, select the specific store(s) to which this content will apply.
  • Additional Parameters:
    • Autosave: When enabled, the generated content will be saved directly to the category without requiring manual review or approval.
    • Backup: Select this option to create a backup of the current category content before applying the new AI-generated content.
  • Temperature: Adjust the AI’s creativity level. Higher values (up to 2.0) produce more creative outputs, while lower values (closer to 0) result in more consistent, straightforward responses.
  • Upload Files: You can upload additional .txt or .pdf files to provide the AI with extra context. For example:
    • Category Specifications: Include detailed technical information or specifications to help the AI produce an accurate description.
    • SEO Requirements: Add guidelines on SEO keywords, preferred tone, or formatting instructions to tailor the content to your marketing needs.

5. Start the Mass Action

  • Once you’ve configured the settings, click Create And Run to initiate the mass action. The selected categories will be processed in the background through queued jobs, utilizing cron jobs to handle the generation tasks.
  • Make sure your cron jobs are properly configured to enable seamless processing. For more information on setting up cron jobs, refer to the Cron Job Installation Guide.

6. Monitoring and Managing Generated Content

  • After starting the mass action, go to the AI Assistant – Threads tab to monitor the progress of each category’s content generation thread. Each category will have its own thread, showing the status and allowing further actions.
  • If Autosave was disabled, you can review and accept each thread’s content manually. For more details on managing individual threads, refer to the Thread Management Guide.
  • Use Backup and Retry options as needed to ensure quality and manage generated content for each category.

By using Mass Actions to generate content for categories, you can quickly create or update category information in bulk, enhancing your store’s organization and improving the customer browsing experience. This feature provides a streamlined solution for managing category content across large catalogs.

How can we help?