﻿#### 

There are 3 types of connections in **Sitecore CDP**:

1. ***Data System*** - can be used in Decision models as external source of data.
2. ***AI*** - can be used in Decision models as a logic block that performs any calculations on external service side.
3. ***Destination*** - can be used in Full stack experiences to send data to external services.

![Sitecore CDP - Data System](https://www.brimit.com/-/media/project/brimit/blog/2021/x3mxray/5/types_of_connections.jpg) 

In this article I`ll show how to create **Data System** connection to Content Hub and use it in decision modeling to provide access to external data system to get actual product information.

#### How to get access to Content Hub API?

First, you need to generate **token** that don`t have expiration and will be used for authorized request. Make **POST** request to ***{your\_content\_hub\_endpoint}/api/authentificate*** URI with **user\_name** and **password** parameters:

![Sitecore CDP - Data System](https://www.brimit.com/-/media/project/brimit/blog/2021/x3mxray/5/access_token.jpg?w=701&amp;hash=494AE4AD696E6BA225E212E46337CABC)

Copy **token** value, we will use it later while setup connection in **Sitecore CDP**. 

#### How to setup Content Hub connection in Sitecore CDP?

Login to your Sitecore CDP application account, **Connections -&gt; Add Connection-&gt; Data System**. Enter *Name* and *Description* of your connection,  choose *None* on Athentification tab and configure request parameters:

- **Method**: POST
- **URI**:  [https://your_CH_endpoint/api/entities/query?query=Definition.Name=='M.PCM.Product'&members=ProductName,ProductPrice](https://your_CH_endpoint/api/entities/query?query=Definition.Name=='M.PCM.Product'&amp;members=ProductName,ProductPrice)
- **Add header**: X-Auth-Token: ${token}

*${token}* variable will be subsctituted in Decision model with real token value. For **URI** endpoint set your correct *Content Hub* domain, *Definition.Name* of your products and list of fields *(members)* that you want to see in response:

![Sitecore CDP - Data System](https://www.brimit.com/-/media/project/brimit/blog/2021/x3mxray/5/test_connection.jpg)

Map input/output field names for Content Hub connection:

![Sitecore CDP - Data System](https://www.brimit.com/-/media/project/brimit/blog/2021/x3mxray/5/fields_mapping.jpg)

Click **Test Now** button, insert correct **token** and click **Run Test** button. If connection is OK, you will see response from **Content Hub**.

Once connection is ready, it is time to modeling. Create new Decision model, add ***External Systems -&gt; Data System*** block and choose your Content Hub connection:

![Sitecore CDP - Data System](https://www.brimit.com/-/media/project/brimit/blog/2021/x3mxray/5/add_knowledge.jpg)

Open Content Hub connection block and populate *token* input with real token value *(don`t forget to wrap token value with double quotes, you must do it for all string inputs in decision model blocks)*. Now you can use **Test Canvas** tool to be sure that data from Content Hub is available in your decision model: 

![Sitecore CDP - Data System](https://www.brimit.com/-/media/project/brimit/blog/2021/x3mxray/5/test_ch.jpg?h=733&amp;w=1196&amp;hash=4724DA18F7A1F68C9972880E2B4BD5D5)

Exact the same way you can create Data System connection to any other 3rd party data service and use it in your decisions.

Example of decision models where Content Hub connection can be used. Use ML service to recommend products to customer based on customer order history, and filter recommended products by actual products that are available right now in stock:

![Sitecore CDP - Data System](https://www.brimit.com/-/media/project/brimit/blog/2021/x3mxray/5/decision_model_example.jpg?w=1081&amp;hash=8346C9A264745B7F68FAE428CFC90D66) 

Here goes the table of contents for my Sitecore CDP blog series:

- [Introduction](https://www.brimit.com/blog/cdp-0-intruduction)
- [How to connect Sitecore CDP to website](https://www.brimit.com/blog/cdp-1-how-to-connect-to-website)
- [Debugging tools](https://www.brimit.com/blog/cdp-2-debugging-tools)
- [How to pass extended data to Sitecore CDP](https://www.brimit.com/blog/cdp-3-how-to-pass-extended-data-to-sitecore-cdp)
- How to use Data System connections (Decision model with Content Hub products)
- [How to use AI connections (Web experience with Azure Cognitive Services)](https://www.brimit.com/blog/cdp-4-how-to-use-ai-connections)
- [How to use Destination connections (Triggered experience webhook)](https://www.brimit.com/blog/cdp-6-how-to-use-destination-connections)
- How to use External service connections (Flows with External Service)
- Remarketing with Sitecore CDP and Facebook Ads

###### Author

[!\[sergey-200\](https://www.brimit.com/-/jssmedia/feature/blogs/authors/sergey-200.jpg?h=197&amp;iar=0&amp;w=200&amp;hash=0D636570F87F1C13C39E06EB19D9DF06)
Sergey Baranov
Sitecore MVP/ Senior Sitecore Developer](https://www.brimit.com/blog/author?authors=Sergey%20Baranov)

#### More on Sitecore

[!\[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides#How-toDXPE-commerce
##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects
Optimize and accelerate the development and deployment of complex multisite Sitecore projects.
Alexei Vershalovich on July 17, 2024](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

[!\[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-toDXP
##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story
How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.
Sergey Baranov on October 2, 2023](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

[!\[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-toDXPE-commerce
##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)
Discover how a headless CMS can benefit organizations that use Sitecore.
Daniil Raschupkin, Palina Trokhautsava on September 15, 2022](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)

![](https://bat.bing.net/action/0?ti=187017043&amp;tm=gtm002&amp;Ver=2&amp;mid=ecdd7a4f-217b-43c7-b0b1-56375f82f64d&amp;bo=2&amp;gtm_tag_source=1&amp;pi=0&amp;lg=en-US&amp;sw=800&amp;sh=600&amp;sc=24&amp;nwd=1&amp;tl=Dive%20into%20Sitecore%20CDP%20-%20How%20to%20use%20Data%20System%20connections%20(Decision%20model%20with%20Content%20Hub%20products)&amp;kw=sitecore%20CDP&amp;p=https%3A%2F%2Fwww.brimit.com%2Fblog%2Fcdp-5-how-to-use-data-system-connections&amp;r=&amp;lt=284&amp;evt=pageLoad&amp;sv=2&amp;asc=D&amp;cdb=AQAY&amp;rn=225331)