The Bloomreach Engagement commercetools connector was created by Orium, and provides the following features:
- Ability to initially load all products and customers from commercetools to Bloomreach Engagement when the connector is installed
- Ability to automatically synchronize all products and customers from commercetools to Bloomreach Engagement through a scheduled task
- Ability to capture customer order events from commercetools to Bloomreach Engagement
This connector syncs commercetools data with Bloomreach Engagement.
Upon deployment of this connector, your commercetools products and customers will be imported into Bloomreach Engagement.
Once per day your commercetools products and customers will be synchronized with Bloomreach Engagement.
- commercetools Account
- commercetools API keys (“Admin client”)
- Bloomreach Engagement Account
- Bloomreach Engagement API keys (Private API access with full permissions)
In order to install the connector in your commercetools project, you'll need to deploy it. Refer to the commercetools connect deployment documentation.
Setup the required environment variables when you create the deployment:
CTP_CLIENT_ID
CTP_CLIENT_SECRET
CTP_PROJECT_KEY
CTP_SCOPE
CTP_REGION
BLOOMREACH_ENGAGEMENT_API_KEY
BLOOMREACH_ENGAGEMENT_API_SECRET
BLOOMREACH_ENGAGEMENT_PROJECT_TOKEN
BLOOMREACH_ENGAGEMENT_CATALOG_LOCALE
BASIC_AUTH_SECRET
Once the connector is deployed, it should trigger the postDeploy
script.
The postDeploy
script will set up the Import cron jobs. One for customers, other for products and another for variants. Cron jobs will run every day at 00:00 UTC.
On the other hand, the connector will create a subscription to listen to “Order Created” messages. Each time an order is created in commercetools, it will be imported as a customer event in Bloomreach.
In order to uninstall the connector, you’ll need to send the appropriate HTTP request and delete it.
This will trigger the preUndeploy
script which will delete the Import cron jobs and messages subscriptions described on the “Installing the connector” section.
The connector is designed to deliver single CSV files will result in extended HTTP request times, potentially exceeding predefined limits. We anticipate that it will handle a modest number of customers and products, likely no more than a few thousand, with an upper limit of approximately 10,000 records. The exact capacity may fluctuate due to various variables. Feel free to get in touch with us if this is a limitation for your project.
- We pull and expose the commercetools product data in
service/src/services/commercetools-catalog-ingestion.ts
and then we map the exposed data into Bloomreach inservice/src/services/bloomreach-engagement-product-import.ts
- We pull and expose the commercetools product data in
service/src/services/commercetools-catalog-variants-ingestion.ts
and then we map the exposed data into Bloomreach inservice/src/services/bloomreach-engagement-product-import.ts
- We pull and expose the commercetools customer data in
service/src/services/commercetools-customer-ingestion.ts
and then we map the exposed data into Bloomreach inservice/src/services/bloomreach-engagement-customer-import.ts
- We map the commercetools order data into Bloomreach in
event/src/controllers/event.controller.ts
.
- Bloomreach will consume customers and products data from an endpoint exposed by the connector. This endpoint is secured using a basic http authentication, where the username is the
CTP_PROJECT_KEY
and the password theBASIC_AUTH_SECRET
.
- By default, commercetools has built-in i18n support. In order to consume the catalog data, we must specify the desired
LocalizedString
.
- See the services under
service/src/services
to modify settings like frequency, time of day, and other settings. See the Useful Links below for links to the Bloomreach API docs on how to configure the import jobs.
- https://documentation.bloomreach.com/engagement/reference/about
- https://documentation.bloomreach.com/engagement/docs/data-import
- https://documentation.bloomreach.com/engagement/reference/create-import
- https://documentation.bloomreach.com/engagement/docs/help-top-import-issues-and-solutions
- https://documentation.bloomreach.com/engagement/docs/custom-events
- https://documentation.bloomreach.com/engagement/reference/add-event-2