{"section":"tutorials","requestedLocale":"en","requestedSlug":"dynamic-groups","locale":"en","slug":"dynamic-groups","path":"docs/en/tutorials/vtex-cx-platform/contacts/contacts/dynamic-groups.md","branch":"main","content":"Dynamic groups allow you to segment contacts according to criteria defined in a search. For example, you can use them to group contacts by age, location, or any other information stored in contact fields.\n\nUnlike static groups, dynamic groups don't allow you to add or remove contacts manually. Group membership is determined by the search rule: only contacts that match the defined criteria are included.\n\n## Creating a dynamic group\n\nTo create a dynamic group:\n\n1. Go to the **Contacts** page.\n2. In the search bar, enter an expression using contact fields and operators.\n3. Review the contacts returned by the search.\n4. Click the button to save the dynamic group.\n5. In the window that appears, enter a name for the group and confirm.\n\n## Defining a search rule\n\nRules combine contact fields, values, and operators. Available operators include:\n\n- `AND`: requires both conditions to be met.\n- `OR`: requires at least one condition to be met.\n- `>`: greater than.\n- `>=`: greater than or equal to.\n\nFor example, consider contacts that have the `age` and `gender` fields. To create a group containing male contacts over 18 years old, you can use the following expression:\n\n`age > 18 AND (gender = \"M\" OR gender = \"Male\")`\n\nIn this example:\n\n- `age > 18` selects contacts over 18 years old.\n- `(gender = \"M\" OR gender = \"Male\")` accepts either of the specified values for the `gender` field.\n- `AND` determines that both conditions must be met.\n\nThe field names and values in the expression must match the information stored in the contacts.\n\n## Managing a dynamic group\n\nAfter creating the group, you can:\n\n- Edit its name.\n- Export participating contacts.\n- Delete the group.\n- Change the membership rule.\n\nThese management options follow the same process used for static groups."}