Follow these steps to build an Omnichannel experience with a Dynamic Bundles action.
- Create an Omnichannel experience, and then configure the WHY and WHO settings.
- Click WHAT and then click ADD ACTION.
- Click Recommendation.
- Select the Dynamic Bundles action template that you want to use.
- Select the bundle that you want to use. Scroll through the list of bundles in the selector, or use the search bar to find one by name.
- Input the minimum number of products that must be available to trigger the action.
- Input the maximum number of products that you want to appear in the slider.
- Input into Component a CSS selector, component name, component ID, or other string identifying where the slider should appear.
- Optionally, add one or more action conditions. Click ADD CONDITION and then navigate the categories and options to set any conditions that must be met for the action to fire. See Action Conditions for more information.
- Click CREATE.
Finish building the experience by configuring the WHEN settings. You must also configure the request to the Engine API. See Configuring the Engine API Request for more information.
Configuring the Engine API Request
Here is an example of an Engine API request for a Dynamic Bundles action.
{
"channel": "a-3e41bf76/p/monetate.mybigcommerce.com",
"events": [
{
"eventType": "monetate:decision:DecisionRequest",
"requestId": "sample-unique-request-id-ABC-123",
"includeReporting": true
},
{
"eventType": "monetate:context:ProductDetailView",
"products": [
{
"productId": "context-item-id"
}
]
}
]
}
The response to this request appears much like the following sample.
{
"meta": {
"code": 200,
"monetateId": "5.1982474515.1616616018101"
},
"data": {
"responses": [
{
"requestId": "sample-unique-request-id-ABC-123",
"actions": [
{
"actionType": "monetate:action:OmnichannelRecommendation",
"actionId": 4185123,
"items": [
"productId": "pid1",
"productId": "pid2",
"productId": "pid3",
"productId": "pid4"
],
"actionEvents": [
"op_click",
"op_impression"
],
"component": "Foo"
},
]
}
]
}
}