---
schema_version: "1"
id: c0109e88b0ef69fdba5e22651544c2baa038533b7ab18dc8aefa8f38f9e16315
title: Swarming | Complete Swarm
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_swarming_complete_swarm.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_swarming_complete_swarm.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 280991958913420d318eaf31c015d88329a33fe93bcc1ca972831fa76ce49a8f
description: Completes a swarm and performs all closure actions, including Slack notifications and channel archiving.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Swarming | Complete Swarm

Completes a swarm and performs all closure actions, including Slack notifications and channel archiving.

### 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>,&nbsp;<strong>Performance</strong>, and&nbsp;<strong>Unlimited</strong>&nbsp;Editions with the Einstein for Service add-on</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col>
        <col>
      </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="d40160e82">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d40160e82 ">To execute actions in Agentforce (Default):</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d40160e82 ">Use Agentforce Default Agent</td>

        </tr>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d40160e82 ">To use prompt templates:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d40160e82 ">Prompt Template User</td>

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

## Action Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:50%"> <col style="width:50%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">API Name</td><td class="slds-cell-wrap" style="vertical-align:top;">CompleteSwarm</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Standard</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Standard Action</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Inputs</td><td class="slds-cell-wrap" style="vertical-align:top;">collaborationAppId, shouldArchiveChannel, swarmId</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Outputs</td><td class="slds-cell-wrap" style="vertical-align:top;">faultMessage</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Does this action execute one or more prompt templates?</td><td class="slds-cell-wrap" style="vertical-align:top;">No</td></tr></tbody></table>