Following with mi last question, I tried to configure an activity based on the custom mbox like this:

and then, executing the code you provided on console:

Even when the preview on console is showing the activity and its code, no code is being executed on the page, am I doing something wrong?


Thank you for your help
Yes, in the code I provided the if statement is empty:
if (result.propositions) {
// Manually render propositions and send "display" event
}
So if you change it to the following then you'd see the response from Target output to console
if (result.propositions) {
console.log(result.propositions)
}
The idea with this custom mbox approach is that you write code that handles everything in the result.propositions response i.e., parse through the response and render the offer content in the appropriate location. If you don't want to do any of this manual work then you could use the default '__view__' mbox and set up your activity via the Visual Editor Composer; the Web SDK would then take care of automatically rendering the response from Target