Skip to main content
TrustAI tests your Salesforce work before your users meet it. It holds test conversations with an AI agent and grades them, or drives a Salesforce app in a browser, then shows you what passed and what failed. This page takes you from nothing to your first result.

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.
  1. 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.
  2. 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.
  3. 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.
    You should see: Authorize in Salesforce can now be clicked.
  4. 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.”
  5. 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.
You can also start from a project: in Project settings, under Connectors, click Add connector, click Choose a connector…, then click New connector at the bottom of the list, then Salesforce org. It opens the same form. When setup is done, TrustAI takes you back to the project and adds the connector to it for you: you see ”… connected and added to this project”.

Add the org to a project

  1. In the left menu, click + next to Your projects, then New project. Enter a Project name and choose a Project type: For an agent evaluation, What does this agent do? also appears. Leave Conversation if a simulated user should chat with your agent. You can’t change this later. Under Connectors, click Add connectors, pick your org, then click Create. You should see: the new project opens on Add your first requirement.
  2. 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.
  1. 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 like req-1 and the result Not evaluated. The requirement also opens beside the list, marked Never evaluated.
  2. 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.
  3. 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 like tst-1) under your requirement, marked Not evaluated. For a test, Test saved also appears, with an Open test button.
  4. 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.”
    You should see: the run starts. An agent evaluation opens the run’s page, with Running under Result. A functional test shows Queued, then Running, with a View run details link.
  5. 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.
A Failed or Needs review result is still a result: it tells you what to fix in your app, agent or test. In our own walkthrough, the functional test ended Needs review. Its check looked for the word “Accounts”, found it more than once on the page, and so couldn’t prove the result. Why it failed said so, and said the test needed changing.

If something goes wrong

Next