---
schema_version: "1"
id: 9de2eb0e75b6425993626be35d9fb16cb3d42e3ad9ee11315f209e23dd3b3fac
title: Rule Field Values in B2C Commerce Einstein
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_recommender_rule_field_values.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_recommender_rule_field_values.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2fbe4f7d39e1f4888fdc7726ed107bce7505d5845abe74e705795731f4dd3297
description: When creating rules, you select values for certain rule fields.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Rule Field Values in B2C Commerce Einstein

When creating rules, you select values for certain rule fields.

B2C Commerce Einstein supports various attributes out of the box. When configuring attributes, keep the following in mind:

- B2C Commerce Einstein supports Boolean, string, set of string, and enum of string attributes.
- To protect storefront performance and the shopper experience, any field with a Uniqueness Percent over 25% doesn’t appear in the Einstein Configurator for rules. The Uniqueness Percent is calculated using the number of unique values divided by the total number of values in the field.
- Any fields with a uniqueness percent under 25% can be made web usable. Einstein automatically marks "set of string" fields with under 25% uniqueness as web usable. However, all other attribute types require a Salesforce support case to make the attribute web usable.

The Einstein Configurator constructs category fields using the Business Manager category assignment logic for products shown in the following image.

![Rule values in business manager.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/b2c_bm_rule_values.png)

  
| Callout | Value Category | Definition |
| --- | --- | --- |
| 1 | all\_assigned\_categories | Represents all category IDs assigned to the product. |
| 2 | classification\_category | Represents the classification category name field of the product type: base product. If no classification category radio button is selected, the primary category path applies. |
| 3 | primary\_category | Represents the primary category path of the product type: base product. |
| N/A | brand | Represents the brand value on the product general tab. |

In this example, all assigned category IDs (1) appear in the Category ID column. The merchant defined the product, GoBrew, as a classification category (2), and assigned it to the primary category (3) of **Shop All > Drinks > Coffee**.

To recommend similar items, you create a rule in Einstein Configurator to show only products that match the primary category of **Shop All > Drinks > Coffee** when viewing the GoBrew product details page.

Use the Match Anchor field value to filter recommendations based on the primary category of the proudct detail page.

For example: `Show Primary Category = Match Anchor`

When you apply this rule, Einstein filters out any products that do not share the same primary category as the viewed product. This helps in providing more relevant and contextually appropriate recommendations to the shopper.