Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NUTRINTG BB Customer / Profile Welcome

Source:

  • Shopify based systems

...

Functionality

Description

Admin panel configuration

Welcome

Send Welcome message for Customer from Salesforce Marketing Cloud

profileinstant-message-service-to-cdp

Profile

Create or edit profile of the customer in the CDP Epsilon

instantprofile-service-messageto-servicecdp

Middleware components:

Component

Functionalities

Admin Panel (blue star)

W, P - only configuration

e-shopify-customer (blue star)

W, P

p-shopify-customer (blue star)

W, P

p-instant-message-service (blue star)

W

p-sfmc-journey-service (blue star)

W

s-db-proxy (blue star)

W,P

cdd-s-db-proxy-docdb-cluster-prod (blue star)

W,P

p-profile-adapter (blue star)

P

e-cdp-proxy (blue star)

P

p-middleware-message-router (blue star)

W,P

Detail chart:

Expand
titleProfile Route

...

All configurations can be achieved by Admin Panel

Expand
title1. Setup routing node for delivery attempts
Expand
Code Block
    "routing": [
      {
        "sink": "middleware-profile-message-cdp-queue",
        "routerDeliveryCounter": 1
      },
      {
        "sink": "instant-message-service-queue",
        "routerDeliveryCounter": 2
      }
    ],

Expand
title2. Setup shopify node for shopify-profile-to-cdp integration

...

Code Block
"shopify": {
      "shopifyToken": "shpat_e850029e********4a87bf9",  // get from Shopify
      "applicationType": "CUSTOM",
      "shopifyCustomer": {
        "webhook": [ 
          "customers/create",
          "customers/update"
        ],
        "hmacKey": "0f19ab**********8b3c3e2876",  // get from Shopify
        "domain": "enfamil-canada.myshopify.com",  // get from Shopify
        "dataSourceCode": "CANENMCASHPF",  // needed for CDP Epsilon Profile
        "subscriptionId": "3229dca3-1c5f-4bfb-aac3-0554633081e5" // needed for CDP Epsilon Profile
      },
      "botProtection": false
    },

Expand
title3. Setup instantMessage node for instant-message-service integration

...

Code Block
    "instantMessage": {
      "APIEvent": {
        "account_id": "6425438",  // get from SFMC
        "id": "BB_Welcome_6425438", // get from SFMC
        "client_secret": "75Nf***********l92aR", // get from SFMC
        "client_id": "nmt95fxy2vy7v56bw2e4zk33" // get from SFMC
      },
      "entityType": "PROFILE"
    }

Expand
title4. Setup agreements node

...

Code Block
    "agreements": [
      {
        "ConsentAcceptedInd": true,
        "ConsentDesc": "Terms and conditions official rules for Enfamil Canada",
        "CustomName": "Terms and Condition Enfamil Canada",
        "MandatoryInd": true,
        "BusinessId": "LT-TC-CA-fr-Enfamil-rtfContestOfficiRules",
        "RevisionId": "5e6a0932263d2300011dc764"
      },
      {
        "ConsentAcceptedInd": true,
        "ConsentDesc": "Terms and Conditions fill the gaps for Enfamil Canada",
        "CustomName": "Terms and Condition Enfamil Canada",
        "MandatoryInd": true,
        "BusinessId": "LT-TC-CA-en-Enfamil-enfagrowFillTheGaps",
        "RevisionId": "5e6a08ce50b1830001e8c532"
      }
      ]

Expand
title5. Setup other nodes:

...

Code Block
    "owner": "Nutrition",
    "brandOrgCode": "MJNCAN",  // for CDP Epsilon Profile 
    "destination": "CDP",

SFMC Configuration

An API Event welcome template must be created on Salesforce Marketing Cloud to match middleware instant-message-service integration configuration

...

Middleware will send

Expand
titlepayload
Code Block
{
  "ContactKey": 1000086060020,
  "EventDefinitionKey": "BB_Welcome_6425438",
  "Data": {
    "EmailAddress": "1990amanpreetkaur@gmail.com",
    "sourceAccountNumber": "MJNCAN_6384186884132",
    "accountSource": "CAN_SHOPIFY_CUST",
    "TierCode": "MJNCANTIER1",
    "FirstName": "Amanpreet",
    "MiddleName": null,
    "LastName": "kaur",
    "Gender": null,
    "Channel_Source": "EM",
    "AddressLine1": null,
    "AddressLine2": null,
    "AddressLine3": null,
    "City": null,
    "CountryCode": null,
    "StateCode": null,
    "PostalCode": null,
    "PhoneNumber": null,
    "PhoneCountryCode": null,
    "Enroll_Channel_Code": null,
    "Source_Code": null,
    "Brand": "MJNCAN",
    "Customer_Note": null,
    "Customer_Tags": "DEP_EN",
    "sourceAccountNumber": "MJNCAN_6384186884132",
    "CompanyName": null,
    "CreationTime": "2023-10-19T09:52:42",
    "Email_Marketing_Accepted": true,
    "SMS_Marketing_Accepted": false,
    "Post_Marketing_Accepted": false,
    "Terms_Condition": true,
    "Privacy_Policy": null,
    "INDIVIDUAL_ID": "1000086060020",
    "PREFERRED_LANGUAGE_CODE": ""
  }
}