Skip to main content

Hi all,     I am investigating if we can be using Agentforce to support/replace the BAT done by our business on minor releases.     From what I can see it should be possible with Prompts or similar?     Whenever I google and search they say "yes it is possible" and then guide me towards "how to test Agent AI".    

1 answer
  1. Apr 11, 11:45 AM

    Great question, Chris! Yes, Agentforce can absolutely be used to support or augment Business Acceptance Testing (BAT) on minor releases, though it works differently from traditional automated test frameworks. 

     

     

    Here is how Agentforce can help with BAT: 

     

     

    . Agentforce Testing Center - Salesforce provides a dedicated Testing Center within Agent Builder where you can define test scenarios using natural language. You can create test cases that simulate user conversations and validate that your agent responds correctly to expected inputs and edge cases. 

     

     

     

    2. Prompt Templates for Regression Scenarios - You can use Prompt Builder to define structured prompt templates that represent your BAT scenarios. These can be versioned and re-run after each release to confirm agent behavior has not regressed. 

     

     

    3. Einstein Copilot / Agent Actions Testing - If your agents invoke custom Apex actions or flows, you can combine standard Salesforce testing (Apex tests, Flow testing) with Agentforce conversation-level testing to get end-to-end coverage. 

     

     

     

    4. Bot Preview and Evaluation - During releases, use the agent Preview panel in Agent Builder to manually walk through critical user journeys before promoting to production. 

     

     

     

    Current Limitations to Keep in Mind: 

     

     Agentforce Testing Center does not yet support fully automated CI/CD pipeline integration out of the box (as of Spring 25). 

    - For complex multi-step BAT scenarios, you may still need to complement with manual testing or third-party tools. 

     

     

     

    ecommended Steps: 

     

    1. Go to Setup, search for Agents, open your agent in Agent Builder. 

    2. Click the Testing tab and create test cases for your key release scenarios. 

    3. After each minor release deployment, re-run those test cases to validate behavior. 

     

     

    This gives you a repeatable, documented BAT process that leverages the AI agent natively. 

     

     

    Mani G | Principal/Founder |

    https://Keneland.com

0/9000