Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Agentforce Field Service and Operations
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Set Up Customer Outreach with Email in the Legacy Agentforce Builder

          Set Up Customer Outreach with Email in the Legacy Agentforce Builder

          Set up a Customer Outreach agent that connects to email.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions with Field Service and Foundations, or Einstein 1 Field Service Edition or Agentforce 1 Field Service Edition.

          Create the Agent

          Create a Scheduling agent for Customer Outreach.

          Get started by following the steps to Create an Agentforce Service Agent and Create an Agentforce Employee Agent. Then, follow the steps listed in Customer-Initiated Scheduling for creating a flow, creating a context variable, creating an action, and updating the agent’s instructions.

          Modify the Agent

          By default, Customer Outreach works with Engagement Topics that are connected to messaging sessions. Email-to-Case doesn’t work with messaging sessions. Therefore, the agent that you’re setting up for connecting to email must be modified.

          1. In Setup, find and select Agentforce Agents.
          2. Open the agent that you created.
          3. Click Open in Builder.
          4. In Agentforce Builder, click Subagents.
          5. Open the Appointment Management for Field Service subagent.
          6. Remove the action.
            1. Click This Subagent’s Actions.
            2. For the Get Engagement Topics action, click the arrow at the end of the row and select Remove From Subagent.
          7. Modify the instructions.
            1. Click Subagent Configuration.
            2. Delete the DD SCENARIO GUIDELINES instruction.
            3. In the Mandatory Guidelines instruction, delete the first bullet that references the Get Engagement Topics action.

          Set Up the Notification Flow

          The notification flow is triggered when a dispatcher requests to rebook an appointment and sends the customer an SMS. Configure the flow so that it sends the customer an email instead with a predefined subject and body.

          1. In Setup, find and select Flows.
          2. Open the Field Service: Notify Customer flow.
          3. Click Save As New Flow and enter a label.
          4. Delete unnecessary elements.
            1. In the Does Contact Exist? element, click the menu and select Delete Element. All of the elements under it are deleted subsequently.
            2. In the Get Contact element, click the menu and select Delete Element.
          5. Open the Toolbox.
          6. Delete all of the formulas.
            Tip
            Tip Start from the bottom of the list to avoid dependency errors.
          7. Create a variable.
            1. Click New Resource.
            2. For Resource Type, select Variable.
            3. For API Name, enter appointmentNumber.
            4. For Data Type, select Text.
            5. Click Done.
          8. Create an email template for the subject of the email.
            1. Click New Resource.
            2. For Resource Type, select Text Template.
            3. For API Name, enter SubjectTextTemplate.
            4. For Body, enter the subject of the email, for example: Your upcoming {!workType} appointment ({!appointmentNumber}) needs to be rescheduled
              Note
              Note It’s important to include these variables in your subject. In the Case that’s created, you won’t be able to see the original email that was sent to the customer. By adding these variables to the subject, when the customer replies to the email, you’ll see the details in the subject of the email that they reply to (Re: Your upcoming {!workType} appointment ({!serviceAppointmentId}) needs to be rescheduled).
          9. Create an email template for the body of the email.
            1. Click New Resource.
            2. For Resource Type, select Text Template.
            3. For API Name, enter BodyTextTemplate.
            4. For Body, enter the body of the email, for example:
              We apologize for the inconvenience, but we need to reschedule your upcoming {!workType} appointment on {!scheduledStartTime}. What date and time would be good for you?
          10. After the Get Service Appointment element, add an Assignment element with these details.
            1. Label: Assign Variables from Appointment
            2. Variable: scheduledStartTime, Operator: Equals, Value: Service Appointment from Get Service Appointment > Scheduled Start
            3. Variable: workType, Operator: Equals, Value: Service Appointment from Get Service Appointment > Work Type ID > Work Type Name
            4. Variable: appointmentNumber, Operator: Equals, Value: Service Appointment from Get Service Appointment > Appointment Number
          11. After the Assignment element, add an Action element.
            1. Action: Send Email
            2. Label: Send Email
            3. Recipient Addresses: Service Appointment from Get Service Appointment > Contact ID > Email
            4. Sender Type: OrgWideEmailAddress
            5. Sender Email Address: Enter the required email address
            6. Subject: SubjectTextTemplate
            7. Body: BodyTextTemplate
            8. Rich-Text-Formatted Body: False
          12. Save the flow. Your flow should look like this.
            Notification flow for email
          13. Activate the flow.
          14. Connect the flow to your settings.
            1. From the App Launcher, find and select Field Service Settings.
            2. In Global Actions, open the Agentforce tab.
            3. In Name of Notification Flow, select the flow that you created.
              Name of Notification Flow field in Field Service Settings
            4. Save your changes.
           
          Loading
          Salesforce Help | Article