Documentation

Looking for something in particular?

Automation V3: Simplified Agentforce Agent API Testing

Overview

Provar introduces enhanced Agentforce API Testing  by significantly expanding automation coverage for conversational and agent-driven workflows.

These APIs allow users to test and interact directly with Agentforce agents, making it easier to validate conversational flows and end-to-end business processes that depend on agent interactions. Whether you’re testing an individual agent or a broader end-to-end workflow involving agents, Provar provides a streamlined and efficient approach.

With built-in support for Agent APIs, you can:

  • Interact with agents via API using simple Test Steps
  • Validate responses and conversational logic at the step level
  • Automate complex agent-driven workflows without UI dependency

This approach reduces execution time, improves reliability, and removes traditional challenges associated with testing conversational systems.

Benefits

Simplified Agent Interaction via APIs
Easily interact with Agentforce agents using ready-to-use API steps within Provar—no custom setup or workarounds required.

Streamlined Test Design
Agent interactions are broken down into intuitive test steps, making it easier to design, maintain, and scale test cases.

Improved Stability and Consistency

  • Consistent API behavior ensures reliable agent communication
  • Stabilized session handling for predictable execution
  • Reduced dependency on UI-based automation

Enhanced Validation Capabilities
Support for richer response structures, and flexible assertion options enables more robust validation of agent behavior.

REST-Based Integration
Seamless integration using Salesforce standard REST connection for Agents allows easy configuration and execution within existing Provar environments.

Automatic Agent Discovery (Permission-Based)

As an added advantage, Provar can automatically fetch the list of available agents from the Salesforce org, based on the permissions of the connected user, simplifying agent selection and reducing manual effort.

 Using Test Agent APIs

  1. Create a new REST webservice AgentConnection. For more information on how to create a REST web service AgentConnection in Provar, see REST Web service Connection

For Agent Connected App Configuration, refer to Salesforce Agent APIs documentation

Fig: Snapshot of REST web service AgentConnection. 

Follow Agent Connected App reference: Salesforce Agent APIs            

  1. Open your test case and in the Test Palette navigate to the Provar AI section.
  2. From the Provar AI section, you make use of the following Test Agent APIs
  • Agent Session Service 
  • Agent Conversation Service

Fig: Snapshot of Test Agent APIs in Test Palette  

  1. Initiate a session with an Agent Session Service API.
  1. In the General Parameters section:
  • Agent Connection Name – Enter a name for your AgentConnection.
  • Agent ID – Select the Agent ID for the Agent for which you want to initiate the session.

Note: If the drop-down doesn’t have a value then Switch to Expression Editor and pass the AgentID.

  1. In the Agent Conversation Service API, enter the user message. 
  1. Execute the test and review the enhanced response formats in the output.
  1. You can select the End Session checkbox to terminate the session.

Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top