Salesforce Authentication

Salesforce integration is managed through the Vonage API Dashboard. Once configured, it becomes available directly in AI Studio via the Salesforce node.

To get started, you first need to create a Salesforce External Client App. See How to create a Salesforce External Client App for full instructions.

Set up the integration in the API Dashboard

Once your external client app is created, complete the setup in the Vonage API Dashboard.

  1. Log in to the Vonage API Dashboard and make sure you are in the correct client account.

  2. Navigate to Build > Tools and Solutions > Integrations > Credential Storage.

  3. Select Connect with Salesforce via OAuth.

  4. Enter the following details:

Field
Description

Name

A label you select when using this integration in AI Studio. If you have multiple Salesforce environments, use a name that reflects the environment, for example, Salesforce Production or Salesforce QA.

Consumer Secret

The Consumer Secret from your Salesforce external client app.

Consumer Key

The Consumer Key from your Salesforce external client app.

Domain

Your Salesforce org's unique subdomain. Enter the domain only, without the https:// prefix. For example, yourcompany.my.salesforce.com.

DNS errors

If you get DNS errors when trying to authorise, check that you are using the correct domain. For example, some orgs require yourcompany.develop.my.salesforce.com instead of yourcompany.my.salesforce.com.

  1. Click Connect with Salesforce OAuth. You are redirected to Salesforce to approve access.

  2. Click Allow. On success, a confirmation page states that the OAuth connection has been completed.

  3. Your integration now appears in the list of available credentials in AI Studio.

Use the Salesforce integration in AI Studio

Once the integration is set up in the API Dashboard, it is available in your virtual assistant flows via the Salesforce node.

  1. In your virtual assistant, navigate to Integrations and add a Salesforce node.

  2. The node automatically retrieves the integrations configured in the API Dashboard for the current account.

  3. Select the integration you want to use from the dropdown.

  4. Configure your query within the node and test the request.

The Salesforce node manages authentication internally. You do not need a separate authentication node or token parameter. You can switch between different Salesforce environments (for example, production and sandbox) by selecting the appropriate credential from the dropdown.

Integrate with a Salesforce sandbox environment

Sandbox environments

Currently, the recommended method for integrating with Salesforce sandbox environments is via Webhook.

Use the following configuration:

Method

POST https://your-tenant-domain.my.salesforce.com/services/oauth2/token

Headers

HTTP Header
Value

Content-Type

application/x-www-form-urlencoded

Query parameters

Parameter
Value

grant_type

password

client_id

Your Consumer Key

client_secret

Your Consumer Secret

username

Your API username

password

Your API user's password

Response mapping

Object path
Parameter

access_token

$SF_ACCESS_TOKEN (or the parameter where you want to store the token)

Troubleshooting

For error tracking, see the following Salesforce documentation:

Last updated

Was this helpful?