Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Recombee AI Destination


(information)

Additional versions of this destination are available

This page is about the Recombee AI Destination. See below for information about other versions of the Recombee destination:

  • Recombee (Actions)
(warning)

Warning

This destination is no longer available in the Segment catalog, but will remain active in workspaces where it has already been configured. Recombee has developed an updated destination built on the Actions framework. See Recombee Destination for more information.

Recombee(link takes you to an external page) is a Recommender as a Service that can use your data to provide the most accurate recommendations of content or products for your users. Use this Segment destination to send your interaction data (views, purchases, plays, and so on) to Recombee.

This destination is maintained by Recombee. For any issues with the destination, contact the Recombee Support team.

(information)

Info

The Recombee Destination is currently in beta, which means that the Recombee team is still actively developing the destination. If you have any feedback to help improve the Recombee Destination and its documentation, contact the Recombee support team.

Use this Segment destination to send your interaction data, like views, purchases, or plays, to Recombee.


Getting Started

getting-started page anchor
  1. If you don't already have one, set up a Recombee account(link takes you to an external page).
  2. From the Destinations catalog page in the Segment App, click Add Destination.
  3. Search for "Recombee" in the Destinations Catalog, and select the Recombee destination.
  4. Choose which Source should send data to the Recombee destination.
  5. Go to the Recombee Admin UI(link takes you to an external page):
    • Choose the Recombee Database where you want to send the interactions.
    • Click Settings in the menu on the left.
    • In the Settings section find the Database ID and the Private Token of the Database.
  6. Back in the Segment web app, go to the Recombee destination settings.
    • Paste the Database ID you just copied in the Database ID field.
    • Paste the Private Token you just copied in the API Key field.

Once you send the data from Segment to the Recombee destination you can:

  • Go to the KPI console of the Recombee Admin UI(link takes you to an external page) to see the numbers of the ingested interactions (updated in Real-time)
  • Click the ID of an Item, User in Items, or section in the Users catalog to see a specific ingested interaction.

If you aren't familiar with the Segment Spec, take a look at the Page method documentation to learn about what it does. An example call would look like:

analytics.page()

Segment sends Page calls to Recombee as a Detail View(link takes you to an external page).


If you aren't familiar with the Segment Spec, take a look at the Track method documentation to learn about what it does. An example call would look like:

1
analytics.track('Video Content Playing', {
2
session_id: '12345',
3
asset_id: '0129370',
4
position: 20,
5
total_length: 360,
6
recomm_id: 'ce52ada4-e4d9-4885-943c-407db2dee837'
7
});

Sending semantic spec events to Recombee

sending-semantic-spec-events-to-recombee page anchor

Recombee Destination can process several Semantic Events:

Ecommerce:

Video:

If you want to send interactions from other events, set them to Track Events Mapping in Settings.


If you aren't familiar with the Segment Spec, take a look at the Screen method documentation to learn about what it does. An example call would look like:

[[SEGAnalytics sharedAnalytics] screen:@"Home"];

Segment sends Screen calls to Recombee as a Detail View(link takes you to an external page).


If you aren't familiar with the Segment Spec, take a look at the Alias method documentation to learn about what it does. An example call would look like:

analytics.alias("507f191e81");

Segment sends Alias calls to Recombee as Merge Users(link takes you to an external page) call.


Segment sends a Delete User(link takes you to an external page) call to Recombee on deleting a user. All the data associated with the user (including interactions) are removed from Recombee.


Reporting successful recommendations

reporting-successful-recommendations page anchor

You can tell Recombee that a specific interaction is based on a successful recommendation (meaning that the recommendations were presented to a user, and the user clicked one of the items), by setting the ID of the successful recommendation request on the recomm_id property of a Segment event. You can read more about this setting in Recombee's Reported Metrics documentations(link takes you to an external page)

Recombee recognizes the recomm_id property in all the events that send interactions.

In case of Order Completed, set the recomm_id to the object of the product (products.$.recomm_id) that was ordered because of a successful recommendation.

Sending the recomm_id gives you precise numbers about successful recommendations in the KPI section of the Recombee Admin UI(link takes you to an external page). This explicit feedback also helps you optimize your recommendation models.


Recombee destination settings

recombee-destination-settings page anchor

Database ID (Required)

database-id-required page anchor

ID of the Recombee Database into which you will send the interactions.

The private token for the database.

Item ID Property Name (Optional)

item-id-property-name-optional page anchor

For each Recombee interaction(link takes you to an external page), you must provide a userId and an itemId.

You can set the Item ID Property Name to specify the Segment event property to use as the itemId.

If you don't provide an Item ID Property Name:

Track Events Mapping (Optional)

track-events-mapping-optional page anchor

Recombee can automatically handle different Ecommerce Events and Video Events in the Track call type (see the Track section).

If you use some custom Events, you can set which Recombee interaction to send for each one.

The value of the mapping is the name of your event, and the key can be one of:

Specify the URI of the Recombee API to use. Omit the protocol. For example, rapi.recombee.com.

Only use this setting if you call the Recombee cluster based in a specific region, or if you were assigned a custom URI by the Recombee Support team. Otherwise, keep this setting blank.