---
schema_version: "1"
id: 403edecc916f296718dfc158099c32c0bc505ec8a5583070184789aa5fe5dc8e
title: Subagents
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_topics.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_topics.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 32f0c55d2a564f5ba05d3cd6d7e97454d56bd6b6133cee72dad01435d13ce33a
description: A subagent is a job an agent can do. Learn about the parts of a subagent and how to use them to define an agent’s logic, reasoning, and conversational capabilities.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Subagents

A subagent is a job an agent can do. Learn about the parts of a subagent and how to use them to define an agent’s logic, reasoning, and conversational capabilities.

### 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;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required add-on licenses vary by agent type.</a></td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note 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.

Think of a subagent as a particular job an agent can do. Collectively, the subagents assigned to your agent define the capabilities your agent can handle. Subagents contain instructions, which control agent logic and guide agent reasoning, and actions, which are the tools available for the agent to use.

The parts of a subagent include a name, description, reasoning instructions, reasoning actions, and agent actions.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:14.285714285714285%">
        <col style="width:42.857142857142854%">
        <col style="width:42.857142857142854%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d36513e87">Subagent Field</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d36513e90">What It Is</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d36513e93">How It's Used</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Subagent Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e87 ">Name and Description</td>

          <td data-label="What It Is" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e90 ">
            <p>​​The name is the API name of the subagent. It’s usually 2-3 words that describe what the
              subagent does in plain language.</p>
            <p style="margin-bottom:0;">The description is 1-3 sentences that describe what a subagent does and the types of user
              requests that should be classified into this subagent. In other words, the
              description describes what user messages should trigger this subagent.</p>
          </td>

          <td data-label="How It's Used" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e93 ">
            <p>By default, these fields are used along with a special subagent, the Agent Router,
              to determine when to use a subagent in a conversation. Routing behavior can be
              customized. See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_topics_routing.htm&amp;release=264.0.0&amp;type=5" title="Learn more about the Agent Router and how to customize it to control how your agent selects subagents in a conversation.">Subagent Classification and Routing</a>.</p>
            <p style="margin-bottom:0;">The agent compares the names and descriptions of all of the subagents assigned to
              the agent to the user’s question or request and recent conversation history. Based
              on that context and the instructions in the Agent Router, the agent selects the best
              match.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Subagent Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e87 ">Instructions</td>

          <td data-label="What It Is" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e90 ">Instructions (sometimes called reasoning instructions) are the guidelines that
            tell your agent how to handle conversations in the context of the subagent, your
            business case, and the conversation in general. Instructions contain a combination of
            programmatic logic (written in Agent Script) and natural language prompts. Logic
            strictly defines your agent’s workflow and business rules. Prompts more flexibly guide
            your agent’s conversational skills.</td>

          <td data-label="How It's Used" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e93 ">
            <p>Reasoning instructions are used to create the prompt that’s sent to the LLM.</p>
            <p>When the agent moves to a subagent, it begins resolving the reasoning instructions
              in order, executing any logic along the way to help the agent reason more accurately
              and reliably. See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_topics_instructions_resolve.htm&amp;release=264.0.0&amp;type=5" title="Learn about how an agent executes programmatic expressions in a subagent’s reasoning instructions to prepare for reasoning.">How Subagent Instructions are Resolved to Build a Prompt</a>.</p>
            <p style="margin-bottom:0;">When the agent reaches the end of the logic, the agent sends the resolved prompt,
              including any natural language instructions, to the LLM to start the reasoning
              process.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Subagent Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e87 ">Actions Available for Reasoning (Reasoning Actions)</td>

          <td data-label="What It Is" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e90 ">
            <p>Actions available for reasoning (sometimes called reasoning actions) are the actions an agent is
              allowed to take during reasoning with the LLM). They include references to
              traditional agent actions, such as Answer Questions with Knowledge. But they can
              also include utilities, which include transitions to another subagent, setting
              variables, or escalations to a representative.</p>
            <p style="margin-bottom:0;">In reasoning actions,
              you can define filters to control when an action can be used. You can also add logic
              after an action to chain actions together in sequence.</p>
          </td>

          <td data-label="How It's Used" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e93 ">
            <p>Reasoning actions are sent to the LLM along with the prompt created from the
              reasoning instructions. The LLM chooses which actions and utilities to run based on
              the user’s message, the recent conversation history, the resolved reasoning
              instructions, and any logic defined in the reasoning actions.</p>
            <p style="margin-bottom:0;">When you add an action
              to a subagent, the action is added to the subagent's reasoning actions by
              default.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Subagent Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e87 ">Action Definitions</td>

          <td data-label="What It Is" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e90 ">Behind the scenes, a subagent includes a list of all of the agent actions
            assigned to the subagent. Think of this as a list of all the actions relevant to the
            subagent’s use case, including the name and description of the action, the list of
            inputs and outputs, and the reference to the Salesforce functionality the agent action
            calls to get information or perform a task (such as a flow or prompt template). Action
            definitions make an action available to reference and use within your subagent. Action
            definitions aren't visible in Canvas view, but you can see them in Script
            view.</td>

          <td data-label="How It's Used" class="slds-cell-wrap" style="vertical-align:top;" headers="d36513e93 ">
            <p>When you add an action to a subagent, the action is added to the subagent's
              action definitions and its reasoning actions by default. You can remove an action
              from a subagent's reasoning actions, so it's not available for the agent to run
              during reasoning, and still use it within your subagent.</p>
            <ul>
              <li>To run an action deterministically, before any reasoning takes place, add the
                action to the subagent's reasoning instructions.</li>

              <li>To make an action available for the LLM to select during reasoning, add the
                action to the subagent's reasoning actions.</li>

            </ul>
            <p style="margin-bottom:0;">To remove an action from your subagent altogether, from the Explorer panel,
              delete it. Or delete the action definition and references to the action in your
              agent's script.</p>
          </td>

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

- **[Subagent Classification and Routing](https://help.salesforce.com/s/articleView?id=ai.agent_topics_routing.htm&release=264.0.0&type=5)**  
    Learn more about the Agent Router and how to customize it to control how your agent selects subagents in a conversation.
- **[How Subagent Instructions are Resolved to Build a Prompt](https://help.salesforce.com/s/articleView?id=ai.agent_topics_instructions_resolve.htm&release=264.0.0&type=5)**  
    Learn about how an agent executes programmatic expressions in a subagent’s reasoning instructions to prepare for reasoning.
- **[Manage Subagents](https://help.salesforce.com/s/articleView?id=ai.agent_topics_manage.htm&release=264.0.0&type=5)**  
    Add and remove subagents from your agent. Create custom subagents. Manage subagents in the asset library.