Shoply AI
Demos
Case Study
Install
Blog
FAQ
Videos
About Us

Controlling Which Product Metafields  Shoply Can Use

How to Blacklist Product Metafields

Your AI Shopping Assistant is designed to help customers by reading your product information, answering questions, and making recommendations.

However, not all product data is meant for customers. Some product metafields  may include internal information (such as profit margin), supplier details, or other attributes that should remain private. In these cases, you may prefer that Shoply does not use those metafields when answering customer questions.

Shoply uses AI to automatically determine which metafields can be used when answering customer questions. However, to give you full control, Shoply allows you to set blacklist (exclude) specific product metafields or entire metafield namespaces.

This guide explains why this is useful and how to configure it.

Where to find Advanced Settings?

Go to the “Settings” section of the app’s admin console, and then scroll down to the “Advanced Settings” section. In this section, you can provide a JSON object  to configure various settings.

Blacklist Settings

Use these settings to prevent Shoply from using specific product metafields when answering customer questions.

blacklist_product_fields

A list of exact metafield keys (field names) you want to exclude. The field name must match the metafield’s key exactly as it appears inside Shopify.

Example metafield keys:

  • start_date
  • product_type
  • backstock_number
  • upc
  • shipping_lead_time
  • brand

Note: if you don’t want to show vendor of the product, you need to add “brand” to the blacklist, as Shoply uses the brand metafield to store vendor information for legacy reasons.

blacklist_namespaces

A list of entire namespaces  you want the AI to ignore.

Example:

  • RenterInfo

If a metafield belongs to a blacklisted namespace, all fields in that namespace are excluded automatically.

This is useful when a whole namespace is internal or sensitive.

Tips for Blacklisting

  • Supplier codes
  • Warehouse / inventory details
  • Internal fulfillment notes
  • Metafields used by other apps
  • Any field that shouldn’t be visible to customers

Avoid blacklisting fields like:

  • Product title
  • Description
  • Material
  • Size, dimensions, or specs
  • Ingredients
  • Care instructions
  • Variant names/options

(These help the AI give better answers.)

Enrich Product Data from Tags

split_tag_to_metafield_by

Shopify tags are a convenient way to label products, but they’re stored as a flat list of strings and can’t be used as structured filters. This setting lets you convert key:value style tags into proper metafields that Shoply can index and use for filtering.

How it works:

Set split_tag_to_metafield_by to the delimiter character used in your tags. Shoply will split each tag on that character, treat the left side as the metafield key and the right side as the value, and index them accordingly.

For example, if your products have tags like:

material:aluminum color:matte-black compatible-with:iPhone 15

Setting the delimiter to ":" will produce metafields:

KeyValue
materialaluminum
colormatte-black
compatible-withiPhone 15

These indexed metafields can then be used as facet filters in Shoply AI Search — just like native Shopify metafields.

Tags that don’t contain the delimiter are ignored by this setting and remain as regular tags.

Example configuration:

{ "split_tag_to_metafield_by": ":" }

When to use this:

  • Your store already uses key:value tags for attributes (e.g., from a bulk import or third-party app)
  • You want to add filterable attributes without creating formal Shopify metafield definitions
  • You need a quick way to expose structured product data to Shoply without re-tagging your catalog

Control Product Display

Use these settings to control what information is shown when products are displayed in the chat or search interface.

hide_discount

When set to true, discount percentages (e.g., “-40%”) will be hidden from product displays. This is useful if you don’t want to emphasize discounts to customers.

hide_price

When set to true, all price information will be hidden, including original prices and discounted prices. Use this if you prefer customers to visit the product page to see pricing, or if your pricing strategy requires hiding prices in the chat/search interface.

hide_review

When set to true, review ratings will not be shown on product displays. This is useful if you don’t want review scores to influence customer decisions in the chat/search interface.

Example of a valid JSON object

Here is a fully valid example:

{ "blacklist_product_fields": [ "profit_margin", "inventory_level", "product_type", "category_name" ], "blacklist_namespaces": [ "SupplierInfo" ], "split_tag_to_metafield_by": ":", "hide_discount": true, "hide_price": false, "hide_review": false }

You can remove items you don’t need, or add your own metafield keys and namespaces. Set the hide_* options to true or false based on your preferences.

©2026 by shoplyai.ai All Rights Reserved