Scripting

Scripting is central within NEON, and is used for conditional execution and personalisation.

There are three main categories of scripts:

  • RunIfExpressions. These are boolean expressions which control execution logic and weather triggers should be executed or not.
  • Value expressions. These are used in input fields and configurations to calculate a context sensitive value.
  • Template scripts. These are used within CMS and Message bodies, as well as in SQL queries and statement, and they allow text processing with conditions, loops etc, to create fully personalised content.

The scripts have access to all in-parameters and to the entire CDP and engagement model, but only for the one Member for which the API request is executed.

📘

Limitations

The Config API supports a sub-set of the functionality available to the Loyalty API. Since Config doesn't operate on Member level, it's not possible to reference Member specific information in Config scripts. This is explained in the following pages.

❗️

NOTE

Scripts are executed in run-time for each request and Member, and may therefore result in large amounts of dynamic SQL Queries, which may impact performance. The presence of scripts within Entities and CMS content sometimes also knocks out NEON's ability to cache content and results.

Therefore, only use scripting where and when needed.