---
schema_version: "1"
id: 81db540aec2c5d0a50731f90652054059a800b5cde21c246bd014a6fd428ee3a
title: Invoke Flows by Using Agentforce Actions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_invoke_flows_by_using_agentforce_actions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_invoke_flows_by_using_agentforce_actions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cb9e644ef19020caf71cc5c8b944eaa5c89167c6cbe2664120aaf3adad3b380d
description: To use the Industries CPQ flows as an agent action, add specific instructions to invoke the agent action associated with the flows. When you call flows as Agentforce actions, Agentforce can interact with CPQ data and perform actions in CPQ. These actions can use CPQ flows to retrieve offers for an asset, replace offers in a cart, and delete or disconnect a cart item.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Invoke Flows by Using Agentforce Actions

To use the Industries CPQ flows as an agent action, add specific instructions to invoke the agent action associated with the flows. When you call flows as Agentforce actions, Agentforce can interact with CPQ data and perform actions in CPQ. These actions can use CPQ flows to retrieve offers for an asset, replace offers in a cart, and delete or disconnect a cart item.

### 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>Unlimited</strong>, and <strong>Developer</strong> Editions</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="d170723e69">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d170723e69 ">To use invocable methods as Agentforce actions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d170723e69 ">Customize Application</td>

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

Before you begin, [Set up Agentforce for cart operations](https://help.salesforce.com/s/articleView?id=ind.comms_set_up_agentforce_for_cart_operations.htm&release=264.0.0&type=5 "To give sales reps and other users access to the powerful generative AI features, invocable methods, and flows across Communications, Media, and Energy & Utilities managed package, admins must set up Agentforce, invocable methods, and deploy Agentforce static resource files. Sales reps can work with the invocable actions and flows provided in Communications, Media, and Energy & Utilities managed package.").

1. From Setup, in the Quick Find box, enter Agent and select **Agentforce Agents**.
2. To open an existing agent, select an agent, and click **Open in Builder**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)
    
    Note To create an agent, click **New Agent**.
3. To create a subagent, click **New**, and select **New Subagent**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)
    
    Note To add a subagent from the asset library, click **New** and select **Add from Asset Library**.
4. Enter the subagent label, description, scope, and instructions based on your business requirements.
5. Click **Next**, and then select **Finish**.
6. To create an agent action by using an invocable method, open the subagent that you created.
7. On the This Subagent’s Actions tab, click **New**, and select **Create New Action**.
8. On the Create an Agent Action page, select **Flow** as the reference action type and select the flow for reference action.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)
    
    Note To see flows, make sure that you’ve [Set Up Agentforce for Cart Operations](https://help.salesforce.com/s/articleView?id=ind.comms_set_up_agentforce_for_cart_operations.htm&release=264.0.0&type=5 "To give sales reps and other users access to the powerful generative AI features, invocable methods, and flows across Communications, Media, and Energy & Utilities managed package, admins must set up Agentforce, invocable methods, and deploy Agentforce static resource files. Sales reps can work with the invocable actions and flows provided in Communications, Media, and Energy & Utilities managed package.").
9. Click **Next**.
10. Select **Require input** for parameters to get input from the user.
11. To show the response in conversation, select **Show in Conversation** for the output parameters.
12. To save your changes, click **Finish**.
13. To use agent actions, enter the instructions based on your requirements in the conversation preview.

#### See Also

- [Call an Agent from a Flow or Apex Class](https://help.salesforce.com/s/articleView?id=ai.agent_custom_invocable_action_flow_apex.htm&language=en_US)
- [Create a Custom Agent Action](https://help.salesforce.com/s/articleView?id=ai.copilot_actions_custom.htm&language=en_US)