---
schema_version: "1"
id: b40eddd2191536b83a8c5ff64aab94b004743cbbe1bdacc9ac7d6426d68b917b
title: Create and Apply Rules 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_create_apply_rules.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_recommender_create_apply_rules.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0a57284afb218d1160994b0f3006b700638696b325b588179ff81606247fc50c
description: Rules enable you to manipulate the list of recommended product IDs before passing the list to the storefront at run time.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Create and Apply Rules in B2C Commerce Einstein

Rules enable you to manipulate the list of recommended product IDs before passing the list to the storefront at run time.

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

Note You aren’t required to define rules, and it's common for configured recommenders to not use any rules. If you choose to not use rules, all of the product IDs in the list are sent to the storefront in the exact order in which the strategy (or strategies) returned them.

Create and apply up to 30 rules for any given recommender. Each rule specifies an _action_, a _field_, and one or more _field values_ (or _attributes_).

When B2C Commerce Einstein applies a rule, it checks each product in the list of IDs returned by the strategy (or strategies), and compares the product's field value to the values specified in the rule. If the product's field value matches the specified field value in the rule―or matches one of the specified values in the rule if there are more than one―the action applies.