Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Troubleshoot Flow Errors with Agentforce (Beta)

Troubleshoot Flow Errors with Agentforce (Beta)

Use Agentforce to troubleshoot design-time issues in saved flows and run-time errors in active flows, eliminating the need for manual troubleshooting. The Flow Automation agent diagnoses issues, identifies root causes, and explains remediation steps all in natural language. In some situations, the Flow Automation agent can automatically fix the flow for you.

Required Editions

Available in: Lightning Experience
View supported editions.
This feature requires the Foundations or Agentforce 1 editions. To purchase, contact your Salesforce account executive.
Note
Note Ask Agentforce is a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.
User Permissions Needed
To debug a flow in Flow Builder: View All Data
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: Manage Flow

Before you debug flows with Agentforce, turn on Generative AI in Setup, and verify that you’ve provisioned and enabled Data 360 in your org.

Set Up Agentforce (First-Time Use)

Before you can use Ask Agentforce to troubleshoot flow errors, complete these one-time setup steps.

  1. Turn on Einstein Generative AI in Setup.
  2. Provision and turn on Data 360.
  3. From Setup, in the Quick Find box, enter Agentforce Agents, and then select Agentforce Agents, and then turn on Agentforce.
  4. Open any flow in Flow Builder, click The Einstein icon, and click Migrate to Agentforce.
    The Migrate to Agentforce button in the Einstein panel
  5. In the Migrate to Agentforce window, click Migrate.

Migrate to the Updated Flow Automation Agent

If you previously used the Agentforce side panel for flows, deactivate and delete your existing Flow Automation Agent before migrating to the updated version.

  1. From the App Launcher, enter Agent, and then select the Agentforce Studio app.
    Agentforce Studio opens with a list of agents.
  2. Click the agent's name.
    The agent opens in Agentforce Builder.
  3. Deactivate the agent.
  4. Go back to the list of agents.
  5. From the more actions dropdown for the Flow Automation Agent, select Delete (2).
  6. Open any flow in Flow Builder, click The Einstein icon, and click Migrate to Agentforce
  7. In the Migrate to Agentforce window, click Migrate.

Diagnose and Fix Flow Errors with Ask Agentforce (Beta)

Use Ask Agentforce (Beta) to identify the root cause of errors in a saved or failed active flow and apply fixes automatically or with guided steps.

  1. Open the flow in Flow Builder, and then click Debug.
    This option is available for screen flows, prompt flows, and Data Cloud-triggered flows. For autolaunched and record-triggered flows, use Test Mode instead. See Testing Your Flow in Test Mode (Beta).
  2. Set the debug options, and then click Run.
  3. From the debug details panel, click Ask Agentforce (Beta) and turn it on.
    The Ask Agentforce (Beta) button in the debug details panel
  4. Review the AI-generated root cause analysis (1).
  5. Fix the error by using one of these options:
    1. If the agent can automatically fix the flow, click Fix issue (2). The agent updates the flow on the canvas.
      The root cause analysis section and the Fix issue button in the Agentforce panel
    2. If the agent can't fix the flow, follow the remediation steps and make the changes manually.
  6. Save the updated flow as a new version.
  7. To verify the fix, click Debug again.
 
Loading
Salesforce Help | Article