Conscia DX Graph
The DX Graph Components allow you to connect to any DX Graph instance from DX Engine and retrieve Collection data.
Component | Requires Connector | Allows for Personalization |
---|---|---|
Static Record List | Yes | Yes |
Dynamic Record List | Yes | Yes |
Connector Configuration
Parameter Name | Parameter Property | Description |
---|---|---|
Conscia Endpoint | endpoint | One of: Production, Staging, Development |
API Key | apiKey | Your DX Graph API token |
Customer Code | customerCode | Your customer code |
To create a DX Engine Connection to DX Graph in the DX Engine UI:
- Navigate to the Connections page (Manage Flows --> Connections).
- Click Add Connection. The Create Connection page appears.
- For Connection Code, enter a unique idenfier for the Connection, such as
dxgraph-connection
. - For Connection Name, enter a friendly name for the Connection, such as "DX Graph Connection".
- Optionally, enter a Connection Description.
- For Connector, select DX Graph.
- For Conscia Endpoint, select the appropriate Conscia API endpoint (ie, Production, Staging, or Development).
- For API Key, select Literal, and enter the Conscia DX Graph API token.
- For Customer Code, enter the Conscia customer identifier for the DX Graph instance.
- Click Submit.
Especially if multiple DX Graph Connections use the same API Key, you may want to store that value as a Secret.
Static Record List
A DX Graph Static Record List Component lets Conscia users select one or more Records in a DX Graph Collection.
Component Configuration
Parameter Name | Parameter Property | Description |
---|---|---|
Connection Code | connectionCode | The Connection Code of a configured Conscia DX Graph Connector |
Collection ID | collectionId | The Collection to access |
Suggestion Display Template | template | A handlebars template for rendering the suggestion results |
Title | title | Suggestion List Title |
Search Fields | searchFields | Array of fields to search |
To create a DX Graph Static Record List Component in the DX Engine UI:
- In the top navigation, Navigate to the Experience Components page (Manage Flows --> Components).
- Click Add Component. The Create Component wizard appears.
- For Component Code, enter a unique identifier for the Component.
- For Component Name, enter a friendly name for the Component.
- For Component Type, select DX Graph - Static Record List.
- Click Submit.
To configure the DX Graph Static Record List Component, in the Manage Components page:
- Next to the DX Graph Static Record List Component, click the Edit button. The Edit Component page appears.
- For Connection, select the appropriate DX Graph Connection.
- For Collection ID, select the DX Graph Collection that contains the records to appear in this Component.
- For Suggestion Display Template, enter a Handlebars template containing the identifiers of Fields in the DX Graph Collection, which the DX Engine UI will display to Conscia users. For example, to show users the
article_id
andtitle
fields of the DX Graph Record:
{{article_id}} ({{title}})
- For Search Fields, select fields from the Category that the DX Engine UI will search when users type values to locate Records from DX Graph.
Records only appear after the Conscia user enters a value for which search results are available.
Component Experience Rule Configuration
To personalize experiences by presenting different records to different visitors, apply Experience Rules to DX Graph Static Record List Components.
Parameter Name | Parameter Property | Description |
---|---|---|
Records to show | recordIds | An array of record identifiers to fetch |
Dynamic Record List
A DX Graph Dynamic Record List Component lets Conscia users specify criteria to determine Records in a DX Graph collection.
Component Configuration
Parameter Name | Parameter Property | Description |
---|---|---|
Connection Code | connectionCode | The Connection Code of a configured Conscia DX Graph Connector |
Collection ID | collectionId | The Collection to access |
Maximum number of records to return | limit |
To create a DX Graph Dynamic Record List Component in the DX Engine UI:
- In the top navigation, Navigate to the Experience Components page (Manage Flows --> Components).
- Click Add Component. The Create Component page appears.
- For Component Code, enter a unique identifier for the Component.
- For Component Name, enter a friendly name for the Component.
- For Component Type, select DX Graph - Dynamic Record List.
- Click Submit.
To configure athe DX Graph Dyamic Record List Component, in the Manage Components page:
- Next to the DX Graph Dynamic Record List Component, click the Edit button. The Edit Component page appears.
- For Connection, select the appropriate DX Graph Connection.
- For Collection ID, select the DX Graph Collection that contains the records to appear in this Component.
- For Maximum number of records to return, enter a limit to the number of Records that the DX Graph Dynamic Record List Component will return.
- Optionally, for Query Filter, specify a DX Graph Record filter. For example, the following JS Expression will cause the response of this Component to include only Records from the DX Graph Collection that contain the value
eat
in the field namedtitle
:
_.assign({},{
"$like": {
"field": "title",
"value": "%eat%"
}
})
- Optionally, for Record Layout Configuration, configure how this Component will format Records from DX Graph. For example, the following JS Expression will cause the response of this Component to include only the
title
field from the Records in the DX Graph Collection.
_.assign({},{
"fieldsToReturn": ["title"]
})
- Click Submit.
Component Experience Rule Configuration
To personalize experiences by presenting different records to different visitors, apply Experience Rules to DX Graph Dynamic Record List Components.
Parameter Name | Parameter Property | Description |
---|---|---|
Query Filter | query | |
Sort results | sort | Array of objects [{fieldName, direction}] - direction must be asc or desc |