Shopify's robots.txt can be edited from the template, but this is an example of how to exclude the default rules rather than adding rules.
Example configuration to create a customer segment that purchases a specific product variant

[Setup Method 1] Create a Flow that assigns customer tags based on the selected variant of the purchased product.

[Setting Method 2] Set customer segments based on customer tags

