Prompts
ChatGPT starts generating text in respond to a text prompt. The list of prompts are located at System -> AI Assistant -> Prompts.
Here, you'll find the following fields:
- ID: ID of the prompt.
- Code: internal code.
- Title: prompt name.
- Is active: prompt status.
- Open AI model: the model used for data generation.
- Position: the prompt priority.
- Action: actions on the selected prompts in the queue:
- Edit: allow see and edit trigger.
- Delete: allow delete source.
Configure prompt
Use Action -> Edit to view or modify the existing prompt. The following fields will be available:
- Active: activates the prompt to be accessible for usage.
- Code: prompt identifier to be used by the extension.
- Title: prompt name that is visible in the Magento admin to the user.
Title field example - Prompt: contains a short prompt for ChatGPT. Use variables to adjust the ChatGPT response to the specific request.
- Scopes: select where the prompt will be available:
- Product
- Category
- Blog post: supports only Magezone, Amasty and Mirasvit Blog MX extensions.
- CMS page
- CMS block
- Helpdesk ticket: support only Mirasvit Help Desk MX extension.
- Email: supports only default Magento Newsletters and Mirasvit Follow Up Email extension.
- KB category: supports only Mirasvit Knowledge Base extension.
- KB article: supports only Mirasvit Knowledge Base extension.
- Brand: support only Mirasvit Layered Navigation extension.
- Order: support Order Comments field in default Magento order.
- Open AI model: select Open AI model for a particular prompt. The From config value for this option means the prompt will use the default Open AI model from the configurations of the extension.
- Frequency penalty: the frequency penalty is a parameter that allows us to control how often the same text expression can be used. By default, OpenAI uses a value of 0, which allows the same phrases to repeat in the text. To make the text more unique, you can increase the frequency penalty value to 1. In this case, you'll receive more unique text.
- Stop sequences: used to stop generation when a value is encountered in output.
- Field selectors: add a Magento selector field in which the extension will insert the ChatGPT output.
- Sort order: sets the prompt position in the list of all prompts.
- Open in window: when activated a window appears so you can see the Help Text or alter the prompt. When disabled the ChatGPT output immediately appears in the text field.
Prompt window - Help text: additional text for ChatGPT to use when generating content. For example, additional info on the product.
- Get variables' values from: select the store from which the assistant should grab values for variables.
Current store
means the assistant will autodetect the store. For automation rulesCurrent store
will be the store for which the prompt applies at the moment. This setting most useful for translations. Applicable for Products, Categories, and Blog posts (Mirasvit Blog MX). - Remove HTML tags from input: if disabled, the extension will not remove HTML tags from variable values. The prompt size might increase which can lead to OpenAI maximum content length error (depends on the model). Enabled by default. Disabling this option most useful for translating content from WYSIWYG editor and the Page Builder.
- Convert output to HTML: places the ChatGPT output within the HTML tags. Only available when the Remove HTML tags from input option is enabled.