Skip to main content

Set Up the Customer Journey

Learning Objectives

After completing this unit, you’ll be able to:

  • Add the Real-Time Location component to an Experience Builder Site.
  • Select the information customers see about mobile workers.
  • Determine when to send messages to customers about incoming mobile workers.
  • View and change geolocation settings.
  • Give customers access to an Experience Builder site.

Add the Real-Time Location Component

Ursa Major already has an Experience Builder site for customers called Ursa Major Sunshine Club. Customers use the site to find information about their installations and communicate with the Ursa Major support team. When Maria adds Appointment Assistant Real-Time Location there, customers can find out more about their own appointments and see the location of their en route mobile worker on a map.

Maria adds the Real-Time Location component to her Experience Builder site.

  1. From Setup Setup gear, in the Quick Find box, enter digital experiences, and then select All Sites.
  2. In the row for your site, click Builder.
    Maria clicks Builder next to Ursa Major Sunshine Club.
  3. From the Experience Builder, click Components The lightning bolt icon..
  4. From Custom Components, locate the Real-Time Location Component.
  5. Drag the component onto the site.

Maria sees the map right away. If you can't see the map, add the URL to the Content Security Policy (CSP) trusted sites by following the steps in this help article.

Decide What the Customer Sees

As part of Ursa Major’s privacy practices, Sita created a list of necessary information to share. She decided that customers need to see the following when a worker is on the way to their appointment.

  • Mobile worker’s first name, the first initial of their last name, and their job title
  • Mobile worker’s picture from Ursa Major’s company org
  • The worker’s location on a map relative to the customer’s job site
  • Time estimates, including the estimated time until arrival and the appointment’s start and end time

This information helps customers know who’s coming to visit them, when, and how long they’re staying. Ursa Major doesn’t share information that the customer doesn’t really need, like a mobile worker’s full last name or their location at other times of day.

Maria uses Experience Builder to determine what information to share. 

  1. To open the settings panel in Experience Builder, click anywhere in the Real-Time Location component.
  2. Select the information to share with customers. Maria selects items to show the time estimate, the map, team member info, and team member image.

Customers can see the information they need, and everyone’s privacy is protected. That’s how Ursa Major likes to do business.

Create a New Status

First, she creates the En Route status for service appointments. That’s the status that workers select on their mobile devices when they start off for a new appointment. It sends that first message.

  1. From Setup Setup gear, go to the Object Manager tab.
  2. Click Service Appointment.
  3. Click Fields & Relationships.
  4. In the Fields & Relationships list, click Status.
  5. Scroll down to Status Picklist Values and click New.
  6. Enter the following values.
    • Label: En Route
    • API Name: En_Route
    • Status Category: None
    • Save your changes.Status Picklist with values filled out for En Route
  7. Save your changes.

 Maria checks that the new status shows up on the Service Appointment object for the Status picklist.

Status Picklist showing En Route added to the list of values

The next step is to create a Change Status quick action on the service appointment that updates the appointment status to En Route. For Real-Time Location to work, the change of status must occur on the worker’s mobile device and not the server side. Maria created this quick action when she was customizing settings in the Field Service Mobile Trailhead module so it’s ready to use.

Configure Settings

With the En Route status created and added as a quick action, Maria finishes setting up when and where messages are sent.

  1. From Setup Setup gear, in the Quick Find box, enter field service, and then select Field Service Settings.
  2. Scroll to the Appointment Assistant section.
  3. In the Status field, select the service appointment status change that generates the first message to customers.
    Maria chooses En Route.
  4. In the Site URL field, enter the URL of the customer’s Experience Builder site.
    Maria enters https://ursamajorsolar.my.site.com/sunshineclub
  5. Enter a value for the Appointment Assistant Radius. This value generates the second message to customers.
    Maria enters 1 and chooses Miles.
  6. Enter a value for the Appointment Assistant Expiration. This value determines when the customer stops seeing the mobile worker’s location and information.
    For Minutes, Maria selects 30.
     Field Service settings with the values filled out for Appointment Assistant
  7. Save your changes

Check Geolocation Tracking via the Mobile App

Real-Time Location isn’t the only use for temporarily tracking the location of mobile workers. Ursa Major has already set up geolocation tracking on the mobile devices that its workers carry when they started using the Salesforce Field Service mobile app. Knowing where its mobile workers are improves service. For example, it makes it easier to assign last-minute high-priority tasks to the closest qualified worker or to react to emergencies.

Maria double checks that her existing geolocation settings are correct.

  1. From Setup Setup gear, in the Quick Find box, enter field service, and then click Field Service Mobile Settings.
  2. Click Field Service Mobile Settings.
  3. Click Edit.
  4. Select Collect service resource geolocation history.
  5. Enter the value for Geolocation Update Frequency in Minutes.
    Maria enters 10.
  6. Enter the value for Geolocation Update Frequency in Minutes (Background Mode).
    Maria enters 60.
    Field Service Mobile settings pane with the values filled in
  7. Save your changes.

These settings are used by Ursa Major for other purposes, but the settings are overridden when mobile workers mark themselves as En Route. The location shared with the customer while the worker is en route to their appointment is updated every 60 seconds.

Set Up Site Access

Sunshine Club customers, like all guest visitors to a public Experience Builder site, can view the site without logging in. Customers who visit the public site share the same guest user record and have the same access level. For Ursa Major, they see information about its products, guest posts, and information about the mobile worker coming to their home or business.

Maria sets up the guest user record to give her customers the proper access to Appointment Assistant in the Sunshine Club.

  1. From Setup Setup gear, in the Quick Find box, enter digital experiences, and then select All Sites.
  2. In the row for your site, click Builder.
    Maria clicks Builder next to Ursa Sunshine Club.
  3. In Experience Builder, click Settings Experience Builder Settings icon.
  4. In Guest User Profile, click <Your Site Name> Profile.
    Maria clicks Ursa Major Sunshine Club Profile.
    Settings pane displaying Guest User Profile and the link for Ursa Major Sunshine Club Profile
  5. In the Profiles pane, click View Users.
  6. Click the user’s name.
    Maria clicks Site Guest User.
  7. Hover over Permission Set Assignments and click Edit Assignments.
  8. Add Appointment Assistant Guest Permissions to the list of Enabled Permission Sets.
  9. Save your changes.
  10. Return to Experience Builder and select Public can access the site.
  11. Click Publish.

In this unit, you learned how to add the Real-Time Location component to Experience Builder. Then you followed along as Maria used Experience Builder. She determined what information customers see, when they get messages, and granted them access. Next you learn how to create the templates and flows for the en route messages to customers.  

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities