Using Mass Actions to Generate Product Data

The Mass Actions feature in NextGenAiAssistant allows you to generate various types of content for multiple products at once, based on the selected Prompt Type. This can include descriptions, meta tags, translations, or any specific data you need. By using mass actions, you can efficiently update or create content across your product catalog, saving time and ensuring consistency.

Follow these steps to use mass actions for generating product data:

1. Access the Product List

  • In your PrestaShop admin panel, go to Catalog > Products to view your list of products.
  • Use filters if needed to select a specific set of products for which you want to generate content (e.g., by category or language).

2. Select Multiple Products

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

3. Open the Mass Actions Menu

  • Once you’ve selected your products, click on the Mass Actions button (usually found at the top or bottom of the product list).
  • Choose the Create And Run AI Thread option from the dropdown menu. This will open the mass action configuration panel where you can define the details of the content generation process.

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 Product Description to instruct the AI to create a detailed description based on the product 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 product without requiring manual review or approval.
    • Backup: Select this option to create a backup of the current product 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:
    • Product 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 start the mass action. The selected products will be processed in the background through queued jobs, using cron jobs to handle the generation tasks.
  • Make sure your cron jobs are correctly set up to ensure smooth processing. For more information on cron setup, refer to the Cron Job Installation Guide.

6. Monitoring and Managing Generated Content

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

By using Mass Actions to generate product data, you can quickly update content for multiple products with ease. This feature offers flexibility in automating content creation, making it ideal for stores with large inventories or for updating specific data across various products.

How can we help?