How to use Artificial Intelligence in Plytix to optimize and enrich your short text and paragraph data
The new Artificial Intelligence Autofill feature allows users to generate and optimize data for text attributes more efficiently. This article will discuss the step-by-step of how to use AI for better management of your product data, prerequisites to have access to the feature, and tips and tricks of how to make the most out of this tool.
⚠️ Disclaimer: This feature is not available for use in all accounts yet.
*Skip to any section in this article by clicking on the links above
Prerequisites to use AI in Plytix
The AI Autofill feature only works with custom text attributes; so you will need to have at least one text attribute in your PIM (short text or paragraph), to use this tool.
To use AI in Plytix, you must first have an OpenAI registered account. While registration is free, you also need a paid plan to use the OpenAI API in Plytix. OpenAI follows a token system to send and receive information from their API and to bill its users; the more text you generate in Plytix using the OpenAI API, the more tokens will be consumed, and that will impact your overall OpenAI billing.
⚠️ Plytix does not limit, control, or manage how many tokens you use in any way. This feature requires accessing paid services directly on OpenAI which is not managed by Plytix. Plytix cannot be held responsible for third-party billing.
Plytix uses the latest version of GPT-4 with 8K context. However, you will be able to use AI in Plytix regardless of the OpenAI paid plan you have chosen.
💡 OpenAI offers a number of ways to control your spending, including setting hard limits so you don’t create a “runaway bill.” You can access their most updated information on pricing here.
Generating your AI key
Once you are logged in with OpenAI, you will need to generate an API key.
1. To generate your API key, click on your username in the upper right hand corner. Select “View API keys” in the dropdown options.
2. This will redirect you to the “API keys” page. To create a new API key, click on '+ Create new secret key'
3. A window with your new key will pop up. Copy the key to your clipboard. Then, click 'Done'
4. Give your new key a recognizable name that reflects what you will be using it for (e.g.: Plytix AI Autofill). Select 'Create secret key'
ℹ️ Plytix manages AI API keys per user, not by account. So you can have multiple users with their individual valid OpenAI keys using the AI Autofill option in a single PIM account.
Adding and validating your AI key in the PIM
1. To start using the AI Autofill feature in your PIM, go to a product’s details page.
2. Select any short text or paragraph attribute. Click on the pencil icon. On the left-hand side of the edit section of your attribute, you will find a magic wand icon for AI Autofill. Click on it.
3. A side panel will open to the right, asking you to input your API key. Paste the key that you copied from the OpenAI dashboard. Select 'Validate credentials'. Your API Key will be saved for future uses so you only have to do this step once.
⚠️ If you are receiving an error message that we cannot validate your key, please check if you copied it correctly without any blank spaces. If you are still getting the error message, generate a new key on OpenAI and try again. Please, make sure you have an active billing set up with OpenAI to generate a valid key.
Auto generating text using AI
Once your key is added and validated, a panel will open with a "Prompt editor" where you can start writing your prompts for the AI text generator. These are text instructions written in natural language. They can vary in length and complexity from simple operations to advanced equations. Please refer to our cheat sheet further down in this article for prompt ideas.
1. To generate text using AI Autofill, write out your prompt in the prompt editor. If you wish to reference an attribute, type “$” and select your attribute from the dropdown list. You can reference as many attributes as you want in your prompts.
ℹ️ When referencing attributes in the prompts, make sure there is a space between any punctuation you insert both before and after $(ATTRIBUTE). Otherwise, the referenced attribute will not be recognized in the prompt.
2. Check the box 'Show attribute values' to view a list of attributes you referenced in your prompt with the values they contain for the product you are entering.
3. Once you finish writing your prompt, press 'Generate' and wait for OpenAI to generate your text.
ℹ️ When referencing an attribute in your prompt, AI Autofill will refer to the value of the referenced attribute, rather than the name of the attribute. For example, when referencing $ATT.VOLUME, AI Autofill recognizes that $ATT.VOLUME is 28 L in your final prompt.
⚠️ Reminder: While Plytix does not limit the length of your prompts, please keep in mind that your final third-party OpenAI billing varies according to the number of character values generated. So, adding attributes with a greater number of values (like lengthy descriptions) will increase the amount of tokens you spend with OpenAI, and will be reflected in your OpenAI billing outside of Plytix.
Adding your AI generated text in your attribute values
1. If you are happy with the OpenAI result, select 'Insert content.' This will overwrite the previous attribute value with the AI-generated text.
⚠️ Once you select “Insert content,” the AI Autofill side panel will close and will delete your prompt and result, so you will only be able to find the generated text directly in your attribute value. Selecting "Insert content" will also overwrite whatever value the attribute had before. If you wish to recover the value before it was overwritten, select “Discard changes.”
If you have a character limitation on your attribute (e.g. maximum 350 characters), and the AI generated text exceeds this limit, AI Autofill won’t be able to insert it into your attribute. Instead, it will display an error message (see image below). To counteract this, add a new instruction to your prompt telling AI to limit the response to your specific character limit number (e.g.: “limit your response to 230 characters”).
2. Select 'Save changes'
If you wish to further edit the AI-generated text, you can do so only after it's already inserted in your attribute value. After inserting the text, you can edit it selecting the pencil icon.
Understanding AI Autofill shortcomings
While AI Autofill is a great tool to both generate and optimize text in your product attributes, it is helpful to understand some of its current limitations to learn how to make the best use of this new feature.
- Keep in mind that, while you can reference any type of attribute in your prompts, AI Autofill can only be used for text attributes. Each text attribute may be edited using AI Autofill separately; you cannot bulk edit with AI Autofill.
- Currently, users cannot edit AI generated results directly on the AI Autofill tab; it can only be edited once it is inserted into the attribute field on the Product Details page, after the AI Autofill panel is closed.
- Prompts cannot be saved in Plytix for future reference. So if you would like to keep track of the prompts you are using, save them in a separate external file and paste them in when using AI Autofill.
AI prompts cheat sheet
If you are unsure on how to get started with AI Autofill, here are a few uses for the tool and example prompts you can refer to*:
- Translations: “Translate $(attribute) into (desired language)”
- Concatenate and merge different attributes: “Concatenate $(attribute) and $(attribute)”
- Find synonyms: “Write a product description using a synonym of (word)”
- Explain things in simple ways: “Explain how to (action – e.g. :build an item following specific instructions) in simple terms”
- Extract features or benefits from longer descriptions: “Identify the main benefits mentioned in $(attribute)”
- Generate SEO titles and descriptions: “Generate a SEO description considering the keywords ‘product’ and ‘management’”
- Define a specific tone according to your target audience: “Re-write $(attribute) using an academic tone”
- Create platform-optimized titles: “Generate an Amazon-optimized title”
- Apply a specific length to a text: “Limit this description to 250 characters”
- Convert currencies: “Convert $(price attribute) into USD”
- Correct spelling mistakes from different attributes: “Rewrite $(attribute), removing any spelling mistakes”
- Curate content: “Generate a list of primary colors from $(attribute with full list of colors)”
*This is not an exhaustive list!
Keep the following tips in mind for an optimized use of OpenAI:
- Be specific: consider the desired tone of voice you want your AI generated text to have (e.g.: witty, formal, brief), the character limit, and more! The more detailed your prompt is, the better your result will be.
- Consider who your audience is, and include your target demographic in your prompt.
- Refer to the platform or channel where this content will be used; whether it will be displayed in your company’s e-catalogue, your Shopify store, or your social media, the language and formatting of each platform varies — and you can let AI take care of it!
- Learn how to use different attribute types
- Learn how to create and manage attribute groups
- Learn how to create, edit, and test formulas for computed attributes
If you have any questions just click on the chat box in the bottom-right corner and we'll get back to you with an answer as soon as possible...
and please let us know 👇