Your ElevenLabs agents can access customer data, manage leads, and create opportunities directly within Salesforce. You can streamline CRM processes by automatically retrieving customer information, checking for existing records, and securely creating new records like leads and opportunities. Benefits include faster customer qualification, reduced manual data entry, and enhanced customer experience through personalized interactions.
Watch the demonstration of the Salesforce & Agents Platform integration.
We lay out below how we have configured the ElevenLabs agent to manage customer relationships by using tool calling to step through the CRM process. Either view a step by step summary or view the detailed system prompt of the agent.
Configure your agent to gather customer information and identify their needs, asking relevant questions about their business requirements and current challenges.
Configure the agent to check for existing customer records by:
salesforce_search_records tool to find existing contacts, accounts, or leadssalesforce_get_record toolThis integration enhances sales efficiency by leveraging existing customer data and automating lead qualification. Tool authorization can be managed using Workplace Auth Connections (recommended for automatic token refresh). The tools are configured to return human-readable names and descriptions rather than technical IDs to improve conversation quality.
Before configuring the tools, you must set up OAuth 2.0 authentication with Salesforce using an External Client App.
https://api.elevenlabs.io/oauth/callback (or your specific callback URL)https://api.elevenlabs.io/oauth/start (required field)The Client Credentials Flow is recommended for server-to-server integrations where no user interaction is required. Ensure your Salesforce admin has enabled this flow.
Enable Client Credentials Flow:
Important: The “Run As” user determines the permissions for all API calls. Choose a user with:
Find Your Salesforce Domain: Your Salesforce domain is required for API calls. Here’s how to find it:
Method 1: Check Your Current URL (Easiest) When logged into Salesforce, look at your browser’s address bar:
https://yourcompany.lightning.force.com/https://yourcompany.my.salesforce.com/Method 2: Setup → Company Information
Method 3: Setup → Domain Management
Common Domain Formats:
https://yourcompany.my.salesforce.com (My Domain)https://yourcompany.lightning.force.com (Lightning)https://yourcompany.develop.my.salesforce.com (Sandbox)Note: Use the full domain without trailing slash for API calls.
Setup Complete: You have now created the External Client App and configured Client Credentials Flow. The Consumer Key and Consumer Secret will be used for token generation in the tool authorization step.
The integration with Salesforce employs three primary webhook tools to manage customer relationships. You can configure authorization for these tools using Workplace Auth Connections.
Fill in the following fields for your Salesforce integration:
Connection Name: Salesforce CRM
Client ID
3MVG9JJlvRU3L4pRiOu8pQt5xXB4xGZGm0yW...Client Secret
1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF...Token URL
https://your-domain.my.salesforce.com/services/oauth2/tokenhttps://mycompany.my.salesforce.com/services/oauth2/tokenScopes (optional)
full, api, refresh_tokenExtra Parameters (JSON)
Workplace Auth Connections automatically handles token refresh, eliminating the need for manual token management and improving reliability of your Salesforce integration.
Use the tabs below to review each tool’s configuration. Remember to add Workplace Auth Connection to the tool (OAuth2).
Name: salesforce_search_records
Description: Searches for existing records in Salesforce using SOQL queries. Always returns human-readable information including Names, not just IDs.
Method: GET
URL: https://your-domain.my.salesforce.com/services/data/v58.0/query/?q={soql_query}
Headers:
application/jsonQuery Parameters:
Tool JSON:
Here are some commonly used SOQL queries for the salesforce_search_records tool. It can be useful to consider this structure when customizing system/tool prompt. All queries prioritize human-readable information over technical IDs:
Test your Salesforce integration thoroughly before deploying to production. The following steps will help you validate that all components are working correctly.
After setting up your External Client App and configuring the webhook tools, test your integration to ensure everything works correctly:
Test your integration with your ElevenLabs agent:
With this integration in place, you can:
This guide details how to integrate Salesforce into our Agents Platform for comprehensive customer relationship management. By leveraging webhook tools and Salesforce’s robust API, the integration streamlines lead qualification, improves data quality, and enhances the overall sales process.
For additional details on tool configuration or other integrations, refer to the Tools Overview.