Target guides using arrays of attributes

How to pass an array of attributes to Bento, and how to use them when setting up guide targeting rules.

Emily Wang avatar
Written by Emily Wang
Updated over a week ago

In most cases, user and account attributes are passed into Bento as an individual value, for example:

role = admin

However, certain attributes are sometimes easier to sent as an array. For examples, what features a customer has.

featureSet = ["featureA", "featureB", "featureC"]

Bento supports attribute arrays for strings and you can use them in guide targeting. Like with all other attributes, select it from either the account or user targeting rules, and choose from the following operators:

  • Has any of: launch a guide to a user so long as they have this attribute, regardless of what other attributes in this list they have.

  • Has all of: only launch a guide to a user who has all of the following attributes. Here you should probably have more than one attribute in the rule.

  • Has exactly: only launch a guide to a user who has exactly this / these attributes. No more, no less.

  • Has none of: this is an exclusion list. For example, launch a guide to all users except those that have this specific attribute, etc.

To use this, you need to pass attributes into Bento in the form of an array. This means a user or account would need to have multiple values assigned to them. You can check the data type of the attribute from the data and integrations page in Bento.

The type should be a 'text list' for array attributes.

This feature is behind a feature flag. Let us know if you want to try it out.

Did this answer your question?