Who you need
Line these up before you start. With them in place, you can do the rest on your own.Connect your Salesforce org
Your Salesforce administrator does these steps, signed in to TrustAI. It helps to have your org open in another tab of the same browser, so you can copy its address.- Click your workspace name at the top left, then Settings. In the left menu, under Workspace, click Connectors. You should see: Workspace connectors, with an Add connector button above a table with the columns Connector, Type and Status.
-
Click Add connector. In Add a connector, under What to connect, click Salesforce org.
You should see: Set up Salesforce org, with a Name field and a My Domain field, and the
buttons Back, Cancel and Authorize in Salesforce. Name already says
Salesforce org. -
Fill in the form:
- Name: a name you’ll recognise, such as
Example sandbox. It’s what the connector is called in TrustAI’s lists. If you connect more than one org, the names tell them apart. - My Domain: the address you sign in to Salesforce at, such as
example--uat.sandbox.my.salesforce.com.
- Name: a name you’ll recognise, such as
- Click Authorize in Salesforce. If you’re already signed in to the org in this browser, you may not see Salesforce at all: the page goes blank for a moment and TrustAI comes straight back. You should see: the button shows Checking…, then the page Setting up Salesforce org. It lists what TrustAI does in your org, step by step, from Sign in as the admin and Check the admin can deploy to Check the Connector signs in, and ticks each step when it’s done. TrustAI says This usually takes about a minute and “You can leave this page, and setup keeps running.”
- Wait until every step has a tick. You should see: All 8 steps done and a green box: Salesforce org is connected. A moment later, TrustAI takes you back by itself. (There is also a Continue button.) Your connector is then listed under Connectors with the type CRM agent and a tick under Status.
Add the org to a project
-
In the left menu, click + next to Your projects, then New project. Enter a Project name and
choose a Project type:
- Agent evaluation tests an AI agent. See agent evaluation.
- Functional testing tests a Salesforce app in a browser. See functional testing.
- Agent evaluation only: point at the project’s name in the left menu, click the ⋮ button that appears beside it, then click Project settings. Under Connectors, find your org’s row and click its + button, then Agent. In Add an agent to …, enter a Name, choose your agent under Agent, and click Add. Then click the ⋮ button beside the agent and click Make the default agent. You should see: under Agent, the dialog says “Discovered in” and your connector’s name. After you click Add, your agent is listed under your org’s row. Once it’s the default agent, a star appears beside it. Point at the star: “Default agent. All scenarios talk to” your agent “unless they pick another agent.” If the + menu offers only User, TrustAI doesn’t know your org’s agents yet. Contact Provar to add your agent. A functional testing project doesn’t need this step. Skip it.
Get a first result
A new project steers you to write a requirement first. Follow it: one requirement, one scenario or test under it, and one run.-
On Add your first requirement, click New requirement. Enter a Name, such as
Decline to delete a Case, and say what must happen in Description (Markdown) (optional). Click Create requirement. You should see: your requirement in the list with an ID likereq-1and the result Not evaluated. The requirement also opens beside the list, marked Never evaluated. - With the requirement open, click the + button named New scenario (agent evaluation) or New test (functional testing). Point at a button to see its name. Leave Create new selected. Give it a Name, and in Description, say in your own words what should happen. Click Generate scenario or Generate test. You should see: TrustAI writes a draft and shows it for you to review. A scenario draft has a simulation prompt and expected outcomes.
-
Read the draft, then click Save scenario or Save test.
You should see: the new scenario (an ID like
scn-1) or test (an ID liketst-1) under your requirement, marked Not evaluated. For a test, Test saved also appears, with an Open test button. -
Open the scenario or test, then click the run button (▷) at the top right.
- Agent evaluation: Run & evaluate scenario opens. Leave Attempts per scenario at 1 and click Run & evaluate. The scenario talks to your project’s default agent.
- Functional testing: Run test opens. Under This will run, it shows 1 test and 1 test run. Click Run 1 test. The test signs in to Salesforce with your connector’s admin account: on the test’s Definition tab, Signs in as says “The connection admin.”
- Wait for the run to finish, then open your scenario or test from the run. You should see: the run’s result, such as Passed, Failed or Needs review (a scenario result’s header says Pass or Fail). For a scenario, the conversation sits on the left and each expected outcome’s verdict on the right. For a test, a step-by-step replay opens, and a failed test shows Why it failed at the top.
If something goes wrong
Next
- Onboarding: what to prepare and how onboarding with Provar works.
- Create a project
- Write requirements
- Create a test
- Run tests and read results