I know that decisioning is a rule based engine for personalisation, but how can this actually be used in an experiment or experience?
1 Answer
A decision model can be used with any Full Stack Interactive, Full Stack Triggered and Web Experiences/Experiments
.
Web Experiences/Experiments
In the Build Section add your decision model in the Decisioning Section
In your variant open Advanced Edit to edit the
HTML
,JavaScript
andCSS
In the
API
tab, add the data inJSON
that you want to use in your Web Experience/Web Experiment. To add data from your decision model into your payload either use:- Snippets, for details see: https://doc.sitecore.com/cdp/en/users/sitecore-customer-data-platform/use-freemarker-snippets-in-an-api-response-for-a-web-experiment.html
- Data Selector, For details see: https://doc.sitecore.com/cdp/en/users/sitecore-customer-data-platform/use-dynamic-decision-model-data-in-the-api-response.html
In the JavaScript or HTML tab, use the data you have returned in the API tab in the design of your Web Experience/Experiment. For details see: https://doc.sitecore.com/cdp/en/users/sitecore-customer-data-platform/using-custom-code-in-a-web-experiment-variant.html
Note: When updating the API
tab, the output must be valid JSON
.
Full Stack Experiences/Experiments
- In the Build Section add your decision model in the Decisioning Section
- Open your
personalisation
variant, add the data inJSON
that you want to use in yourWeb Experience/Web Experiment
. To add data from your decision model into your payload either use :- Snippets, for details see: https://doc.sitecore.com/cdp/en/users/sitecore-customer-data-platform/use-freemarker-snippets-in-an-api-response-for-an-interactive-experiment.html
- Data Selector, For details see: https://doc.sitecore.com/cdp/en/users/sitecore-customer-data-platform/use-dynamic-decision-model-data-in-the-api-response-for-an-interactive-experiment-648890.html
Note: When updating the API
tab, the output must be valid JSON
.