Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Introduction to Sitecore Personalize
Managing accounts and system settings
Identifying guests
Introduction to experiments
Introduction to experiences
Decisioning
View dashboards
Developer Center
Connecting to an external system
Using client-side JavaScript
Using server-side JavaScript
AI in Personalize
Glossary
  • Sitecore Personalize
  • Introduction to experiments in Sitecore Personalize
  • Introduction to triggered experiments in Sitecore Personalize
  • Compose the API request for an experiment
  • Use dynamic decision model data in the API request for a triggered experiment

Use dynamic decision model data in the API request for a triggered experiment

If the triggered experiment is configured with a decision model, you must include offers or content from the decision model in the API request. 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 request:

  1. In the API editor, click the API body tab.

  2. On the Data tab, in the Data selector search box, enter a guest's email address or other identifier to search. This enables you to access data model attributes and paths.

    Tip

    If 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.

  3. Under Decision Model Response, click Copy icon next to the attribute or path and click Copy Path as FreeMarker.

  4. Paste into the API body tab.

  5. Click Save.

  6. Click to close the API editor.

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore