Overview
In their interactions, consumers contact various assets, such as web pages, videos, and fact sheets. Some of these assets may carry information about a consumer's interests. This enricher persists all those asset interactions in a customer's profile and creates and maintains affinities that a given profile has for the specified assets and interests. It creates the following nodes and relationships:
Nodes
- Interest
- Interest Affinity
- Asset
- Asset Affinity
Relationships
- Asset-[INDICATES]->Interest
- Profile-[HAS]->Asset Affinity
- Profile-[HAS]->Interest Affinity
- Affinity-[TO]->Asset
- Affinity-[TO]->Interest
- Session-[ACCESSED]->Asset
To create these nodes and relationships, this enricher expects the triggering event payload to contain the following fields, all of which are optional:
Key in the event payload | Description |
---|---|
assetId | The unique identifier (string) of the consumed asset. |
interest | A comma-separated list of strings, each of which represents a topic of interest. |
name | The consumed asset's name (string). |
type | The format or type of the consumed asset (string), for example, a PDF, eBook, or website. |
accessType | The kind of consumption performed (string), for example, download, view, or stream. |
assetUrl | The URL of the consumed asset (string). |
firstName | The customer's first name (string). |
lastName | The customer's last name (string). |
addition | An option addition to the customer's address (string), for example, back building or c/o. |
street | The name of the street of the customer's address (string). |
zip | The ZIP code of the customer's address (string). |
city | The name of the city in the customer's address (string). |
country | The name of the country in the customer's address (string). |
phoneNumber | The phone number the customer supplied (string). |
phoneType | The type of phone number the customer supplied (string), for example business, mobile, or home. |
language | The language the customer supplied (string). |
company | The name of the company the customer supplied (string). |
email | The email address the customer supplied (string). |
Events
Triggered by Schema |
---|
context/commerce/FrontendEntered |
Node or Relation | properties |
---|---|
nodes/core/ContactDetails | |
nodes/core/Email | |
nodes/core/Email | value |
nodes/core/Language | |
nodes/core/Phone | |
nodes/core/Phone | number |
nodes/core/Phone | type |
nodes/core/Address | |
nodes/core/Address | firstName |
nodes/core/Address | lastName |
nodes/core/Address | addition |
nodes/core/Address | street |
nodes/core/Address | number |
nodes/core/Address | zip |
nodes/core/Address | city |
nodes/core/Address | country |
nodes/core/Affinity | |
nodes/core/Affinity | counter |
nodes/core/Affinity | lastUpdated |
nodes/core/Affinity | score |
nodes/core/Affinity | type |
nodes/core/Asset | |
nodes/core/Asset/name | |
nodes/core/Asset/type | |
nodes/core/Asset/url | |
nodes/core/Asset/extra | |
nodes/core/Interest | |
nodes/core/Interest/interestTopic | |
relations/commerce/Session/core/Asset/core/ACCESSED | |
relations/commerce/Session/core/Asset/core/ACCESSED | accessType |
relations/commerce/Session/core/Asset/core/ACCESSED | campaignId |
relations/commerce/Session/core/Asset/core/ACCESSED | interest |
relations/commerce/Session/core/Asset/core/ACCESSED | timestamp |
relations/commerce/Session/core/Asset/core/ACCESSED | url |
relations/commerce/Session/core/ContactDetails/core/CREATED | |
relations/core/Affinity/core/Asset/core/TO | |
relations/core/Affinity/core/Interest/core/TO | |
relations/core/Asset/core/Interest/core/INDICATES | |
relations/core/Profile/core/Affinity/core/HAS | |
relations/core/Profile/core/ContactDetails/core/HAS | |
relations/core/ContactDetails/core/Address/core/HAS | |
relations/core/ContactDetails/core/Email/core/HAS | |
relations/core/ContactDetails/core/Language/core/HAS | |
relations/core/ContactDetails/core/Phone/core/HAS |
Metamodel
The following interactive graphic displays the schemas that invoke this enricher and the schemas the enricher affects in the graph.
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.