Building the journey concept_owm_kdy_w2b

The business user can now build the journey. Our journey will include the following activities:

  • two Event activities: “LobbyBeacon” and “RestaurantBeacon”
  • two Condition activities
  • three Push activities and one Email activity (using Adobe Campaign Standard)
  • a Wait activity
  • four End activities
NOTE
The Push and Email activities are only available in the palette if you have Adobe Campaign Standard.

For additional information on how to build a journey, refer to this page.

First steps section_ntb_ws1_ffb

  1. In the top menu, click the Home tab and Create to create a new journey.

  2. Edit the journey’s properties in the configuration pane displayed on the right side. Add a name and set it to last for one month, from the 1st to the 31st of December.

  3. Start designing your journey by drag and dropping the “LobbyBeacon” event from the palette to the canvas. You can also double-click on the event in the palette to add it to the canvas.

  4. Let’s now add a condition to check that the person has not been contacted in the last 24 hours and check if he is a loyalty member. Drag and drop a condition activity into your journey.

  5. Choose the Data Source Condition type and click in the Expression field. You can also define a condition label that will appear on the arrow, in the canvas. In our example, we replace “Condition 1” with “Loyalty member”.

  6. Click Advanced mode and define the following condition based on the “timestamp” and “directMarketing.sends.value” fields coming from the Adobe Experience Platform data source. The syntax of the expression is:

    code language-none
    count(#{ExperiencePlatformDataSource.MarltonExperience.experienceevent.all(
        currentDataPackField.directMarketing.sends.value > 0 and
        currentDataPackField.timestamp > nowWithDelta(-1, "days")).timestamp}) == 0
    and
        #{ExperiencePlatformDataSource.MarltonProfiles.Profile._customer.marlton.loyaltyMember}
    

  7. Click the Add a path button and create a second path for customers who have not been contacted in the last 24 hours and are not a loyalty member. Name the path “Not loyalty member”. The syntax of the expression is:

    code language-none
    count(#{ExperiencePlatformDataSource.MarltonExperience.experienceevent.all(
        currentDataPackField.directMarketing.sends.value > 0 and
        currentDataPackField.timestamp > nowWithDelta(-1, "days").timestamp}) == 0
    and not
        #{ExperiencePlatformDataSource.MarltonProfiles.Profile._customer.marlton.loyaltyMember}
    
    note note
    NOTE
    In the second part of expression, “Profile” is optional.
  8. We need to select a namespace. A namespace is preselected based on schema properties. You can keep the one preselected. For more information on namespaces, see this page.

In our use case, we only want to react to those two conditions, so we don’t check the box Show path for other cases than the one(s) above.

Two paths are created after your condition:

  • Customers who have not been contacted in the last 24 hours and are loyalty members.
  • Customers who have not been contacted in the last 24 hours and are not loyalty members.

First path: the customer is a loyalty member section_otb_ws1_ffb

  1. In the first path, let’s add a condition to check if he has a reservation. Drag and drop a condition activity into your journey.

  2. Choose the Data Source Condition type, and define the condition based on the reservation status information retrieved from the reservation system:

    code language-none
    #{MarltonReservation.MarltonFieldGroup.reservation} == true
    

  3. When you select a field from an external data source, the right part of the screen displays the list of parameters that were defined when configuring the external data source (see this page). Click on the parameter name and define the value of the reservation system key, the Experience Cloud ID, in our example:

    code language-none
    @{LobbyBeacon.endUserIDs._experience.mcid.id}
    

  4. Since we also want to react to customers who do not have a reservation, we need to check the box Show path for other cases than the one(s) above.

    Two paths are created:

    • Customers who have booked a room
    • Customers who have not booked a room.

  5. In the first path (room booked), drop a Push activity, select your mobile app and your “Welcome” template.

  6. Define the Target fields required by the system to send the push.

    • Push platform: select the platform: Apple Push Notification Server (Apple) or Firebase Cloud Messaging (Android).

    • Registration token: add the following expression (based on the configured event) using the advanced mode:

      code language-none
      @{LobbyBeacon._experience.campaign.message.profileSnapshot.pushNotificationTokens.first().token}
      
  7. Define the Push notification personalization fields. In our example: first name and last name.

  8. Add a “RestaurantBeacon” event.

  9. Add a new Push activity, select the “Meal discount” template and define the Address and Personalization fields. Add an End activity.

  10. We want to send a meal discount push notification only if the person enters the restaurant within the next 6 hours after the welcome push. To do this, we need to use a wait activity. Place your cursor on the welcome push activity and click on the “+” symbol. In the new path, add a wait activity and define a duration of 6 hours. The first eligible activity will be chosen. If the restaurant event is received less than 6 hours after the welcome push, the push activity is sent. If no restaurant event is received within the next 6 hours, the wait is chosen. Place an End activity after the wait activity.

  11. In the second path that follows the reservation condition (no room booked), add a Push activity and select your “Room rates” template. Add an End activity.

Second path: the customer is not a loyalty member section_ptb_ws1_ffb

  1. In the second path that follows the first condition (customer is not a loyalty member), add an Email activity and select your “Loyalty membership” template.

  2. In the Address field, select the email address from the data source.

  3. Define the first name and last name personalization fields from the data source.

  4. Add an End activity.

Click on the Test toggle and test your journey. If there is any error, deactivate the test mode, modify your journey and test it again. For more information on the test mode, refer to this page.

When the test is conclusive, you can publish your journey from the top right drop-down menu.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9