Personalize filters - Users metadata


For user-personalization recipe, I have the following metadata:

  • Users: User_id, age, gender,
  • Interactions: User_id, Item_id, event_type,
  • Items: Item_id, Genre and Item_title.

We want to get the recommendations filtered based on the age. Currently in the create filter step, we aren't able to add Users.age property in our filter for the where clause. Any suggestions on how we can filter on different users metadata for the user personalization recipe?

asked 3 months ago44 views
2 Answers


Is the age column listed in the User dataset schema? You should have an entry similar to:

	"name": "AGE",
	"type": "int"

For the filter, when you go to build the expression, you should select:

  • Action = Include
  • ID = UserID

This should allow you to select the WHERE property of Users.age. Screenshot of this below:

Filter Example

profile picture
answered 3 months ago
  • Hi.. thanks for the above answer. I am looking specific to user-personalization recipe. I want the recommended items based on the location/age. Just wondering if the users metadata can be used to filter in this scenario or do I need to use it as a context?


Hi, adding to the above.

First: Filters are deterministic, Context is a nudge. A filter will determine the recommendations fully, i.e. nothing that does not match the filter is recommended, while the context will subtly influence the recommendations, i.e. recommendations will be different if your user behaviour is different in different contexts, but there may be overlap in recommended items.

You should use item and user metadata fields if the attribute does not change over (a short) time for the same user or item (user age, user city). You should use context attributes of the interaction that change over time (device type, time of day, ...). Read more about context here

To apply a filter using an user-metadata attribute in the user-personalization recipe, you can add an "IF" clause to the expression:

Enter image description here Click on the "+" to add the condition and select the "IF" operator.

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions