A common use case for AI and large language models such as ChatGPT, Gemini and Copilot is to use them for generating product description, titles, headers and other text features.
With the create with Create with AI feature, it is now possible to build dynamic templates within Perfion using the features of the product in the prompt. This allows user create templates that consistently generates texts.
In to make the Create with AI functionality available, provide an API key in the AI Setup section in Administration.
How to use
Create with AI is available on any explicit non-multi value string, or text feature. Right-click on the feature cell you want to generate a value for and select Create with AI.
In this window there 3 main components; The prompt editor (1), the result view (2), and the feature list (3).
Anything written in the prompt editor will be pass to the language model as a prompt. The direct result of that prompt will be delivered to the result view. Clicking Generate will pass the prompt and return the result.
The result view contains what will use as the feature value when the save or save and close buttons are clicked. When the Generate button is clicked, the result from the language model is passed here. the result can be edited before saving.
The feature list contains by default all the features available in the configuration for the base item currently selected. That means if the Create with AI window has been opened on the Subheader feature on the Product configuration, the list will contain all features configured on the Product.
Clicking any of the features will insert the feature tag in the text where the cursor currently is. For more information on how these tags works, see the Formulas guide.
To verify that the prompt is resolved correctly with the feature tags inserted, click the View Prompt button to see what will be passed to the language model.
Localization of prompts and replies
Language models generally replies in the languages they’re prompted. If the prompt is in english, the result will be in english. If the result is needed in another language, either write the prompt in the corresponding language or add request the reply to be in the desired language with a text like “Reply in German”.
Alternatively, it is recommended to always prompt in the same main language and use the translations tools available in Perfion to handle localization of values.
Saving & Reusing Templates
Creating a prompt template can take time. Ensuring the language model replies in the correct tone, in the right format with the right content is often an trial and error process. Therefore it is possible to save prompt templates when the user is satisfied with it.
In the top of the menu, clicking the Save icon will allow users to name and save their template, so it can be reused on other products later. Templates are unique per configuration and per feature. This means, that the templates that are created for Subheader on the Product configuration, will only ever be available on the Subheader feature for Products. Other feature such as a Description or Itemname will have their own templates saved. In order to be able to save templates, a user must have the Can manage AI Integrations role. Otherwise, the user will only be able to use already created templates, by selecting it from the dropdown list.
Managing Templates
Prompt templates can be managed from the Enrichment Templates section under Administration by users who have the Can manage AI Integrations role.
Comments
0 comments
Article is closed for comments.