# Salesforce Agentforce & Flows authentication

> Connect UiPath to Salesforce Agentforce and Flows following the required Salesforce setup steps before creating a connection.

## Prerequisites

Before creating a connection, follow the steps described in [Salesforce setup for the Agentforce & Flows connector](https://docs.uipath.com/integration-service/automation-cloud/latest/user-guide/salesforce-setup-for-the-agentforce--flows-connector#salesforce-setup-for-the-agentforce-%26amp%3B-flows-connector).

Depending on the select authentication type, you need the following credentials:

* For OAuth 2.0 Client credentials: Domain, OAuth API Key, OAuth API Secret
* For OAuth 2.0 Authorization Code: Production, OAuth API Key, OAuth API Secret
* For OAuth 2.0 Password: Environment, Username, Password, OAuth API Key, OAuth API Secret
* For Personal Access Token: OAuth API Key, OAuth API Secret, JWT Base64 encoded key, Audience, Issuer, Subject

:::note
Salesforce Agentforce supports only OAuth 2.0 Client credentials authentication. Salesforce flows support all authentication types.
:::

## Add the connection

To create a connection to your Salesforce instance, you need to perform the following steps:

1. Select Orchestrator from the product launcher.
2. Select a folder, and then navigate to the **Connections** tab.
3. Select **Add connection**.
4. To open the connection creation page, select the connector from the list. You can use the search bar to find the connector.
5. Select the **Authentication type**.
6. Enter the required credentials for your preferred authentication type.

   Where available, select the menu next to a field and choose **Use credential asset** or **Use Orchestrator asset** to reference an Orchestrator asset instead of entering the value directly. For more information, see [Use credential assets for connections](credential-store-connections.md).
7. Select **Connect**.
