---
schema_version: "1"
id: 9133e06aa50b126524ea2ef61e07453ff6931e68f4ba7646fa2a91431b66b6f3
title: Grounding Service Assistant with Subagents
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/sp_topics_start.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.sp_topics_start.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b92a33ce55308cf6546c2161d7c80d0904dbc647442ac11bbb0fd2d352d0c7fa
description: Learn the role of subagents in Service Assistant and review guidelines for creating them.
products:
  - Service Cloud
  - Service Intelligence
release: "264"
---
# Grounding Service Assistant with Subagents

Learn the role of subagents in Service Assistant and review guidelines for creating them.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.einstein_service_intro.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

- [Subagents and Service Assistant](https://help.salesforce.com/s/articleView?id=service.sp_topics_start.htm&release=264.0.0&type=5)
- [Guidelines for Writing Service Assistant Subagents](https://help.salesforce.com/s/articleView?id=service.sp_topics_start.htm&release=264.0.0&type=5)
- [Guidelines for Writing Service Assistant Instructions](https://help.salesforce.com/s/articleView?id=service.sp_topics_start.htm&release=264.0.0&type=5)
- [Sample Service Assistant Subagent](https://help.salesforce.com/s/articleView?id=service.sp_topics_start.htm&release=264.0.0&type=5)

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/images/icon_note.png)

Note

- This section provides reference guidance for the creation of subagents in Service Assistant. Setup guidance follow the general Agentforce subagents setup, which is included in [Set Up Service Assistant](https://help.salesforce.com/s/articleView?id=service.sp_start_setup.htm&type=5&language=en_US).
- Service Assistant is only supported in the [legacy Agentforce Builder](https://help.salesforce.com/s/articleView?id=ai.agent_builder_explore.htm&type=5&language=en_US). Starting in July 2026, the requirement that new agents can only be created in the new Agentforce Builder doesn’t apply to Service Assistant. You can continue to create and configure a Service Assistant agent in the legacy builder until further notice. See [Create Agents in the New Builder Only Starting July 2026](https://help.salesforce.com/s/articleView?id=release-notes.rn_agentforce_legacy_agent_creation.htm&release=262&type=5&language=en_US).
- Beginning in April 2026, agent topics are now called subagents. There are no changes to functionality. During this transition, you may see a mix of the new and previous terms in our documentation. See [Topics Are Now Subagents](https://help.salesforce.com/s/articleView?id=release-notes.rn_einstein_agentforce_subagent_new_name.htm&release=260&type=5&language=en_US).

This video outlines the best practices and configuration guidance found in this article and in [Subagent Best Practices](https://help.salesforce.com/s/articleView?id=service.sp_topics_pb.htm&language=en_US&type=5) and [Subagent Strategy](https://help.salesforce.com/s/articleView?id=service.sp_topics_strategy.htm&type=5&language=en_US). It provides an overview of how to create subagents and how to optimize them when you use knowledge grounding. Review all of the information in this article and subsequent articles for more specific details and guidance.

## Subagents and Service Assistant

In Agentforce, AI agents use subagents, actions, and instructions (known as agent assets) to categorize user interactions and determine what specific tasks they need to complete for users. AI agents typically assist customers in resolving general issues and finding self-service solutions without the need for a service rep, like changing a password or making an appointment.

In contrast, Service Assistant is an agent that gives specific and detailed guidance to your service reps so they can resolve customer cases directly. To make sure the guidance in a service plan is accurate and specific, you need to create subagents and instructions that precisely detail your service policies for each case type, such as “Return Request” or “Credit Card Declined.” Having detailed and specific subagents help Service Assistant determine what instructions are relevant for inclusion in a service plan based on case details.

Keep in mind that we don't provide any preconfigured subagents for Service Assistant. You must create you own subagents and instructions following the provided guidelines.

## Guidelines for Writing Service Assistant Subagents

We suggest reviewing these guidelines on how to write both subagents and instructions for Service Assistant. The guidelines highlight how to structure your subagents and instructions for Service Assistant so that the resolution guidance in a service plan is relevant to the case and your policies.

Here are a few guidelines for creating subagents for Service Assistant.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:50%">
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Guideline</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Details</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Example</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Proivde subagents with a clear and specific names.</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Subagents should have a name that speficies the exact Case type you're trying
              to address.</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Instead of using “Customer Inquiry”, use “Order Status Inquiry”. Customer
              Inquiry is too broad as it covers a wide range of cases.</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Eliminate overlapping subagents.</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Make sure your subagents are distinct from one another. Overlapping subagents
              make it hard for the agent to classify cases meaningfully.</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Instead of including both “Manage Reservations” and “Confirm Reservation” as
                separate subagents, rename them to make the differences explicit.</p>
              <p style="margin-bottom:0;">You can avoid overlap by consolidating them into one “Reservation Management”
                subagent. </p>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Keep subagents singular.</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Subagents work best when they encompass only one definition or concept.
              Combining different ideas into one subagent can result in inappropriate service
              plans. </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Instead of combining two concepts into a single subagent like “Returns and
              Exchanges,” separate each concept into its own subagent, “Returns” and “Exchanges."
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Provide encompassing subagent descriptions.</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Use a single high-level subagent for a wide range of related issues by explicitly
                listing variations and keywords in the subagent's description field.</p>
              <p style="margin-bottom:0;">This way you don’t need to create separate subagents for each specific variation
                of transactions. When you have subtypes defined in the description, Service
                Assistant is better able to match a single subagent to multiple transaction
                declined case types.</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Subagent: Transaction Declined</p>
              <p>Description: Guide service reps in helping customers resolve declined credit card
                transactions. Issues are related to authorization failures, including declining
                reason codes such as insufficient funds, suspected fraud, incorrect card details,
                travel blocks, and daily spending limits</p>
              <p>Subagent: Return Request</p>
              <p style="margin-bottom:0;">Description: Guide service reps through processing a customer's return request,
                including verifying eligibility and initiating the return in the system. Questions
                are related to return requests, which includes proof of return, return windows,
                product condition, and refund status.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Guidelines for Writing Service Assistant Instructions

When writing instructions for Service Assistant, think about the steps a service rep must complete for a particular case. Translate those steps into instructions with specificity and accuracy to your service policies and practices. Here's a set of sample instructions for a "Process Return" subagent with details that follow.

![Service Assistant instructions example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/service_planner/sp_topic_guidelines.png)

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:66.66666666666666%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d19804e271"><strong>INSTRUCTION GUIDELINE</strong></th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d19804e275"><strong>CONTEXT</strong></th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="INSTRUCTION GUIDELINE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e271 ">(1) Use clear, conditional statements </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e275 ">Include conditional language in your instructions to consider the possible
              scenarios that can occur when working a case. This ensures that all the relevant
              information is accounted for and available for the agent to decide what to include
              in a plan. If the information isn’t included in the instructions, it won’t be in the
              plan. </td>

          </tr>
          <tr class="">
            <td data-label="INSTRUCTION GUIDELINE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e271 ">(2) State the actions ‌that follow preceding instructions and be clear about
              expected outcomes.</td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e275 ">
              <p>Instructions should match the standard workflow for the specific issue. In
                the example, the instruction states what occurs given the previous instruction.
                Include language such as “When you have…”, and “After…”.</p>
              <p>For instructions that
                are mandatory for working the case, use language such as “Always include this as a
                step in the plan”. This makes sure that the information is always included in a
                plan. </p>
              <p style="margin-bottom:0;">Keep in mind that you don’t need to add instructions in a logical order.
                Agentforce agents reference each instruction as standalone information, which
                allows them to understand and apply instructions without additional context.
                Service Assistant can logically organize all instructions into a sequenced service
                plan.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="INSTRUCTION GUIDELINE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e271 ">(3) Specify your service policies and practices</td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e275 ">
              <p>When writing instructions, be specific and refer to your company's established
                guidance for the given case type. Cover all your service policies and standards
                for a given case and outline the criteria and conditions that must be met for the
                instruction to apply to the given case.</p>
              <p>Make sure that each instruction only refers to one piece of information from your
                policy or procedures for working the Case type. Don’t combine multiple pieces of
                information in one instruction.</p>
              <p style="margin-bottom:0;">Be sure to include your guidelines for tone, and specify any sample scripts or
                templates available to the service rep to aid them in working the case.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="INSTRUCTION GUIDELINE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e271 ">(4 - not shown in image) Omit sensitive and personally identifiable
              information.</td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e275 ">
              <p>Avoid including sensitive or confidential information in your instructions.
                That way, you make sure the information is safe to share and referenced by Service
                Assistant without concerns about privacy or security.</p>
              <ul>
                <li>Includes sensitive information: If the customer's discount code isn't working,
                  create a support ticket and assign it to the lead specialist, Jane Doe, for
                  review. </li>

                <li>Omits sensitive information: If the customer's discount code isn't working,
                  create a support ticket and assign it to the lead specialist for review. </li>

              </ul>
            </td>

          </tr>
        </tbody>
      </table>

## Sample Service Assistant Subagent

To better understand how to create subagents for Service Assistant, here’s an example “Return Request” subagent. The example is detailed, but the amount of information in your subagents and instructions varies based on the case type and complexity.

To save time creating subagents and instructions, we recommend using Agentforce Data Libraries. The feature adds information from your knowledge articles as steps in a service plan, reducing the amount of details you need to include in instructions. See [Grounding Service Assistant with Knowledge (Optional)](https://help.salesforce.com/s/articleView?id=service.sp_knowled_topics.htm&release=264.0.0&type=5 "Use Agentforce Data Libraries to ground Service Assistant in your knowledge.").

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:40%">
          <col style="width:40%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d19804e376">SUBAGENT PART</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d19804e379">EXAMPLE</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d19804e382">CONTEXT</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Label</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">Return Request</td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">A name for the subagent. </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Description</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">
              <p>Assist service reps with handling customer questions related to return
                requests.</p>
              <p style="margin-bottom:0;">Returns requests can also be called return processing, returns, refunds, return
                inquiries,‌ and authorize return. Questions are related to return transactions,
                which include proof of return, refund status, return documentation, return policy,
                return window, and return resolution steps.</p>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">
              <p style="margin-bottom:0;">A statement of the subagent’s purpose and the types of requests that are
                categorized under it. Include any company-specific terms related to the subagent
                that the customer may provide in the case. </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Scope </td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">
              <p style="margin-bottom:0;">Your job is to assist service reps in resolving customer inquiries regarding
                returns processing. Ensure they adhere to all internal policies and procedures.
                You must not handle inquiries unrelated to the return of goods.</p>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">
              <p>The scope sets the boundaries for your agent and tells the agent what it can and
                can't do with a subagent.</p>
              <p style="margin-bottom:0;">Notice that the scope states, “You must not handle inquiries unrelated to the
                return of goods.” This ensures that the agent doesn't suggest information beyond
                your grounding sources. </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Instruction 1</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">
              <p>Make sure the customer has provided the ‌required information: valid return date,
                customer name, and receipt number or order number.</p>
              <p style="margin-bottom:0;">This step must always be in a plan for cases dealing with returns. </p>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">
              <p>The first instruction is a must-do for the service rep. It's the critical first
                step of a service plan that must be completed to resolve the specific case type
                effectively. When a step is essential to resolving a case, clearly state that it's
                required. </p>
              <p>Include language such as:</p><a name="sp_topics_start__ul_gxn_vgv_p2c"><!-- --></a>
              <ul id="sp_topics_start__ul_gxn_vgv_p2c">
                <li>Always </li>

                <li>Must</li>

                <li>Required</li>

                <li>Confirm</li>

                <li>Verify</li>

                <li>At all times</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Instruction 2 </td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">
              <p style="margin-bottom:0;">After you have the required information, you must confirm the purchase in the
                return management system.</p>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">
              <p>The second instruction serves as a follow-up to the first. It can always apply or
                be conditional.</p><a name="sp_topics_start__ul_n3w_hhv_p2c"><!-- --></a>
              <ul id="sp_topics_start__ul_n3w_hhv_p2c">
                <li>After you have … </li>

                <li>After completing the first instruction … </li>

                <li>After verifying … </li>

                <li>If …, then … </li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Instruction 3</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 "><a name="sp_topics_start__ul_ds3_3hv_p2c"><!-- --></a>
              <ul id="sp_topics_start__ul_ds3_3hv_p2c">
                <li dir="ltr">If the customer provides the full Return Number, then you search the
                  return in the Returns Management System (RMS) using the return number and return
                  date. </li>

                <li dir="ltr">If the customer provides the order number, then you search the
                  return in the Order Management System (OMS) using the order number and return
                  date. </li>

                <li dir="ltr">If the customer provides only the customer name, then you search the
                  return in Salesforce using the customer name and return date. </li>

              </ul>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">
              <p>Consider the scenarios that can occur after the required steps are completed.
                These scenarios typically include conditional language. Try to cover all
                situations as much as possible.</p>
              <p>Conditional statements make instructions clear and comprehensive, ensuring that
                service reps have ‌all the necessary information to work the case.</p><a name="sp_topics_start__ul_av1_lhv_p2c"><!-- --></a>
              <ul id="sp_topics_start__ul_av1_lhv_p2c">
                <li>If …, then …</li>

                <li>When …, then …</li>

                <li>Whenever …, then … </li>

                <li>Provided that …, then …</li>

                <li>Should …, then … </li>

              </ul>
              <p style="margin-bottom:0;">This format ensures that the instructions are clear and comprehensive, covering a
                wide range of potential scenarios.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Instruction 4</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 "><a name="sp_topics_start__ul_snm_4hv_p2c"><!-- --></a>
              <ul id="sp_topics_start__ul_snm_4hv_p2c">
                <li dir="ltr">If the purchase can't be found in the system, first check the
                  information provided (Order Number, Return Request Date, Item Description,
                  Return Authorization Number, or Tracking Number) for any errors or misspellings. </li>

                <li dir="ltr">If the information is correct and the purchase still can't be found,
                  tell the customer that the purchase isn't showing in the system. Ask them to
                  give any other information that can help, such as the email address used for the
                  purchase, the payment method, or any order confirmation emails they got. </li>

                <li dir="ltr">If the customer's item is confirmed in the system and meets the
                  return time frame, confirm the reason for the return and ask them to provide
                  photos or a detailed description of the issue. </li>

              </ul>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">Continue to build your instructions in a logical order. This provides a clear
              pathway in the service plan for service reps to follow. </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Instruction 5</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">
              <p>Check that the product is in the right condition to be returned. Ask the customer
                to send you photos or a clear description of the product’s condition.</p>
              <p style="margin-bottom:0;">If the condition doesn’t meet the qualifier, tell the customer the return can't
                be processed. </p>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">Be clear about the expected outcomes after the information is gathered.
            </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Instruction 6</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">
              <p>After you've gathered all the information, send a response to the customer using
                the Return Request Template to indicate the return process.</p>
              <p style="margin-bottom:0;">This step must always be in a plan for cases dealing with returns.</p>
            </td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">Make sure to provide instructions that state what to do after all other steps
              are completed. </td>

          </tr>
          <tr class="">
            <td data-label="SUBAGENT PART" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e376 ">Instruction 7</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e379 ">If the customer isn't happy with the return process or the solution, offer to
              raise the issue to a higher-level support team or manager. Document the customer's
              concerns and the steps taken to address them.</td>

            <td data-label="CONTEXT" class="slds-cell-wrap" style="vertical-align:top;" headers="d19804e382 ">
              <p style="margin-bottom:0;">Provide instructions for situations where the customer isn't satisfied with the
                support provided. This helps your service reps anticipate customer needs and
                improve customer experience.</p>
            </td>

          </tr>
        </tbody>
      </table>

- **[Service Assistant Subagent Best Practices](https://help.salesforce.com/s/articleView?id=service.sp_topics_pb.htm&release=264.0.0&type=5)**  
    Learn our recommended best practices for creating subagents in Service Assistant.
- **[Subagent Strategy for Service Assistant](https://help.salesforce.com/s/articleView?id=service.sp_topics_strategy.htm&release=264.0.0&type=5)**  
    Learn how to strategize the implementation of your Service Assistant subagents for optimal granularity and knowledge grounding.