Manage Groups and Campaigns

The Groups & Campaigns feature is currently being tested internally for quality assurance purposes. The feature will be available to all organizations during summer 2021.

Note that the Groups & Campaigns tab will only be available for Coveo organizations that have the Result Ranking tab enabled.

The Groups & Campaigns tab of a query pipeline configuration allows members with the required privileges to create sets of query pipeline result ranking rules that apply for specific contexts, audiences, or periods of time.

This query pipeline feature lets you create sets of result ranking rules within the same pipeline, allowing you to create less query pipelines for managing different search and browsing contexts.

Using the Groups and Campaigns tab of a query pipeline configuration, you can either create time-based groups of query pipeline rules, or permanent groups, which last as long as they’re on an active state.

EXAMPLE

In the query pipeline towards which your Coveo-powered commerce portal traffic is directed, you configure a time-based group of rules to enforce your ACME monitors promotion.

During this one-week promotion, you offer discounts on ACME monitors.

Therefore, you create a groups and campaigns configuration in your pipeline that contains result ranking rules to promote ACME-branded monitors.

This configuration applies only for the duration of the promotion.

Common Use Cases

Management of Large Numbers of Rules

When your implementation contains several result ranking rules, you should consider creating groups that contain subsets of these result ranking rules.

EXAMPLE

In your Coveo-powered pet supplies commerce portal, all customer queries are directed to the commerce query pipeline. This query pipeline contains featured result and ranking expression rules that are triggered when the query dog food is performed.

These rules promote different items depending on the user’s country. For example, when the user is Canadian, you promote dog food products available in Canada and when the user is American, you promote dog food products available in the United States.

Since you’re selling different dog food products depending on the user’s country, you create two different groups of query pipeline rules. The rules contained in each group will apply conditionally to the user’s country.

Planning and Preparing for Time-sensitive Rule Enforcement

When a query pipeline contains result ranking rules aimed at promoting certain items for a determined period of time, you should consider creating time-based groups.

EXAMPLE

In your Coveo-powered commerce portal, you want to promote all items made by the ACME brand for 24 hours for the upcoming Black Friday event.

To make sure that this promotion only lasts for the Black Friday event, you create a time-based group that contains all result ranking rules that aim at promoting ACME products. You then set the start and end date as desired.

Add a Group

  1. On the Query Pipelines page, click the query pipeline in which you want to add a group, and then in the Action bar, click Edit components.

  2. On the page that opens, select the Groups & Campaigns tab, and then, in the upper-right corner, click Add a group of rules.

  3. On the Add a group of rules subpage that appears, in the Name input, enter a name for the group or campaign you’re creating.

  4. Under Condition, you can optionally select a query pipeline condition in the drop-down menu or create a new one.

  5. In the Activation section, select Activate your group for a specific period of time or Activate group manually depending on whether you want your group of rules to be time-based or permanent.

  6. Depending on your selection in the previous step, fill the available options (see Specific Period of Time Options and Manual Group Option).

  7. Under User note, optionally enter information that will help you manage the group in the future.

  8. Click Add Group.

Edit a Group

  1. On the Query Pipelines page, click the query pipeline in which you want to edit a group, and then in the Action bar, click Edit Components.

  2. On the page that opens, select the Groups & Campaigns tab, and then, click the group you want to edit.

  3. In the Action bar, click Edit.

  4. On the Add a group of rules subpage that appears, in the Name input, enter a name for the group or campaign you’re creating.

  5. Under Condition, you can optionally select a query pipeline condition in the drop-down menu or create a new one.

  6. In the Activation section, select Activate your group for a specific period of time or Activate group manually depending on whether you want your group of rules to be time-based or permanent.

  7. Depending on your selection in the previous step, fill the available options (see Specific Period of Time Options and Manual Group Option).

  8. Under User note, optionally enter information that will help you manage the group in the future.

  9. Click Save Group.

Add Query Pipeline Rules to a Group

When a group is created, you can add existing result ranking query pipeline rules to your group.

  1. On the Query Pipelines page, click the query pipeline that contains the result ranking rules you want to associate with a group, and then click Edit components.

    The result ranking rules must be in the same query pipeline as the group you want to associate the rule with.

  2. On the page that opens, select the Result Ranking tab, and then click the rule that you want to associate with a group.

  3. In the Action bar, click Associate to a group.

  4. In the Associate Rules to a Group panel that opens, in the drop-down menu, select the group with which you want to associate the rule.

  5. Click Save.

Edit a Query Pipeline Rule Association

When a result ranking rule is associated with a group, you can edit its current association (typically to associate the rule with another group).

  1. On the Query Pipelines page, click the query pipeline that contains the result ranking rules for which you want to edit the group association, and then click Edit components.

  2. On the page that opens, select the Result Ranking tab, and then click the rule for which you want to edit the rule association.

  3. In the Action bar, click Associate to a group.

  4. In the Associate Rules to a Group panel that opens, in the drop-down menu, select the group with which you want to associate the rule.

  5. Click Save.

Delete a Query Pipeline Rule Association

When a result ranking rule is associated with a group, you can delete its current association.

  1. On the Query Pipelines page, click the query pipeline that contains the result ranking rules for which you want to delete the group association, and then click Edit components.

  2. On the page that opens, select the Result Ranking tab, and then click the rule for which you want to delete the rule association.

  3. In the Action bar, click Associate to a group.

  4. In the Associate Rules to a Group panel that opens, click Remove current association.

  5. Click Remove association.

Delete a Group

  1. On the Query Pipelines page, click the query pipeline for which you want to delete a group, and then in the Action bar, click Edit components.

  2. On the page that opens, select the Groups & Campaigns tab.

  3. In the Groups & Campaigns tab, click the group that you want to delete.

  4. In the Action bar, click Delete.

  5. Click Delete to confirm.

Reference

Specific Period of Time Options

If you selected the Activate your group for a specific period of time radio button when creating your group, you must either select a start date, an end date, or a time frame for which the group of rules will be active.

In the Select a time period drop-down menu:

  1. In the Select a start date input, select the date and time at which the group of rules should start applying to the related query pipeline.

  2. In the Select an end date input, optionally select the date and time at which the group of rules should stop applying to the related query pipeline.

  3. Click Apply.

All time zones default to UTC.

Manual Group Option

If you selected the Activate group’s rules radio button when creating your group, click Activate group’s rules to activate the group. You can deactivate the group at any time.

Required Privileges

By default, members of the Administrators and Relevance Managers built-in groups can view and edit elements of the Query Pipelines page.

The following table indicates the required privileges to view or edit elements of the Query Pipelines page (see Manage Privileges and Privilege Reference).

Action Service - Domain Required access level

View groups & campaigns

Search - Query pipelines

View

Edit groups & campaigns

Search - Query pipelines

Edit

Recommended Articles