Custom Variables
Use placeholders to inject dynamic product data and reusable text into your AI prompts.
Variables are reusable placeholders that the plugin automatically replaces with actual product data or your custom text during the generation process. They allow you to create flexible prompts that work for every product in your store.
What are Variables?
Instead of writing "Write a description for the Blue Cotton T-Shirt," you write "Write a description for {title}." When the AI processes a product, it replaces {title} with the actual name of that product.
Built-in Variables
These variables are available to all users and are automatically populated from your WooCommerce product data.
General Variables
{language}: The output language selected in your Content Settings.{style}: The writing style selected in your Content Settings.{title}: The name of the product.
Product Data Variables
{CATEGORIES}: A list of categories the product belongs to.{ATTRIBUTES}: Technical details like size, color, material, or weight.{REGULAR_PRICE}: The standard price of the product.{SALE_PRICE}: The current sale price (if applicable).
Standard Generator Variables
The Standard Generator uses a simplified set of variables:
{title},{category},{attributes},{price}.
Custom Variables (Pro Feature)
Custom variables allow you to create your own reusable text snippets. This is perfect for consistent brand elements that you want to include in every description without retyping them.
How to Create Custom Variables:
- Go to AI Product Tools > Settings > Prompt Settings.
- Open the Variables panel (usually on the right or bottom).
- Click the + (plus) button.
- Enter a Name (e.g.,
brand_name) and a Value (e.g.,TechPro Electronics). - Click Save.
How to Use Custom Variables:
Once created, your custom variable will appear in the Variables panel. Simply click on its name to insert it into any prompt field. It will appear as {variable_name}.
How to Delete Custom Variables:
Click the trash icon next to the variable name in the Variables panel.
Example Use Cases
Custom variables save time when you have consistent brand elements across all descriptions:
- Brand Name:
{brand_name}= "TechPro Electronics" - Target Audience:
{audience}= "tech-savvy professionals" - Unique Selling Point:
{usp}= "made from 100% eco-friendly materials"
Visual Indicators
In the prompt editor, variables are highlighted with colored badges. This helps you quickly see which parts of your prompt are dynamic and which are static text.
Custom variables are a great way to maintain brand consistency. If you change your brand's unique selling point, you only need to update the variable value once, and all future generations will use the new text.
What's Next?
Check out the AI Models Guide to choose the best engine for your dynamic prompts.
