> ## Documentation Index
> Fetch the complete documentation index at: https://docs.provar.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Start here

> Who you need, how to connect your Salesforce org, and how to get your first result.

TrustAI tests your Salesforce work before your users meet it. It holds test conversations with an AI
[agent](https://docs.provar.dev/glossary.md#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](https://docs.provar.dev/glossary.md#result).

## Who you need

Line these up before you start. With them in place, you can do the rest on your own.

| Who or what | Why |
| - | - |
| **A Salesforce administrator** | They connect your [Salesforce org](https://docs.provar.dev/glossary.md#salesforce-org) to TrustAI. They fill in TrustAI's [connector](https://docs.provar.dev/glossary.md#connector) form and click **Authorize in Salesforce** while signed in to your org, then wait while TrustAI sets itself up there. Before they connect, check they have the [Salesforce permissions](https://docs.provar.dev/salesforce-permissions.md) TrustAI needs. |
| **A Salesforce sandbox** | Connect a sandbox, not your production org. [Tests](https://docs.provar.dev/glossary.md#test) act on real records: in our own walkthrough, a functional test created an Account and deleted it again. Provar advises a sandbox that holds masked or made-up data. |
| **A security or IT approver**, if your company requires one | Some companies must approve any new tool before it connects to Salesforce. Ask early, so approval doesn't hold up the day you connect. |

## 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](https://docs.provar.dev/glossary.md#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](https://docs.provar.dev/glossary.md#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

6. 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](https://docs.provar.dev/glossary.md#agent-evaluation).
   * **Functional testing** tests a Salesforce app in a browser. See [functional testing](https://docs.provar.dev/glossary.md#functional-testing).

   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](https://docs.provar.dev/glossary.md#project) opens on **Add your first requirement**.

7. **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](https://docs.provar.dev/glossary.md#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](https://docs.provar.dev/glossary.md#requirement) first. Follow it: one requirement,
one [scenario](https://docs.provar.dev/glossary.md#scenario) or [test](https://docs.provar.dev/glossary.md#test) under it, and one [run](https://docs.provar.dev/glossary.md#run).

8. 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**.

9. 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](https://docs.provar.dev/glossary.md#simulation-prompt) and [expected outcomes](https://docs.provar.dev/glossary.md#expected-outcomes).

10. 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.

11. 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.

12. 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

| What you see | What to do |
| - | - |
| **Authorize in Salesforce** can't be clicked | Fill in both **Name** and **My Domain**. |
| After you click **Authorize in Salesforce**, **My Domain** says "Enter your My Domain, such as acme.my.salesforce.com." | What you entered isn't a Salesforce My Domain address, so nothing was sent. Enter the address you sign in to Salesforce at, then click **Authorize in Salesforce** again. |
| After you authorize, TrustAI says **This org is already connected** | Your workspace already has a connector for this org, so nothing was changed. Click **Details** to see which one, then click **Open** and its name to go to it. To use it in a project, add it as in the row about a new project below. |
| You click **Cancel** on the form and see **Discard changes?** | Click **Keep editing** to go back to the form, or **Discard changes** to close it. What you entered isn't saved. |
| In a new project, your connector isn't there | Open **Project settings**. Under **Connectors**, click **Add connector**. Click **Choose a connector…**, pick your org, then click **Add**. |
| The run dialog says **Nothing can run: this project has no connectors**, or a test **can't run** because it **names no user** | Add your org to the project, as in the row above. In our check, a functional testing project with no connector showed the **names no user** message. |
| The run dialog says a scenario **can't run** because **No default agent is chosen.** | Click **Fix in project settings**, then follow step 7. |

## Next

* [Onboarding](https://docs.provar.dev/onboarding.md): what to prepare and how onboarding with Provar works.
* [Create a project](https://docs.provar.dev/guides/beginner/create-a-project.md)
* [Write requirements](https://docs.provar.dev/guides/beginner/write-requirements.md)
* [Create a test](https://docs.provar.dev/guides/beginner/create-a-test.md)
* [Run tests and read results](https://docs.provar.dev/guides/beginner/run-tests-and-read-results.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.