Data Machines
...
Models Supported by Data Machi...
Activity Models
Recommendations
5min
this model provides a recommendation of objects to the user based on their activity qualetics data streaming docid\ vku08owje1j2 quxcf6 k is required as this model is dependent on data for fine tuning the recommendation engine to your organization's data the data required for providing recommendations will be gathered from the user activity streamed as part of the events and the object docid\ l3qohcp0zpxzqtv7z4r6p data for each event please refer to the instructions in the object configuration to enable indexing on the entities that need to be included in the recommendation engine this model is best suited when a list of recommendations need to be provided to the user based on their activity over the past 7 days the results can be fine tuned based by limiting the recommendations to be gathered from specific actions performed by the user for example in an ecommerce application, the recommendations can be based on only those products that the user has purchased in the past and other actions such as add to cart, comparison, saving to wish list can be ignored if no action name is provided in the input parameters, all actions will be considered as candidates for recommendation additionally, the results can be further finetuned based on object features such as title, description, specifications etc so that only data present in those fields will be considered for performing a comparison search note data streaming docid\ vku08owje1j2 quxcf6 k integration is required for this model please complete the integration setup, verifying data connection docid 4iiuungko4l0wf64u ywk and ensure that the streaming is going live docid\ yuos evgre81ztel8fwdi before using this model model input parameters parameter name parameter type required userid text yes object type text yes feature name text yes action name text rest api input example var settings = { "url" "https //mlapi qualetics com/api/datamachine/init?id=656f14aa547a5b6b791c2244", "method" "post", "headers" { //add authorization headers here }, "data" json stringify({ "userid" "ecom 261", "object type" "product", "feature name" "product description" }), }; $ ajax(settings) done(function (response) { console log(response); }); model output result parameter name parameter type info recommendations json array contains an array of json objects with each object containing the id of the object, result based on the feature specified and the similarity score indicating the match with the user's previous activity actor string id of the actor rest api output example { "actor" "ecom 261", "original input" "ecom 261", "recommendations" \[ { "id" "80993e88a0224c71617e37dcd1e17745", "result" "libas,specifications of libas printed women's a line kurta general details pattern printed ideal for women's occasion party, casual kurta details sleeve half sleeve number of contents in sales package pack of 1 fabric chanderi type a line neck chinese fabric care dry clean only additional details style code 2438 red in the box kurta,libas printed women's a line kurta,true,libas printed women's a line kurta,libas printed women's a line kurta", "similarity" 94 42 }, { "id" "f3ff4d066fa5290970f46762caa5c73a", "result" "libas,specifications of libas printed women's anarkali kurta kurta details sleeve 3/4 sleeve number of contents in sales package pack of 1 fabric rayon type anarkali neck boat general details pattern printed occasion party, casual ideal for women's in the box kurta additional details style code 2422 beige fabric care dry clean only,libas printed women's anarkali kurta,true,libas printed women's anarkali kurta,libas printed women's anarkali kurta", "similarity" 92 41 }, { "id" "e154c04b8ad63c6c77fb7c58c2148b7b", "result" "love more key features of love more printed womens straight kurta black straightlove more printed womens straight kurta price $109 love more black printed straight crepe kurtaspecifications of love more printed womens straight kurta kurta details sleeve 3/4 sleeve number of contents in sales package pack of 1 fabric crepe type straight pockets no neck mandarian collar general details pattern printed occasion casual ideal for womens in the box kurta additional details style code lm015 fabric care machine washlove more printed womens straight kurtatruelove more printed womens straight kurtaclothing womens clothing ethnic wear kurtas kurtis kurtas love more kurtas love more printed womens straight kurta", "similarity" 88 07 }, { "id" "5614ccefd0ab9bee5cd28bf3d38fd12f", "result" "vishudh,key features of vishudh printed women's straight kurta black, grey straight,specifications of vishudh printed women's straight kurta kurta details sleeve sleeveless number of contents in sales package pack of 1 fabric 100% polyester type straight neck round neck general details pattern printed occasion festive ideal for women's in the box kurta additional details style code vnku004374 black grey fabric care gentle machine wash in lukewarm water, do not bleach,vishudh printed women's straight kurta,true,vishudh printed women's straight kurta,vishudh printed women's straight kurta", "similarity" 87 66 } ], "status" "completed" } standard output parameters every model execution output consists of the following standard output parameters input the input string required for the model to extract the categories original input this is the input provided to the first step in model which is retained across multiple steps in a data machine workflow final result the result of the model executed in the final step of the data machine workflow sessionid a unique session id that is generated for every execution of a data machine which can be used to retain results across multiple sessions status the result of the data machine execution if all of the steps in a sequence are successfully executed, a value of "completed" is provided if the execution is interrupted at any point, a value of "terminated" is provided with the reason for termination