cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Question about Factsheet Recommendation / CUAN_CONTACT_SRV

torsten-mittag
Explorer
0 Likes
1,341

Hello community,

in our SAP Commerce system we integrated different Recommendations like Tops Seller, Most Viewed, Often Viewed Together (on Product Details Page).

Now we want to integrate user specific recommendations based on the buying history and / or browsing favourites. In this case I read about the Factsheet Recommendations. I could enable them in the contact view (Commerce tab) with the instructions here (and solving a small problem).

Then I tried to integrate them on our shop sites. I used the same way like for the other recommendations (SAP Commerce standard). As params I used the customer ID and Origin and the scenario ID (SAP_IC_PROD_CROSS_SELL). But I don't get any results. I use customers / contacts which have recommendations on their contact view in the Marketing Cloud.

------- Edit / Update: -------

On the contact view page I notced the request for the Factsheet Recommendations does not use the normal recommendation endpoint (PROD_RECO_RUNTIME_SRV). Instead it's a batch request to CUAN_CONTACT_SRV, using GET ContactAndConsumers('INTERNAL_CUSTOMER_ID')/RecommendedProducts in a batch to get the recommended products.

Is there any way to use this (or a similar) endpoint from an external system? I can't find any communication scenario or any similar API endpoint.

------- original question continuing

Example payload:

{
  "UserId": "123456789",
  "UserType": "CUSTOM_ORIGIN",
  "ExternalTracking": true,
  "ScenarioHashes": [],
  "Scenarios": [
    {
      "ScenarioId": "SAP_IC_PROD_CROSS_SELL",
      "BasketObjects": [],
      "LeadingObjects": []
    }
  ],
  "ResultObjects": []
}

Post:

POST(201) 244ms 230Bout 858Bin - <Marketing Cloud URL>/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/RecommendationScenarios?saml2=disabled&sap-client=100

If I fill one or many product (IDs) into the LeadingObjects parameter, I get some recommended products. But not the recommended products as like on the customer view. I think these are just recommended products for the leading objects (often bought together with the leading objects).

So my question:

Is there any way to get the same recommendation as like on customer view into an external system (our SAP Commerce)?

In my linked question I described the problem with the product origin on the Recommendation Model Type. For my tests I tried both SAP Marketing Product and SAP Hybris Product. But nothing changed.

I would be grateful for any help.

Best Regards

Torsten

Accepted Solutions (1)

Accepted Solutions (1)

torsten-mittag
Explorer
0 Likes

The proposed solution of SAP support:

The Factsheet Recommendations are not for use in an external system.

Instead we can use chained product recommendations algorithms like "Recently Purchased Items" -> "Often Bought Together".

In this case the results of the first recommendation algorithm are used as calculation base for the second on.

Answers (2)

Answers (2)

0 Likes
Enda
Product and Topic Expert
Product and Topic Expert
0 Likes

Welcome and thanks for visiting SAP Community to get answers to your questions. Check out our tutorial to get started in SAP Community: https://developers.sap.com/tutorials/community-start.html By adding a picture to your profile you encourage readers to respond to your question. Learn more about your profile here: https://developers.sap.com/tutorials/community-profile.html

maik_bosch
Contributor
0 Likes

Hi t_mittag

have you tried to work with Chrome Developer tools network tab? As you should see here what kind of request is done to show the products for the customer.

More help maybe here:

https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/latest/en-US/1dbc9f56cf7c3e23e10000000a...

BR

Maik

torsten-mittag
Explorer
0 Likes

Hi maik_bosch,

thanks for your answer, but I'm not sure how this can help me: The recommendation requests are made by our backend (server side). And I added a request log in my question description. Looks for me like the example requests on your linked help page.

Also it works for other recommendation scenarios, but not for the factsheet recommendations.

Best regards

Torsten

maik_bosch
Contributor

You should with chrome developer tools learn to understand how the request to SAP Marketing Cloud Backend services is done at the moment when you open the contact view (commerce tab). You should see also calls to the same OData Service

torsten-mittag
Explorer
0 Likes

Hi maik_bosch,

thanks. I completely misunderstood you answer.

I noticed, the request does not use the recommendation endpoint (PROD_RECO_RUNTIME_SRV), it uses the CUAN_CONTACT_SRV.

There is a sub request (within a batch) to GET ContactAndConsumers('INTERNAL_CUSTOMER_ID')/RecommendedProducts

Do you know, if I can use this endpoint from external system. I can't find any communication scenario containing this inbound / outbound service.