Loading
시스템 관리자에 대한 피싱 방지 MFA 및 전 직원사용자 MFA 적용 안내 더 많이 읽기
Automate Your Business Processes with Salesforce Flow
Generate Test Scenarios with Agentforce for Flow

Generate Test Scenarios with Agentforce for Flow

Skip the manual setup and use Agentforce to draft your test scenarios from the command line, without opening Flow Builder. Generate comprehensive test scenarios for a record-triggered, autolaunched, or Data Cloud-triggered flow, including success, fault, and edge-case paths.

Required Editions

View supported editions.
User Permissions Needed
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

To use Agentforce for Flow in Agentforce Vibes, you need the Agentforce Platform Developer and Admin permission set license, and the Agentforce Developer and Admin Tools permission set assigned to your user.

Before you begin, connect your AI terminal to your Salesforce org.

Creating comprehensive test scenarios for complex flows manually is time-intensive and error-prone. Agentforce for Flow Headless automatically analyzes your flow's structure, decision outcomes, and required fields to draft comprehensive test scenarios. By letting Agentforce for Flow Headless generate your test scenarios, you can:

  • Ensure comprehensive coverage across success, fault, and edge-case paths.
  • Reduce manual effort and potential logic gaps with pre-populated field values and precise assertions.
  • Scale your testing strategy by integrating AI-generated test scenarios directly into your CI/CD pipelines.
  1. In your Salesforce-connected terminal, open your AI tool.
  2. Ask your AI tool to find your flow.
  3. Tell your AI tool that you want to update that flow.
  4. Enter this prompt.
    create flow tests
    Agentforce for Flow Headless analyzes your flow and logic branches, and returns a structured list of proposed test scenarios in your console.
  5. Review the proposed test scenarios in your chat.
  6. Approve the proposed test scenarios.
    Agentforce for Flow Headless builds the test scenarios, adds them to your flow, checks that they're valid, and runs them.
  7. To review the test scenarios in Flow Builder, open the URL provided in your terminal.
 
로드 중
Salesforce Help | Article