Omnichannel Experiences
Omnichannel Personalized Search Action Request
here is an example of an engine api request for an omnichannel personalized search action see calling the personalized search api for full details about personalized search requests example omnichannel personalized search action request { "channel" "a 76ca7dd3/p/example com", "events" \[ { "eventtype" "monetate\ decision\ decisionrequest", "requestid" "11111" }, { "eventtype" "monetate\ context\ ipaddress", "ipaddress" "79 173 135 170" }, { "eventtype" "monetate\ context\ useragent", "useragent" "mozilla/5 0 (macintosh; u; intel mac os x; en) applewebkit/522 11 (khtml, like gecko) safari/3 0 2" }, { "eventtype" "monetate\ context\ pageview", "url" "https //www example com/" } ] } the response to this request appears much like the following example example omnichannel personalized search action response { "meta" { "code" 200, "monetateid" "5 1580506437 1738689374564" }, "data" { "responses" \[ { "requestid" "2e7c7073 42c6 4523 a1f4 512bf4d7b6c4", "actions" \[ { "actionevents" \[ "op click", "op impression" ], "actionid" 5285641, "searchtoken" "6 18 ejxdkmtugzaqrf9l1lyebypdtu2qkyiippuqqszmagkyypsehpnfc7rsqu5g58zjau7ahalamvufjpsj0sj0cedqqelhavuhjmauqdnrocufmo96urjeq1lhbb3e4tqdbdryjcrspfsjyr1ekw0ozi4vcpqmzu8ojibkcygtkn7qzbntbtajb6pp4mgv48exr5uhi3 wwqqlxwfe gg2zntzo qx7sfkwdz6toz6bfdfwiwdpofdcnwyb5vxj3223auv f3qcer6fbnwxldat6 y46nkuc1bv8lo3p0zn0dbjrm4w\ vokf2fcxdo41izaz93tqd4hij1 yxeqvyzgnbgpwrmg", "actiontype" "monetate\ action\ sitesearchapiaction" } ] } ] } } recommendation strategies and context events the configuration of the recommendation strategy selected in the personalized search action may require you to send certain context events in the request if the selected recommendation strategy is configured with the viewed and also viewed or other collaborative recommendation algorithms , then the option selected from base recommendation on determines what context events you must include in the request the following table contains guidance for which context events you must include in the request when the recommendation strategy uses a collaborative recommendation algorithm, based on the option selected from base recommendation on in the strategy configuration true false 251false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type see user identity persistence in requests for more information about passing unique identifiers for customers in engine api requests example request here is an example of an engine api request for an omnichannel personalized search action that's configured with a recommendation strategy powered by the purchased and also purchased recommendation algorithm and with item(s) viewed on current page selected for base recommendation on example omnichannel personalized search action request { "channel" "a 12345/p/example com", "events" \[ { "eventtype" "monetate\ decision\ decisionrequest", "requestid" "12345" }, { "eventtype" "monetate\ context\ productdetailview", "products" \[ { "productid" "{pid}", "sku" "{sku}" } ] } ] }