Skip to content

Scopes

Use Scopes to adapt one quiz to different storefront pages. A product mapping limits which products are eligible. Assigning a scope to a question or group controls which questions are eligible. You can use either or both.

For example, map an E-bikes scope to products with an electric bike type and assign the motor questions to that scope. Include the scope on the e-bike category page. With no scope filters, scope assignments alone do not hide questions. A question with no scope on it or its group remains eligible under a scope filter, subject to its other settings such as dependencies.

The E-bikes scope limits matches to products whose Bike type attribute is Electric.

Scopes can be passed to an inline embed or a JavaScript trigger. Choose one of those placements if the quiz needs a different range on different pages.

  1. In the Admin Portal, go to Setup › Scopes, click Add Scope and give the scope a name and a color.

  2. To narrow the product range, add a product mapping with an attribute, condition and values. Mapping conditions

  3. In the Conversation tab, assign the scope to questions or groups through the scope dropdown. A scope on a group is inherited by every question in it; a question or group carries only one scope of its own, inherited scopes not counted.

In Preview, select each scope combination you use on the storefront. Check that the intended questions appear and that each path returns matching products.

Copy the scope IDs from Setup › Scopes. Use a comma-separated list for inline attributes or an array of IDs for JavaScript. You can pass both include and exclude lists.

The E-bikes scope shows its integration ID, ebikes, next to the copy control.
Inline embed
<div
data-neocom-id="YOUR_QUIZ_ID"
data-neocom-include-scopes="scope1,scope2"
data-neocom-exclude-scopes="scope3,scope4"
></div>

The Shop Agent has its own Scopes, configured per agent rather than per page: Shop Agent › Scopes. The global object: neocom.js reference.