Use dynamic decision model data in the API response for an interactive experiment
If an interactive experiment is configured with a decision model, you must include offers or content from the decision model in the API response. You can use the Data tab to copy an attribute or path from the decision model response and paste it in as FreeMarker into the API editor. For example, copy Offer name
and Offer URL
and paste them into the API editor window.
To include dynamic decision model data in the API response:
-
In the API editor, from the API tab, click the Data tab.
-
To insert dynamic data into HTML, enter a guest's email address to search in the Data Selector search box. This enables you to access data model attributes and paths.
TipIf there is a guest whose data you often use when configuring or testing code, just click the star icon to bookmark the guest so you no longer have to search for them.
-
Under Decision Model Response, click next to the attribute or path and click Copy Path as FreeMarker.
-
Paste into the API tab.
-
Click Save.
-
Click to close the API editor.