Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Components and scripts

Bloomreach connector components (PassDataProvider, CustomerFlowElement) and scripts for contact resolution, event transformation and data mapping.

Extensibility customizes how the connector resolves contacts, maps fields, and formats events. This is mainly used by technical teams when default behavior does not match the data model. The complete reference of the three Bloomreach scripts, with their registration, their handlers and worked examples, is the Bloomreach scripts page of the Developers guides.

The Wallet Crew components

The Bloomreach integration is implemented as a connector plus optional components that read and write Bloomreach customer data as part of wallet flows. The connector credentials are described in Setup.

Diagram of The Wallet Crew components involved in the Bloomreach integration
Main building blocks: activities, events, and connector-side components.

PassDataProvider

PassDataProvider retrieves customer information from Bloomreach and exposes it to pass rendering. This makes Bloomreach a data source for fields displayed on Apple Wallet and Google Wallet passes, such as tier labels, points, expiry dates and personalization attributes.

  • Display Bloomreach attributes directly on the pass.

  • Refresh data when the pass is opened or explicitly updated.

  • Reduce duplicated storage across systems when Bloomreach is the CRM source of truth.

CustomerFlowElement

CustomerFlowElement can create or update a Bloomreach contact as part of a wallet flow. A common usage is linking an enrolment form submission to Bloomreach profile creation. In flows.yml, the step is named bloomreachCustomer.

  • Create a Bloomreach contact from enrolment forms.

  • Update Bloomreach attributes when a customer edits their profile.

  • Control matching rules (email, phone, member ID, ...) through the scripts below.

Rollout of scripts

Scripts are stored in the Bloomreach connector Advanced settings of the admin console, one slot per script: Contact finder configuration, Event interceptor configuration and Customer mapper configuration.

Open Advanced settings page

Start in staging and with the smallest possible change: Contact Finder first when email is not the primary identifier, Event Interceptor first when event naming or governance is required. Then validate both directions: an activity still works (Update pass, Notify, Apply benefit), and an event is still attributed to the expected Bloomreach contact with its final name and properties. Roll out to production in a change window when events trigger scenarios.

Extensibility entry points

Contact Finder

A pass is linked to external identifiers (email, phone, member ID, ...). When an event happens on a pass, the connector needs to attach it to a Bloomreach contact. Without a Contact Finder script, a pass with an email identifier is matched on the Bloomreach registered identifier only (its other identifiers are not sent); a pass without email sends its identifiers unchanged.

Contact Finder customizes how those identifiers are converted into Bloomreach contact identifiers.

Event Interceptor

Event Interceptor can transform eventName and properties before sending the event to Bloomreach. This is useful for naming conventions, filtering, and enrichment.

Returning null drops the event.

Customer Mapper

Customer Mapper customizes mapping between The Wallet Crew enrolment form fields and Bloomreach fields. This is used when data is sent to or retrieved from Bloomreach with components like PassDataProvider and CustomerFlowElement.

FAQ

Can Contact Finder call external services?

This is typically used when the Bloomreach contact identifier is not directly stored on the pass. Common patterns include resolving a memberId into an email, or mapping multiple identifiers to a single “registered” Bloomreach identifier.

Can an event be dropped before reaching Bloomreach?

This is useful for governance and noise reduction. Examples include filtering out scan events from test passes, removing sensitive properties, or ignoring high-volume events that are not actionable in Bloomreach.

When is Customer Mapper used?

It is not used by every activity. For example, sending a Notify message does not require Customer Mapper unless Bloomreach properties are also used as a data source for pass rendering.

Customer Mapper is the right place to align naming conventions, data formats, and optional fields. It also helps keep pass templates stable when Bloomreach field names change.

Does PassDataProvider overwrite pass fields, and when does Bloomreach data appear on the pass?

PassDataProvider exposes data to the pass template. What is displayed depends on the template field configuration. The data appears after a pass refresh, triggered by an explicit update or by the rules configured for the pass.

Last updated