Skip to main content

Field selectors

AI Assistant can work with any text field in Magento (within the supported Scopes). The extension links to the field using field selectors.

Most common default selectors

Below are the available most common default Magento field selectors:

Field selectorDescription
.catalog-product-edit [name="product[meta_title]"]Meta title on product page
.catalog-product-edit textarea[name="product[meta_keyword]"]Meta keyword on product page
.catalog-product-edit [name="product[meta_description]"]Meta description on product page
.catalog-product-edit textarea[name=short_description]Product short description
.catalog-product-edit textarea[name=description]Product description
.helpdesk-ticket-edit textarea[id=reply]Ticket message
.blog-post-edit [name="name"]Blog post title
.blog-post-edit textarea[name="meta_title"]Blog post meta title
.blog-post-edit textarea[name="meta_keywords"]Blog post keywords
.blog-post-edit textarea[name="meta_description"]Blog post meta description
.blog-post-edit textarea[name="short_content"]Blog post summary
textarea[name='history[comment]']Order comments field
.catalog-category-edit [name="meta_title"]Meta title on category page
.catalog-category-edit textarea[name="meta_keywords"]Meta keyword on category page
.catalog-category-edit [name="meta_description"]Meta description on category page
.cms-page-edit [name="meta_title"]CMS page meta title
.cms-page-edit textarea[name="meta_keywords"]CMS page meta keywords
.cms-page-edit [name="meta_description"]CMS page meta keywords
.cms-page-edit [name="content_heading"]CMS page heading
.newsletter-template-edit [name="subject"]Magento newsletter subject
.newsletter-template-edit textarea[name="text"]Magento newsletter message
.brand-brand-edit [data-index=content] textarea[name*=short_description]Brand short description
.brand-brand-edit [data-index=meta_data] textarea[name*=meta_description]Brand meta description
.brand-brand-edit [data-index=meta_data] textarea[name*=meta_keyword]Brand meta keywords
.brand-brand-edit [data-index=meta_data] input[name*=meta_title]Brand meta title

Custom selectors

If you want to link AI Assistant to a custom field or a default Magento field not listed in the selector list, you will need to get the selector manually.

note

The extension has a limited list of integrations with other extensions. Before searching for a selector, make sure we support the 3rd party extension in the scopes.


Most common Page Builder selectors

AI Assistant supports both inline fields in Page Builder and fields used within asides. Below is the list of selectors that will add the assistant to different elements in the Page Builder.

Inline fields for Page Builder

Field selectorDescription
textarea#pagebuilder_text_form_contentPage builder text block
.pagebuilder-text [contenteditable="true"]Text block
.pagebuilder-heading [contenteditable="true"]Text heading
.pagebuilder-faq-item [contenteditable="true"]FAQ block
.pagebuilder-content-type-wrapper .inline-wysiwyg[contenteditable="true"]Category description

Aside fields for Page Builder

Field selectorDescription
input[name="heading_text"]Text heading
input[name="button_text"]Text on button (for translation purposes)
input[name="content_heading"]Content heading
textarea[name="content"]Text content
textarea[name="html"]Text content
.catalog-product-edit textarea[name='product[short_description]']Product short description
.catalog-product-edit textarea[name=html]Product description
.catalog-product-edit textarea[name=content]Product description
.catalog-product-edit textarea[name='product[description]']Product description
.catalog-product-edit textarea[name='product[html]']Product description
.catalog-product-edit [data-index="container_description"]Product description
.pagebuilder-content-type-wrapperProduct description
.inline-wysiwyg[contenteditable="true"]Product description
.catalog-category-edit textarea[name=description]Category description
.catalog-category-edit textarea[name=content]Category description
.catalog-category-edit textarea[name=html]Category description
.catalog-category-edit textarea[name='category[description]']Category description
.catalog-category-edit textarea[name='category[html]']Category description
.catalog-category-edit [data-index="description"]Category description