Skip to main content

Variables

Use the variables in the prompt so the ChatGPT could generate a response that includes specific details on your store, blog content, customer.

Global variables

These variables can be used throughout the entire store.

VariableDescription
{{ global.input }}the variable is for additional text entered into the prompt during manual usage of the prompt in the admin panel.
{{ store.name }}store name.

Product variables

To use all available product attributes in the prompt, use the {{ product.attributes }} variable. To use your own attribute, use its attribute code as shown in the table:

VariableDescription
{{ product.name }}name of the product.
{{ product.description }}the product description.
{{ product.short_description }}the product short description.
{{ product.meta_description }}the product meta description.
{{ product.attribute_code }}one specified product attribute.
{{ product.attributes }}list of useful attributes.

The attribute_code may vary for each store. You can find it under Store -> Attributes -> Product in the Attribute Code column.

tip

Before using a custom attribute, make sure the attribute is available for promo rule conditions.

Ignored product attributes

Some product attributes are ignored because they are either not informative for content generation, frequently change, or cause issues. Check the ignored attributes list before using:

AttributeDescription
statusthe current status of a product, such as enabled, disabled, or out of stock.
skustock Keeping Unit (SKU) is a unique identifier for each product.
pricethe retail price of the product.
visibilitydefines how the product is visible on the storefront (e.g., catalog, search, or both).
newindicates whether the product is considered new.
saleindicates whether the product is currently on sale.
shipment_typedefines the type of shipping (e.g., flat rate, free shipping).
imagethe main image of the product.
small_imagea smaller version of the main product image used in specific areas (e.g., product listing).
thumbnaila very small version of the product image used in areas such as product thumbnails.
url_keythe URL key for the product, often used for creating clean URLs (e.g., /product-name).
msrp_display_actual_price_typecontrols how the MSRP (Manufacturer's Suggested Retail Price) is displayed in relation to the actual price.
price_viewdetermines how price is shown on the product (e.g., as a range or as a single price).
page_layoutspecifies the layout used for the product page (e.g., 1-column, 2-column).
custom_designspecifies a custom design for the product, often used for special promotions or events.
custom_layoutdefines a custom layout for the product page to change how content is displayed.
gift_message_availableindicates if gift messaging is available for the product.
image_labela label for the main product image, usually for accessibility or descriptive purposes.
small_image_labela label for the small product image.
thumbnail_labela label for the thumbnail image.
tax_class_iddetermines the tax class assigned to the product, which affects how taxes are applied.
options_containerdefines how the product's configurable options (e.g., size, color) are displayed.
quantity_and_stock_statusdefines the quantity available and the stock status (in stock, out of stock, or backordered).
swatch_imagean image representing a product option such as color or size used in product swatches.
special_pricea special discounted price for the product, typically used for sales or promotions.
special_from_datethe start date for a special price promotion.
custom_layout_update_filea custom layout update file that modifies the product page layout.

Category variables

To use all available category attributes in the prompt, use the {{ category.attributes }} variable. To use your own attribute, use its attribute code as shown in the table:

VariableDescription
{{ category.attribute_code }}one product attribute.
{{ category.attributes }}list of useful attributes.
{{ category.name }}name of the category.
{{ category.description }}the category description.

Ignored category attributes

Some category attributes are ignored because they are either not informative for content generation, frequently change, or cause issues. Check the ignored attributes list before using:

AttributeDescription
is_activeindicates whether the category is active (enabled) or not.
url_keythe SEO-friendly URL key for the category, used in the category’s URL.
paththe full path of the category in the category tree, showing its hierarchy.
include_in_menudefines whether the category is included in the store's navigation menu.
positionthe position of the category in the category list, determining its order.
leveldefines the level of the category in the category hierarchy (root, first level, second level, etc.).
children_countthe number of child categories under this category.
display_modedefines how the category is displayed (e.g., as a list, grid, or with a static block).
landing_pagethe custom landing page associated with the category (if applicable).
is_anchorindicates if the category is an anchor category (i.e., allows products to be displayed directly within the category).
custom_use_parent_settingsindicates whether the category should use the settings from its parent category.
custom_apply_to_productsdefines whether custom settings should be applied to products in the category.
custom_designspecifies a custom design for the category, often used for special promotions or events.
page_layoutspecifies the layout used for the category page (e.g., 1-column, 2-column).
layout_updatea custom layout update for the category page, often used to modify the layout dynamically.
custom_layout_updatecustom layout updates applied specifically to the category, modifying its page structure.
custom_layout_update_filea file that contains custom layout updates for the category page.

Blog variables

The extension supports only a limited number of blog extensions. Please check if your blog extension is available before using.

VariableDescription
{{ 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.

Helpdesk variables

The extension supports only a limited number of blog extensions. Please check if your blog extension is available before using.

VariableDescription
{{ 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.