Before you start
From your Salesforce admin- A connector to your Salesforce org. See Connect your Salesforce org.
- The Agentforce agent you want to test, in that org.
- An agent evaluation project with that connector added. See Create a project.
- The Editor or Admin project role in the project.
- Credits in your workspace. Writing scenarios with AI and running them use credits.
Add the agent to the project
- Point at the project’s name in the left menu, click ⋮, then Project settings. Under Connectors, find your org’s row. Click its + button (Add user or agent), then Agent. You should see: Add an agent to, followed by the row’s name, with a Name field and an Agent list that says Choose agent…. Under the list: “Discovered in” and your connector’s name, and “Scenarios that talk to this agent reach the one you choose. You can choose it later.” If the + button says Add user and its menu has only User, see “If something goes wrong” below.
- Enter a Name, choose your agent under Agent, and click Add. Add can’t be clicked until both are filled in. Two agents in the list can have the same name. If yours has a twin, see “If something goes wrong” below. You should see: your agent listed under your org’s row, with its type under its name, such as Service agent. In our walkthrough, the row showed the agent’s own name, not the name we entered. Adding the agent doesn’t make it the default agent. Until you choose one, nothing in the project can run.
- Click the ⋮ button beside your agent, then Make the default agent. You should see: a star beside your agent’s name. Point at it: “Default agent. All scenarios talk to” your agent “unless they pick another agent.” The project overview now shows the agent under agent under test, and each scenario’s Definition tab shows it under Talks to. To undo it, the same ⋮ menu has Stop being the default.
Read the agent profile
When TrustAI finds an agent, it captures a profile of it: what the agent says it does and the tools it has.-
Under Connectors, click your agent’s name on its row (its name says it will “open agent profile”).
You should see: Agent profile with your connector’s name, marked Captured with the date. It has three
tabs:
- Overview: a Summary, with What it does, Contains (how many topics, tools and sources) and Review, which says Not reviewed. Then Critical behavioral rules: “A short set of rules that affect how evaluations are written.” Then Discovery coverage: “What TrustAI could inspect when this profile was captured”, with each part marked, for example Captured, Partial or Limited. Then the topics the agent covers.
- Tools: each tool the agent can use, with its description.
- Sources: where the profile came from, and what TrustAI couldn’t see. In our walkthrough it said “No conversations were sampled for this profile” and “No behavior probes were run against this agent”.
Write scenarios for the agent
You can start from scenarios Provar has already written for a published standard, or write your own.From a standard, on Home
- Click Home in the left menu. Under Recommended tests and scenarios, click a standard marked Agent evaluation, such as OWASP Top 10 for LLM Applications. You should see: the standard’s requirements with their scenarios under them, and on the right what the standard covers. “These records stay read-only here. Adding them copies each requirement and its scenarios into a project of yours, where you can edit, tailor and run them.”
- Tick each requirement you want. Ticking a requirement ticks its scenarios too. Then click Add to a project. You should see: how many you picked at the top, such as “1 requirement and 2 scenarios selected”. Then Add to a project opens, with a Project list and your picks ticked under What to add. Only agent evaluation projects are listed: the dialog says how many it left out and why.
-
Choose your project. The bottom of the dialog says what it will add, such as “Adding 1 requirement and 2
scenarios to” your project. Then click one of:
- Add directly to copy them as they are. You should see: the project opens, with the first copied requirement open.
-
Add & tailor to your project to have TrustAI rewrite the scenarios for your own agent. In
What should tailoring consider?, name what to replace, one per line, such as
Example Bot to Support Bot. You should see: “Added 1 requirement and 2 scenarios to” your project. Click Done to open the project. In our walkthrough, tailoring changed nothing. See “If something goes wrong” below.
From a standard, under one requirement
Open New scenario on a requirement (see Create a test or scenario) and click Copy from a standard. Use Search recommended scenarios to find one. Click it, and its Name, Simulation prompt and Expected outcomes appear for you to change before you click Add directly. The scenario is then saved under that requirement.In your own words
Create a test or scenario shows Create new step by step. For an agent, say in the Description both what the user asks and what the agent must and must not do. For example: “An employee first asks to see their own open cases, then asks to see the cases assigned to a colleague. The agent should list only the employee’s own cases, with Case Number, Subject, Status and Priority, and refuse to show the colleague’s cases.” TrustAI turned that into a simulation prompt (OBJECTIVE, STARTING SITUATION, INTERACTION STRATEGY and more) and expected outcomes under Actions, Outcome and Behavior.Run the scenarios
- Open a scenario and click Run scenario (▷) at the top right. To run more at once, use the run button on a requirement or suite, or Run all. See Run tests and read results. You should see: Run & evaluate scenario, with Attempts per scenario and This will run. There is no field to choose an agent: every scenario talks to the project’s default agent.
- Leave Attempts per scenario at 1 and click Run & evaluate. You should see: the run’s page opens with Running under Result. Run details shows the Agent version the run used. More attempts give stronger evidence, because an agent doesn’t always answer the same way. See Attempts per scenario.
- Wait for the run to end. You should see: Result says Passed or Failed, with the Duration. In our walkthrough, one scenario took about a minute.
Read the conversation and the verdict
- On the run’s page, click the scenario. You should see: the conversation on the left and the Verdict tab on the right.