Loading
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
          Configure Autonomous Scheduling for Field Service

          Configure Autonomous Scheduling for Field Service

          You can modify the behavior of Autonomous Scheduling by configuring the agent and its various components. Your agent includes details and is composed of subagents that include actions that call flows. You can configure any of these components. For example, in the agent details you can configure the welcome message, in the subagent you can configure the instructions, and in the flows you can change the scheduling policy, operating hours and more.

          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.
          User Permissions Needed
          To manage agents:

          Manage Agentforce Service Agents AND Manage AI Agents

          OR

          Customize Application

          Watch the video to see some of the ways that you can configure your Autonomous Scheduling experience.

          Get Started

          To personalize your agent, follow these steps.

          1. From Setup, in the Quick Find box, enter Agentforce, and then select Agentforce Agents.
          2. Open your agent.
          3. From Agent Details, modify the details that you entered when you created the agent and additional details, such as the messages that your customers see. For example, from System Messages, modify the Welcome Message.
          4. Modify the subagents that this agent uses. For example, modify a subagent’s instructions.
            1. Click Open in Builder.
            2. Click a subagent.
            3. Click New Version.
            4. Modify the details.
            5. Save your changes.
          5. Modify the flows. For example, modify the scheduling policy or operating hours.
            1. Click This Subagent’s Actions.
            2. Open the action that contains the flow that you want to update.
            3. From the Reference Action box, click Open flow.
              Reference Action box in agent action details window
            4. In Flow Builder, modify the various elements.

          Address

          By default, the customer's address is taken from the contact record. If your org uses the account record for storing addresses, follow these steps.

          1. From the list of subagents in Agentforce Builder, click Appointment Management for Field Service subagent.
          2. Click New Version.
          3. From the list of actions, open the Create Appointment for Field Service action.
          4. From Reference Action, open the Field Service: Create Service Appointment flow.
          5. Configure the flow to use the address defined in the account record instead of the contact record.

          Appointment Identifier

          By default, the appointment identifier that’s displayed to customers is the Service Appointment Number. If you want to use a different appointment identifier or remove the appointment identifier, follow these steps.

          1. Edit these flows to modify the following elements.
            • Flow:Field Service: Get Service Appointment Identifier

              Element: Get Service Appointment (API Name: GetServiceAppointment)

              Appointment Number field in the Get Service Appointment element of the Get Service Appointment Identifier flow
            • Flows: Field Service: Cancel Service Appointment and Field Service: Schedule Service Appointment

              Element: Get Service Appointment (API Name: GetServiceAppointment)

              AppointmentNumber field in the Get Appointment element of the flows

              Element: Set Service Appointment Number (API Name: SetServiceAppointmentNumber)

              serviceAppointmentNumber variable in the Set Service Appointment Number element of the flows
            • Flow: Field Service: Get Appointment Information

              Resource in Toolbox: ComposeSingleAppointmentBasicInfoFormula formula

              Appointment identifier in formula

              Element: Get Service Appointments (API Name: GetServiceAppointmentsAfterStartTime)

              GetServiceAppointmentsAfterStartTime element of the flow

              Element: Get Service Appointments (API Name: GetServiceAppointmentsBetweenStartAndEndTimes)

              GetServiceAppointmentsBetweenStartAndEndTimes element of the flow
          2. Save and activate the flows.
          3. If you chose to remove these elements from the flows because you don’t want the service appointment number to be displayed to customers, you also need to edit the subagent instructions. This step isn't required if you’re changing the appointment identifier.
            1. From the list of subagents in Agentforce Builder, click the Appointment Management for Field Service subagent.
            2. Click New Version.
            3. Search for this in the instructions:

              If successful, provide a complete message that confirms the cancellation: "I've canceled [value of 'serviceAppointmentNumber' from action output] that was scheduled for [value of 'formatted date and time' from the retrieved appointment]. Please let me know if I can help with anything else."

              Enter this instead:

              If successful, provide a complete message that confirms the cancellation: "I've canceled the appointment that was scheduled for [value of 'formatted date and time' from the retrieved appointment]. Please let me know if I can help with anything else."

            4. Search for this in the instructions:

              After the customer has selected a time slot from the presented options, call the appropriate action to finalize the scheduling. - If scheduling was successful, you must send a confirmation message to the customer. This message must include the day, date, time, and the appointment number. - For example: "[value of serviceAppointmentNumber from the action output] has been scheduled for [Day of Week, Month Day] [Start Time] - [End Time].

              Enter this instead:

              After the customer has selected a time slot from the presented options, call the appropriate action to finalize the scheduling. - If scheduling was successful, you must send a confirmation message to the customer. This message must include the day, date and time. - For example: "The appointment has been scheduled for [Day of Week, Month Day] [Start Time] - [End Time].

          4. Save and activate the agent.

          Escalations

          The Appointment Management for Field Service subagent includes various scenarios where a conversation is escalated to a representative. If you want to add, remove, or modify any of these scenarios, follow these steps.

          1. Review the current escalation scenarios.
          2. From the list of subagents in Agentforce Builder, click the Appointment Management for Field Service subagent.
          3. Click New Version.
          4. Search for escalate and escalation to locate all of the relevant instructions.
          5. Modify the instructions as needed. For ethics-related instructions, see Ethical Instructions.

          Messaging Channels

          When using an Enhanced Web Chat deployment, you can configure how information is displayed.

          1. From Setup, in the Quick Find box, enter Embedded Service Deployments, and select Embedded Service Deployments.
          2. Customize the settings of the messaging channel. For example, you can show typing indicators.

          Operating Hours

          By default, operating hours is set to Gold Appointments Calendar. We recommend replacing this value with the operating hours used in your org.

          1. From the list of subagents in Agentforce Builder, click the Appointment Management for Field Service subagent.
          2. Click New Version.
          3. From the list of actions, open the Get Appointment Time Slots for Field Service action.
          4. From Reference Action, open the Field Service: Get Appointment Time Slots flow.
          5. In Flow Builder, open the toolbox and edit the operatingHoursName variable.
          6. Replace the default value of the variable with the name of your preferred operating hours.
            Default operating hours

          Scheduling Policy

          By default, the scheduling policy is set to Customer First. We recommend replacing this value with the scheduling policy used in your org.

          Note
          Note Make sure that the scheduling policy that you’re using includes the Scheduled Start and Scheduled End work rules. See Review the Prerequisites for Autonomous Scheduling.
          1. Edit the flow that gets the time slots.
            1. From the list of subagents in Agentforce Builder, click the Appointment Management for Field Service subagent.
            2. Click New Version.
            3. From the list of actions, open the Get Appointment Time Slots for Field Service action.
            4. From Reference Action, open the Field Service: Get Appointment Time Slots flow.
            5. In Flow Builder, open the toolbox and edit the schedulingPolicyName variable.
            6. Replace the default value of the variable with the name of your preferred scheduling policy.
              Default scheduling policy
          2. Edit the flow that schedules the service appointment.
            1. In Agentforce Builder, from the Appointment Management for Field Service subagent, open the Schedule Appointment for Field Service action.
            2. From Reference Action, open the Field Service: Schedule Service Appointment flow.
            3. In Flow Builder, open the toolbox and click the DefaultSchedulingPolicy constant.
            4. Replace the value of the constant with the name of your preferred scheduling policy.
              Scheduling policy value

          Service Provider Information

          You can present personalized messages after customer verification.

          1. From the list of subagents in Agentforce Builder, click the Customer Verification subagent.
          2. Click New Version.
          3. Edit the instructions to present personalized messages after customer verification by adding service provider-specific information.

          Time Slots

          By default, customers are offered five time slots. If you want to change this number, follow these steps.

          1. From the list of subagents in Agentforce Builder, click the Appointment Management for Field Service subagent.
          2. Click New Version.
          3. To locate the relevant instructions, search for five.
          4. Modify the number of slots.

          Welcome Message

          By default, the welcome message is taken from the agent template that you selected when creating the agent. If you want to personalize the message, follow these steps. Note that this message should be empty for Customer Outreach because your company is approaching the customer with a specific predefined message.

          1. From Setup, in the Quick Find box, enter Agentforce, and then select Agentforce Agents.
          2. Open your agent.
          3. Click System Messages.
          4. Replace the default welcome message.
            Welcome message

          Work Types

          By default, all of the org’s work types are considered for scheduling. To include only relevant work types and improve the agent’s performance, follow these steps.

          1. From the list of subagents in Agentforce Builder, click the Appointment Management for Field Service subagent.
          2. Click New Version.
          3. From the list of actions, open the Get Work Types for Field Service action.
          4. From Reference Action, open the Field Service: Get Work Types flow.
          5. From Flow Builder, open the Assign Work Types element.
          6. Click Add Assignment and for each work type define this condition.
            Variable: workTypes
            Operator: Add
            Value: Work type’s name
          7. Open the Get Work Types element.
          8. Under Filter Work Type Records, change the Conditions Requirement to All Conditions are met (AND) and define this condition.
            Field: Name
            Operator: In
            Value: workTypes
            Work Types condition

          Email Confirmation

          Set up your Scheduling Agent so that it sends an email to your customers confirming that their request to schedule, reschedule, or cancel their appointment was successful.

          Set Up the Flow

          1. In Setup, find and select Flows.
          2. Open the Field Service: Send Confirmation to Customer flow.
          3. Click Save as New Flow.
          4. Enter a label and API name, then save the flow.
          5. Enable sending the confirmation emails.
            1. Open the Toolbox.
            2. Open the sendEmailOutcome variable.
            3. Change the default value from False to True.
              False deafualt value in variable.
            4. Click Done.
          6. Add your company name.
            1. Open the Set Variables element.
            2. For the companyName variable, delete the value and enter the name of your company.
              Company name in Set Variables element
          7. The sender’s email address is set to the current user. If you want to use an Organization-Wide Email Address, follow these steps.
            1. Open the Send Email element.
            2. Under Configure Sender Details, for Sender Type, select OrgWideEmailAddress.
            3. For Sender Email Address, delete the value and enter the required email address.
              Sender email address
          8. Save and activate the flow.

          Add Custom Labels

          Create custom labels and modify them as needed.

          1. In Setup, find and select Custom Labels.
          2. Click New Custom Label.
          3. Copy the names from the table below and use them to create custom labels for the subject and body of these template types: Cancel, Schedule, and Reschedule.
          Note
          Note You must use the names from this table because they’re referenced from the flow. You can modify the short descriptions and values as needed.
          Short Description Name Value
          Subject of the confirmation email for canceled appointments. Email_Confirmation_Cancel_Subject_template Your appointment with {Company Name} was canceled
          Body of the confirmation email for canceled appointments. Email_Confirmation_Cancel_template

          Hi {FirstName LastName},

          Your {Work Type} appointment {Appointment Number} that was originally scheduled for {Original Date & Time} is now scheduled for {Date & Time} at this address: {Street and Number}, {City}, {State}

          Thank you, {Company Name}

          Subject of the confirmation email for scheduled appointments. Email_Confirmation_Schedule_Subject_template Your appointment with {Company Name} was scheduled
          Body of the confirmation email for scheduled appointments. Email_Confirmation_Schedule_template

          Hi {FirstName LastName},

          Your {Work Type} appointment {Appointment Number} is scheduled for {Date & Time} at this address: {Street and Number}, {City}, {State}

          Thank you, {Company Name}

          Subject of the confirmation email for rescheduled appointments. Email_Confirmation_Reschedule_Subject_template Your appointment with {Company Name} was rescheduled
          Body of the confirmation email for rescheduled appointments. Email_Confirmation_Reschedule_template

          Hi {FirstName LastName},

          Your {Work Type} appointment {Appointment Number} that was originally scheduled for {Original Date & Time} is now scheduled for {Date & Time} at this address: {Street and Number}, {City}, {State}

          Thank you, {Company Name}

           
          Loading
          Salesforce Help | Article