πŸ‡ΊπŸ‡Έ
Dapta Docs
πŸ‡ΊπŸ‡Έ English
πŸ‡ΊπŸ‡Έ English
  • πŸ‘‹Dapta
  • Fundamentals
    • πŸ› οΈHow to create an account in Dapta?
    • πŸ”‘How to recover your password?
    • πŸ’°How Credits Work in Dapta
    • πŸ˜€Add team members
    • 🏒Create projects in Dapta
  • AI Voice Agents
    • πŸ‘¨Creating a Voice Agent
    • πŸ“žHow to set up your AI Voice Agent
      • πŸ“„Improving your prompts
      • πŸ“„Using dynamic variables
      • πŸ“„Improving pronunciation
    • βœ…Verifying phone numbers in Dapta
    • How to add a Phone Number for Testing in Dapta
    • πŸ“£How to create your first campaign in Dapta
    • 🧩Integrating and activating your AI calls easily
    • πŸ’‘Extracting Information from your Calls
      • πŸ€™Extract AI Call Variables to a Google Sheets Template
    • πŸ’‘Advanced Guide: AI Call Integration Templates and Google Sheets
    • How to Automatically Schedule Appointments with Your AI Voice Agent
    • Inbound Calls and How to Activate Them
  • AI Text Agents
    • πŸ€–How to create your first text Agent
    • πŸ’‘Setting up your first text agent
    • πŸ§ͺTesting your AI Agent
    • βœ…How to embed your AI Agent to your website
    • πŸ•‘Viewing Your AI Agent's Chat History
  • Flow Studio
    • πŸ€“Understanding the basics of AI integrations
    • πŸ€–Creating a New Flow in Flow Studio
    • πŸ”‘Setting Up Triggers in Flow Studio
    • Nodes
      • πŸ“žDapta Phone Call
      • πŸ“Get a Record from Hubspot
  • Integrations
    • πŸ“©Gmail
    • πŸ”’Google Sheets
    • πŸ“†HubSpot Private App Setup
    • πŸ“„Notion
    • πŸ”§Salesforce
    • πŸ“ŠSlack
    • πŸ”©Zoho
Powered by GitBook
On this page
  1. Integrations

Salesforce

How to connect Dapta and Salesforce

PreviousNotionNextSlack

Last updated 4 days ago

The Salesforce integration is an integration process that requires several setup steps in Salesforce before any connection or configuration in Dapta. These steps go as follows:

Open Setup

Open your Salesforce account and go to the settings configuration on the top right with the tool icon.

Application setup

Go to β€œPlatform tools” and to the section called β€œApp management” if you have this in English or β€œGestor de aplicaciΓ³n” in Spanish

New application

Click on create new application. It’ very important that if you get two options for the creation, you go with β€œNew connected app” and then with β€œCreate a connected application”

Dapta URL

Once you’re on this screen, make sure you fill out with the Dapta required information.

For the name, you can go with anything that helps you identify the app. Something like β€œDapta conector” is recommended. Ad for the email you can set your own so that you can get any inconsistency emails from Salesforce

Permission set

Once you have set that up, go ahead an check the permissions that are needed. For this type of integration, it’s really important to set the permissions to set the permissions to β€œFull access” so that we can perform READ AND WRITE operations via the Salesforce API.

It’s also important to check the options for β€œActivate the OAuth configuration”, β€œRequire secret” for both web server and token update. And also require key for β€œPKCE”

The final step for this is checking these four options:

These options are β€œActivate the client credential flow”, β€œActivate the flow for authorization and credentials”, β€œRequire user credentials at the POST body for the authorization and credential flow” and β€œEmit access token based on JSON web tokens β€œJWT” for named users. These will allow us to connect via the Salesforce API. Once you hit on save, this will create the application

Execute as admin user

Once the app has been created you can go to the β€œModify” option at the top three options and go to the β€œConnected app manager option”

THIS IS VERY IMPORTANT. Make sure you mark the option for β€œExecute as” and you TYPE YOUR USERNAME. This is not very intuitive but you have to type the user name that appears on your Salesforce account at the top right

Make sure you type it just as it appears on the platform. If you don’t complete this step, the connection will not work.

Make sure you also type your user name at the β€œClient credentials” flow section

Request the auth token

Once the app has been created, make sure you go to β€œManage” and select the option to β€œManage” at the β€œkey and consumer secret”.

This will provide you with the β€œconsumer key” and the β€œclient secret”

Perform the API requests

Once you have all of the information you can proceed to completing requests via Dapta.

The first thing you’re going to need is a custom API node with a POST method that requests the Salesforce token like this.

Make sure you replace β€œYOURCOMPANYDOMAIN” with your actual company domain and add the following body that will contain the credentials you extracted on previous steps

This post method will generate a token with which you are going to be able to perform any get or post request by adding it to the header as a Bearer token.

Recommendations

Salesforce’s API allows you to do Queries based on an SQL format so if you want to search for particular information you can do so by setting the following body at the previously exemplified Endpoint

If you want to post information, be that updating objects or creating new ones, you can use regular PATCH and POST methods with the information structure that you have on your CRM

πŸ”§