O'Reilly logo

Learning Salesforce Einstein by Mohith Shrivastava

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The ProductViewCapture component

The REST API JSON payload for a View event is as follows, and we will be calling an Event Server Heroku endpoint. The Heroku endpoint format will be https://<appname>.herokuapp.com/event.json?accessKey=$accessKey, where $accessKey is obtained when the application is created via the PredictionIO Event Server app:

      {        "event": "view",        "entityType": "user",        "entityId": "",        "targetEntityType": "item",        "targetEntityId": ""      }

Here, entityId is the userId and targetEntityId is the productId. We know that, for initial training, we have used entityId as u1, u2, u3, and so on, and, similarly, item IDs are i1,i2,i3, and so on. We can keep the Salesforce IDs and train the model with the Salesforce user IDs or Product ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required