Computed fields
  • 07 Jan 2025
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Computed fields

  • Dark
    Light
  • PDF

Article summary

Computed fields allow aggregating data about your customer and fill their profile in with additional info based on their user behavior.
For example, such fields can help you identify what products, categories, or vendors your customer buys or views most frequently.
Computed fields can be used as any other custom fields, e. g. for segmentation, campaigns, promotions, etc.

Creating a computed field

You can create up to 3 fields

  1. Go to the Settings tab → System settings → Custom fields and click "Create computed field":

01_ComputedFields

  1. Fill in the settings:

00_ComputedFields

General settings

  • Name — the same as displayed in filters or campaigns
  • Brand
  • System name — is used in integrations and the message template engine

Recalculating

  • Frequency is daily or just once (per all the time the field exists)
  • Period is the data time frame you want to use in your report.

Formula

  1. Choose what type of events to collect data for: views or orders
    08_Computed fields

  2. Choose which entity to search in processed data — it will be filled in customer’s calculated field.

  • Product

Find the most frequently purchased product:
02_ComputedFields
Or the most frequently viewed product:
09_Computed fields

  • Category — you need to select categories among which the calculation will take place

Find the most frequently purchased category of the four selected:

03_ComputedFields

Important: You cannot select a parent and child category at the same time

11_Computed fields

  • Manufacturer

Which manufacturer's products are most frequently purchased or viewed by the customer:
12_Computed fields

  • Product’s custom field - string, integer and enumerated field types are available.

Product from which collection the customer purchases most often:
13_Computed fields

  • Order’s custom field - string, integer and enumerated field types are available.

Which delivery type the customer uses most often:
14_Computed fields

  • Order’s touchpoint

Where the customer makes purchases most often:
15_Computed fields

  • Additional conditions - allow you to narrow the selection of data among which the calculation will take place.

Find the client's brand of interest in the eyewear category:
NEW_08_ComputedField
Find the most frequently purchased product in the women's category and only from delivered items:
NEW_09_ComputedField

Minimum views/orders for this product is the action number threshold for the value to be filled in the field.

You can also set the Calculation priority:

  • Most recent
  • Most expensive
  1. Click "Save"

Done:

04_ComputedFields

Filed computing is launched at night.

Customer search

Custom and computed fields are located in the same tab in your customer card:
05_ComputedFields

You can use filters to filter out the customers with the filed value needed:
06_ComputedFields

Display in the campaign

Computed field parameters are listed in Recipient.CustomField

To display products for a customer, use a parameter of this type: Recipient.CustomField.{Filed system name}.

The available parameters depend on the type of calculated field.

If you defined the product - all parameters for the product are available:

07_ComputedField

If you were looking for the most common value of the custom field - parameters for displaying this field are available:
NEW_10_ComputredField

It is also possible to display recommendations for computed products and categories.
NEW_11_ComputedFields

Use in the flow

In the flow you can use “Preferred product changed” event, which allows you to react to a decrease in the cost of a product from a calculated field:

NEW_12_ComputedFields

Example: