You can use the Static Relationships ingredient in Einstein Recipes to define which items should be recommended with other items. This ingredient is only available if you have Static Relationships enabled on your account and you are tracking products on the dataset.
The ingredient requires a basic setup in which you associate relationships between products, which can be configured individually or by uploading a CSV that includes the links between categories and/or items. Once products are linked to each other, they can be served in recommendations through the Static Relationships ingredient.
Create a Relationship Type
Before you can link products, you must create a relationship type. Each dataset is limited to 10 static relationship types. Typically, relationship types are based on how the items you want to associate relate to each other. For example, you could create an "Accessories" relationship type, but accessories could mean anything from the jewelry, belt, and shoes that go with a particular dress, to the adapter, port replicator, and monitor that go with a particular laptop.
Configure Product Associations
Once you have defined the relationship types, you can associate products with each other. This can be done manually or by uploading a CSV.
Configure with CSV
Manual merchandising like this can be tedious for large amounts of products, so Interaction Studio offers the ability to upload a CSV to link all of your products together at once.
- As with individual configuration, linking is not two-way.
- If you make a mistake, you may upload the same .CSV file and select the option to Remove relationships from items. Or you can manually make adjustments by following the instructions in the Configure Individually section below.
Create a CSV
The format of the .CSV file is detailed in the image at the right. The first column name should be listed as "items" in cell A1, followed by the item IDs that will serve as anchor items for the ingredient. The second column name should be listed as "linkedItems" in cell B1, followed by the item IDs you want to link (separated by commas) to each item in column A. In the example at the right, in row 2, prodB is linked to prodA and prodC; prodC is being linked to prodA in row 3, and so on.
Once you have defined the relationship types in Catalog Setup, you can associate products. Unlike linking for SmartBundle or Incompatible Relationships, Static Relationships are not two-way. For example, if you only link product A to product B, if product A is the anchor item, product B will not be returned unless you also link product B to product A (as shown in the CSV example).
- Log into Interaction Studio
- Select Catalog > Products from the left navigation menu
- Double click a product you wish to link to another product (or select it and click EDIT)
- Click the Relationships tab
- Click under the desired Static Relationship
- Enter the item name or ID to search for the product
- Press [Enter] to select the product
- Add additional linked products as needed to the same or a different relationship
- Click SAVE to save changes
- Now, when this item is the anchor item for a static relationship ingredient, any linked products will be recommended