---
schema_version: "1"
id: 403d45cd36a47660b6ac1eddcdb99e26b1031fcc7e2a85e92bbc90b854d425da
title: Evolve a Flow with Agentforce (Beta)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/automate_flow_build_evolve_flow_with_einstein.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.automate_flow_build_evolve_flow_with_einstein.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6f7d9abb9005849e15d2454183f8e13d008af61cba73886b1c09613391f92fe8
description: Improve and modify your existing flows by using natural language in the Agentforce panel. Through conversational prompts, add new elements, update properties and conditions, and remove outdated components.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Evolve a Flow with Agentforce (Beta)

Improve and modify your existing flows by using natural language in the Agentforce panel. Through conversational prompts, add new elements, update properties and conditions, and remove outdated components.

### 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;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">This feature requires the Foundations or Agentforce 1 editions. To purchase, contact your Salesforce account executive.</td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note Evolve a Flow with Agentforce is a pilot or beta service that is subject to the Beta Services Terms at [Agreements - Salesforce.com](https://www.salesforce.com/company/legal/agreements/) or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the [Product Terms Directory](https://ptd.salesforce.com/). Use of this pilot or beta service is at the Customer's sole discretion.

<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:left;vertical-align:top;" id="d216217e91">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d216217e91 ">To open, edit, create, activate or
              deactivate a flow using all flow types, elements, and features available in Flow
              Builder, including Einstein and Agentforce for Flow:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d216217e91 ">Manage Flow</td>

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

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note You don't need to be an admin to have the Manage Flow permission. Ask your admin to add it to your profile or permission set.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note Flow evolution with Agentforce supports record-triggered, screen flows, schedule-triggered flows, external system change-triggered flows, and flows that use connectors as actions. Creating and evolving external system change-triggered flows and flows that use connectors as actions requires specific MuleSoft for Flow user permissions and licenses. See [Create MuleSoft for Flow: Integration Flows with Agentforce](https://help.salesforce.com/s/articleView?id=platform.automate_flow_build_create_and_evolve_integration_flows_with_agentforce.htm&type=5&language=en_US).

Flow evolution works with AI-generated flows, manually created flows, and previously saved flows, maintaining context throughout your modification session.

## Set Up Agentforce for Flow Evolution

Complete these one-time setup steps before you use Agentforce to evolve flows.

1. Turn on [Einstein Generative AI](https://help.salesforce.com/s/articleView?id=ai.generative_ai_enable.htm&type=5&language=en_US) in Setup.
2. Provision and turn on [Data 360](https://help.salesforce.com/s/articleView?id=data.c360_a_setup_provision.htm&type=5&language=en_US).
3. From Setup, in the Quick Find box, enter Agentforce Agents, select **Agentforce Agents**, and then turn on Agentforce.
4. From Setup, in the Quick Find box, enter Process Automation Settings, and then select **Process Automation Settings**.
5. Select **Agentforce flow automation (Beta)** and save the settings.
6. Open any flow in Flow Builder, click ![The Einstein icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/automate_flow_build_einstein.png), and click **Migrate to Agentforce**.
    
    ![The Migrate to Agentforce button in the Einstein panel](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/flow_builder_migrate_to_agentforce.png)
7. In the Migrate to Agentforce window, click **Migrate**.

## Request Flow Modifications

Open your flow in Flow Builder and describe the changes you want Agentforce to make.

1. Open the flow that you want to modify in Flow Builder.
2. Open the Agentforce panel if it's not visible.
3. In the Agentforce panel, describe the modification you want to make to your flow. Write clear, specific instructions about what you want to change. For example:
    
    - "Add a decision element to check if the opportunity stage is Closed Won"
    - "Update the email template used in the Send Email action"
    - "Remove the loop element that processes inactive accounts"
    - “Modify this flow to show the user an overview of the updated contact record and ask for confirmation before updating the email address”
    
    The Flow Builder canvas shows the modified flow.
    
    ![The Agentforce panel with the request for flow modification and the option to accept or reject the changes](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/automate_flow_build_evolve_screen_flow.png)

## Review and Validate the Evolved Flow

Inspect the AI-generated changes on the Flow Builder canvas, and confirm that the flow works as expected before you activate it. A flow comparison view shows the differences between the previous and current versions.

1. Review the changes. To approve them, click **Accept Changes**. To request further modifications, click **Reject Changes**.
2. Test and validate your evolved flow.
    1. Debug the flow to make sure that the modifications work as expected.
    2. Check each modified element for accuracy and proper configuration.
    3. When you're satisfied with the changes, save and activate the flow.