Bloomreach
Bloomreach is an Omnichannel Marketing Platform that simplifies managing customer data, personalizing content, and automating marketing. By integrating TRIFFT with Bloomreach, businesses can elevate their loyalty programs by offering personalized rewards and experiences. This combination helps deliver more tailored customer interactions, driving deeper engagement and improving the overall customer journey.
Successful two-way integration of TRIFFT and Bloomreach requires 4 steps:
Sending events from TRIFFT to Bloomreach
- Creating API authorization in Bloomreach for TRIFFT
- Setting up Bloomreach webhooks in TRIFFT
Sending data from Bloomreach to TRIFFT
- Creating API authorization in TRIFFT for Bloomreach
- Setting up TRIFFT webhooks in Bloomreach
1. Creating API authorization in Bloomreach for TRIFFT
To set up integration between TRIFFT and Bloomreach, you’ll need to configure the API URL, API Key, API Secret, and Project Token.
Retrieving connection details from Bloomreach
You can locate the required connection information within the Project settings of the Bloomreach platform:
-
Log in to the correct Bloomreach project.
-
Click the gear icon in the top-right corner of the interface.
-
Click on Project settings from the pop-up menu.
-
In the main navigation bar on the left, go to Access management > API section.
-
The Project Token and API Base URL are first items at the top of this section.
Generating the API Secret and API Key
To create the API Secret and Key, follow these steps:
- Staying on the same API page, scroll down to the API groups section.
- Select the New group option from the dropdown menu.
- Set the access type to Private access.
- Name the group, then click Create group.
- the API Secret will be provided in a popup window
- The API Key will be shown in the Group keys section.
Setting GET and SET permissions
After creating the new API group, ensure you assign the GET and SET permissions for both Customer Properties and Events. These permissions are necessary to enable proper synchronization between TRIFFT and Bloomreach.
2. Setting up Bloomreach Webhooks in TRIFFT
Consult this guide for a general description of webhook setting in TRIFFT
Setting up API authorization
- In the TRIFFT Content Cockpit, navigate to the Settings section.
- From the left-hand menu, select Webhooks.
- Switch to the Authorizations tab at the top of the Webhooks page and click on Add new button in the top-right corner
- Fill out the fields as follows:
- Name: (top left): fill in a suitable name, e.g. “Bloomreach”
- Endpoint: Enter the API URL provided by Bloomreach.
- Type: Choose the authentication type, which should be BASIC for this integration.
- Username: Paste the API Key ID you obtained from the Bloomreach platform.
- Password: Enter the API Secret associated with the API Key.
- Once all details are entered, click the yellow Save button in the top-right corner to complete the authorization setup and finalize the connection between TRIFFT and Bloomreach.
Creating webhooks
- Switch back to Webhooks tab at the top of the Webhooks page and click on Add new button in the top-right corner
- Fill out the fields as follows:
- Name: (top left): fill in a name as you want the event to be named in Bloomreach (e.g. “mobile_app_opened”
- Event: Select a relevant Member-associated event from the drop-down
- Enable authorization: Set to Enable.
- Authorization: Select Bloomreach (or whichever name you used in the previous step).
- Endpoint URL: Append the URL filled in in the API authorisation section with /customer/events (alternatively, this can be added directly to the Endpoint field in API Authorisation).
- Endpoint type: Select POST.
- Log only errors: Set to Enable.
- Payload type: JSON.
- Payload: Create a JSON payload, leveraging available JINJA variables and as required by the Bloomreach project settings and intended event structure.
- Once all details are entered, click the yellow Save button in the top-right corner. The integration should now be complete and a chosen TRIFFT member event will now be forwarded in real-time to a Bloomreach project
Consult this guide for examples of the most common webhooks to share member events from TRIFFT to Bloomreach
3. Creating API authorization in TRIFFT for Bloomreach
Generate API key in TRIFFT
- Navigate to API Keys: Go to Settings > API Keys in the Content Cockpit.
- Add a New API Key: Click the Add new button.
- Configure the Key:
• Note: Enter Bloomreach.
• Permissions: Enable both Read Access and Write Access. - Save: Click Save to generate the key.
- Copy the generated API token: Click on the "copy" icon to the right from the asterisks (alternatively right-click and select "Show" to reveal the token.
Create HTTP Authentication in Bloomreach
- Log in to your Bloomreach project
- Navigate to Integrations: In the Bloomreach platform, go to Data & Assets > Integrations from the left-hand menu.
- Add a New Integration: Click the yellow Add new integration button in the top-right corner.
- Select Integration Type: Select HTTP Authentication Schemas
- Configure Integration Details:
- Endpoint: https://api.trifft.io/v1
- Authentication Type: Switch to the Custom headers tab.
- Key, enter "Authorization" or similar.
- Value: provide the authentication token generated in the TRIFFT API Keys setting
- Type: set to secret.
- Save the Integration: Once all necessary fields are filled, click Save to activate the integration.
4. Setting up TRIFFT Webhooks in Bloomreach
Using TRIFFT public REST API endpoints, create webhooks that can be triggered in Bloomreach scenarios.
- Open Integrations: In Bloomreach, go to Data & Assets > Integrations from the left-hand menu.
- Choose the Webhook Preset: From the available options, select Webhook preset to configure your custom webhook.
- Configure the Webhook: After selecting the preset, enter the necessary details such as the webhook URL, headers, and payload, depending on your integration needs.
- Save the Webhook: Click Save to activate the webhook for use in various Scenarios within Bloomreach.
Most TRIFFT APIs support bulk communication. Depending on a particular scenario, bulk API connection will be the only reliable approach (e.g. when adding thousands of members into a segment.
Example:
Adding individual members to a TRIFFT segment:
To add a member to a segment:
- Create a new Scenario in Bloomreach
- Set an appropriate trigger and scenario logic
- Click on Actions > Other and select the pre-built custom webhook
- Test and execute the scenario
Example: In this scenario, on event "Booking", a user is added to a TRIFFT segment "Booked"
Updated 25 days ago