{"section":"tutorials","requestedLocale":"en","requestedSlug":"configure-employee-benefits-using-master-data-clusters","locale":"en","slug":"configure-employee-benefits-using-master-data-clusters","path":"docs/en/tutorials/master-data/customer-relations-management/configure-employee-benefits-using-master-data-clusters.md","branch":"main","content":"In VTEX, a benefit or discount can be applied to a group of customers. This group of customers can be defined by properties that they have in common. \n\n> ⚠️ This article describes how Master Data v1 works. It is important that you evaluate which Master Data version meets the needs of your operation or is already in use. <ul> <li> [ Master Data version characteristics ](/en/docs/tutorials/master-data#versions-available) </li> <li> [ Master Data v2 ](https://developers.vtex.com/docs/guides/master-data-v2-basics) </li> </ul>\n\nThis article shows how to configure a benefit for employees. It is considered that the employees are a group of customers, so they are identified using Master Data clusters.\n\nSince customer data is stored as documents of the CL (Client or Cliente) data entity in Master Data, the content of the fields will decide if the customer belongs to that group. \n\n## What is a cluster?\nIn Master Data, a cluster is a field with a determined value for a data entity. One or more clusters define this group of customers with common properties in the CL data entity.\n\nHere, the common property of the clients will be that they are also employees of the store. More information about clusters of customers can be found in the article [Create a cluster of customers](/en/docs/tutorials/how-can-i-create-cluster-of-customers).\n\nThis article assumes that the employees are properly registered with a boolean field `isEmployee` set to true in their respective documents for the CL data entity, as shown in the figure below. \n\nIf they are not, check the article [Creating a field in Master Data](/en/tutorial/how-can-i-create-field-in-master-data) to create a field that identifies the employees and properly configure it for each document corresponding to the employees.\n![Employee field](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/master-data/customer-relations-management/configure-employee-benefits-using-master-data-clusters_1.png)\n\n> ℹ️ There are many details to completely configure a benefit. If you need additional information on this matter, check out the article [Creating promotions](/en/tutorial/creating-promotions-2).\n\nWith the field configured, the benefit can be created by following the steps below:\n\n1. In the left panel of Admin, access **Promotions** > **Promotions**.\n2. With the **Promotions** menu open, click on the **New Benefit** button in the top right corner.\n3. Choose the desired type of benefit from the available options.\n4. Fill the required fields to set up the benefit. There are many fields (e.g.: Name, Expiration date, kind and amount of discount, etc.) and some of them are specific to the selected type of benefit. More information about configuring the benefits can be found in the article [Creating promotions](/en/tutorial/creating-promotions-2).\n5. To apply the benefit only to the employees, inside section 3 (What are the **conditions** for the benefit to be valid?), check the **Customer cluster** mark\n6. In the box below the **Customer cluster** mark, write the cluster that identifies the customers that are employees (a pair `{field}={value}`). In this case it is used `isEmployee=true`.\n7. In the end of the page, click on the **Save** button.\n\nAfter that, the benefit should already be working as configured. The discount is shown only in the shopping cart. The image below shows an example with 99% off.\n![Shopping cart with discount](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/master-data/customer-relations-management/configure-employee-benefits-using-master-data-clusters_2.png)"}