1. Decision table inputs

Manage custom values

Custom values are reusable JavaScript-based inputs that you can use in decision tables for component personalization. Manage them by testing, publishing, duplicating, or deleting them.

Test a custom value

Test custom values to verify that they return the expected results before using them in decision tables. We recommend testing custom values before publishing them.

To test a custom value

  1. On the Custom Values page, open the custom value you want to test.

  2. Click Test.

  3. In the test dialog, choose the profile to use for testing:

    In the test dialog, choose a profile to use by loading a profile or generating it using AI.
    • Load profile - enter the visitor's client ID or profile ID.

      You can retrieve this from the JSON data in the profile details when using inspect mode. For more information, see Search for a profile.

    • Generate profile - use AI to generate a visitor profile using a natural language prompt.

  4. If you selected Generate profile:

    • Enter a prompt describing the profile you want to test against.

      Example: A female visitor from Copenhagen

    • Click Generate.

  5. The generated or loaded profile is displayed in the Context section. Click Run test to start testing.

  6. On the Response tab, review the returned test results.

Publish a custom value

Publish a custom value to make it available for use as an input in component personalization decision tables.

To publish a custom value:

  1. On the Custom Values page, open the draft custom value you want to publish.

  2. Click Publish.

  3. Click Confirm publish.

The custom value status changes to Published. You can now use it as an input in a decision table.

Duplicate a custom value

Duplicate a custom value to create a copy that you can modify without changing the original.

To duplicate a custom value:

  1. On the Custom Values page, open the custom data you want to duplicate.

  2. Click the vertical ellipsis icon > Duplicate custom data.

  3. Enter a name for the custom value.

  4. Click Create.

  5. Make any required changes in the code editor.

  6. Click Save.

Delete a custom value

Delete custom values that are no longer needed. This action is permanent and cannot be undone.

To delete a custom value:

  1. On the Custom Values page, open the custom data you want to delete.

  2. Click the vertical ellipsis icon > Delete custom value

  3. In the confirmation dialog, click Delete custom value.

If you have suggestions for improving this article, let us know!