Prompt management
ChatGPT starts generating text in respond to a text prompt. Configure prompts for your store by navigating to System > AI Assistant > Prompts.
Add a new prompt or duplicate an existing one to use it as a template.
Configure the prompt
- 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.
- Prompt. Contains a short prompt for ChatGPT. Use variables to adjust the ChatGPT response to the specific request.
- Frequency penalty. Controls the tendency for repeating words in the output. It can be from 0 to 1.
- Stop Sequences. Used to stop generation when a value is encountered in output.
- Scopes. Select where the prompt will be available: product, blog, ticket.
- Field Selectors. Add a Magento selector field in which the extension will insert the ChatGPR 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.
- Help Text. Additional text for ChatGPT to use when generating content. For example, additional info on the product.
- Convert output to HTML. Places the ChatGPT output within the HTML tags.
Available variables
Use the variables in the prompt so the ChatGPT could generate a response that includes specific details on your store, blog content, customer.
Variable | Description |
---|---|
{{ global.input }} | Identifier of the input field. |
{{ store.name }} | Store name. |
Helpdesk
Variable | Description |
---|---|
{{ ticket.lastMessage }} | Includes the content of the last |
{{ ticket.customer }} | Customer full name |
{{ user.first_name }} | Agent first name |
{{ user.name }} | Agent name |
{{ user.last_name }} | Agent last name |
Product edit page
Variable | Description |
---|---|
{{ product.name }} | Name of the product |
{{ product.some_attribute }} | One product attribute |
{{ product.attributes }} | List of useful attributes |
Category edit page
Variable | Description |
---|---|
{{ category.some_attribute }} | One product attribute |
{{ category.attributes }} | List of useful attributes |
Blog edit page
Variable | Description |
---|---|
{{ post.title }} | Title of the blog post |
{{ post.content }} | Main content of the blog post |
{{ post.short_content }} | Short content of the blog post |
{{ post.meta_title }} | Meta Title of the blog post |
{{ post.meta_description }} | Meta Description of the blog post |
{{ post.meta_keywords }} | Meta Keywords of the blog post |
{{ post.data }} | Combined data of the blog post |
Available field selectors
Field selector | Description |
---|---|
[name="product[meta_title]"] | Meta title on product page |
[name="product[meta_keyword]"] | Meta keyword on product page |
[name="product[meta_description]"] | Meta description on product page |
textarea[name=short_description] | Product short description |
textarea[name=description] | Product description |
textarea[id=reply] | Ticket reply |
[name="name"] | Blog post title |
textarea[name="meta_title"] | Blog post meta title |
textarea[name="meta_keywords"] | Blog post keywords |
textarea[name="meta_description"] | Blog post meta description |
textarea[name="short_content"] | Blog post summary |
Translate to different Languages
OpenAI language model can be used for translating text to another language. You need to create a corresponding propmpt in AI Assistant to use ChatGPT for translating purposes.
There are several approaches to create a prompt for ChatGPT to be used as a translator:
- When creating a Prompt, specify in which language you want to receive the response;
- Create a separate Prompt in which you ask to translate an existing text to another language (similar to how Fix Grammar prompt);
- Write the question in the language you want to receive the answer. For example, if you want to translate from English to German - write the prompt in German.
Note
When using Automation rules functionality, the language of the ChatGPT output is affected by the selected Store view. The Store View language will signal to ChatGPT to switch the language for its output.