---
schema_version: "1"
id: 4fc66ec55b6e0ec0fd6b377697dfbe727c49f37cde6b90c66aae18e25e2f739e
title: Add an Action to a Subagent in the Legacy Builder
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/copilot_actions_add.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.copilot_actions_add.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 73e6033eb06b776181f4729977ecfe27ae1875402ecaee1a8f1a278dffcf3ed6
description: To use an action with an agent, add it to a subagent. An action can be added to multiple subagents. When you add a subagent to an agent, Salesforce makes a copy of the subagent and its actions. Each agent and agent version has its own independent copy of subagents and actions.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Add an Action to a Subagent in the Legacy Builder

To use an action with an agent, add it to a subagent. An action can be added to multiple subagents. When you add a subagent to an agent, Salesforce makes a copy of the subagent and its actions. Each agent and agent version has its own independent copy of subagents and actions.

### 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>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d193572e76">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d193572e76 ">To assign actions to a subagent:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d193572e76 ">Manage AI Agents AND <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;type=5&amp;language=en_US" target="_blank">the required permissions for your agent
                type</a></td>

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

For best performance, we recommend assigning no more than 15 actions to a subagent.

You can also add an action to your agent when you [create a custom subagent](https://help.salesforce.com/s/articleView?id=ai.copilot_topics_add_custom.htm&release=264.0.0&type=5 "Create a custom subagent to specify the actions and instructions an agent needs to meet your users’ particular business needs.").

1. From the Agentforce Agents Setup page, launch your agent in Agentforce Builder.
2. If your agent is active, [deactivate it](https://help.salesforce.com/s/articleView?id=ai.copilot_setup_activate_deactivate.htm&release=264.0.0&type=5 "Activate your agent to make it available to your customers or employees. When an agent is deployed to one or more channels, including the Agentforce panel, activating the agent makes it immediately available to your users.").
3. From the left rail, select **Subagents**.
4. On the Subagents panel, click the name of the subagent you want to add an action to, and then select the **This Subagent’s Actions** tab.
5. Click **New**.
6. Select the action or actions you want to add to your agent from the actions library. Or [create a custom agent action](https://help.salesforce.com/s/articleView?id=ai.copilot_actions_custom.htm&release=264.0.0&type=5 "With custom actions, you can extend your agent with Salesforce functionality so that it’s ready to assist users with tasks specific to your business. Build custom actions using Apex, flows, prompt templates, and API integrations.").
7. To save your changes, click **Finish**.

The actions you’ve added are assigned to your agent and are visible on the Subagents panel of Agentforce Builder. To test your subagent with your newly assigned actions, restart the preview conversation to apply your changes.

To remove an action from your agent, from the Subagents panel of Agentforce Builder, click the name of the subagent you want to remove an action from, and then select the **This Subagent’s Actions** tab. From the dropdown menu next to the action, select **Remove from Subagent**.