The NextGenAiAssistant module allows you to create a wide range of content for your products, including descriptions, meta tags, translations, and more. This guide will walk you through the steps for generating product content using the AI Assistant, using a product description as an example.
1. Access the Product Edit Page
- In your PrestaShop admin panel, go to Catalog > Products.
- Select the product you want to edit and click to open its details.
2. Navigate to the AI Assistant Tab
- Once in the product editing view, select the AI Assistant tab. This tab provides access to all AI-powered content generation tools available for the selected product.
3. Fill Out the Create Thread Form
To generate content (in this example, a product description), complete the fields in the Create Thread form as follows:
- 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 this 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.
4. Start the Content Generation Process
- Click Create And Run to initiate the thread. This sends your prompt and settings to the AI model, beginning the content generation process. The new content, such as a product description in this example, will be available for review in the thread interface.
- After initiating the content generation process by creating a thread, the module begins processing the request in the background. This is handled through cron jobs that execute specific scripts to manage the communication with the AI model. For more details on setting up these background scripts, refer to the Cron Job Installation Guide.
5. Monitoring the Thread in the AI Assistant – Threads Tab
- Once the cron jobs process the request, the newly created thread will appear in the AI Assistant – Threads tab. The processing time depends on your cron job frequency and the current workload of the module, so it may take a few minutes for the content to be generated and displayed.
6. Managing the Generated Content
When the thread becomes available, you have several options to manage the generated content, especially if Autosave was set to Off during thread creation:
- Continue the Thread: You can choose to continue the conversation with the AI by adding new prompts. This allows you to refine or adjust the generated content further if the initial output requires modification or elaboration.
- Create a Backup: Before finalizing any changes, you can create a backup of the current product data. This creates a restore point, allowing you to revert to the original data if needed. This is particularly useful if you want to save different versions of the generated content before making a final decision.
- Accept the Generated Content: Once you’re satisfied with the AI-generated content, you can accept it, which will save the new content to the product database. This action finalizes the content and makes it live on the product page.
For a detailed guide on managing threads, including options for continuing, backing up, and accepting content, refer to the Thread Management Guide.
By following these steps, you can efficiently generate, review, and manage high-quality AI-generated content for your products, using the AI Assistant’s flexible tools to achieve your desired results.