Engage.personalize(personalizationData[, timeout])
The personalize() function runs an interactive full stack experience or an interactive full stack experiment that's currently live in Sitecore Personalize. You must call this function with the friendlyId of the live experience or experiment that you want to run.
Call this function to run a live Interactive full stack experience or a live Interactive full stack experiment only.
Web experiences and web experiments are run by the Engage SDK automatically.
You can find the friendlyId in Sitecore Personalize, in a live interactive full stack experience or experiment, by clicking Summary. The friendlyId is in Details > Friendly ID.
Here's an example of how to run an experience or experiment and log it to the console.
import { engage } from "./engage.js";
// ...
const handlePersonalization = async () => {
const response = await engage.personalize(personalizationData);
console.log(response);
};