Salesforce is designed to help businesses manage their sales pipeline, primarily through customer relationship tracking activities. With Relevance AI, your agents can interact with Salesforce much like your human sales team would.Below, we’ll show you how to get started with the Salesforce integration, including how to connect your Salesforce account, how to trigger agentic workflows based on Salesforce events, and how to complete common CRM activities with your agents.
A trigger is an event that triggers your agent to start working. In the case of Salesforce, a trigger might be new leads added to your CRM, demos have been booked, a lead has moved down the sales funnel (e.g. Prospect -> Qualified lead) or other events unique to your sales workflows.
After you have created a new agent, you can add Salesforce as a trigger:
Open your agent settings (Agent profile tab).
Scroll down to Integrations > Triggers.
Click on Salesforce.
Select your connected Salesforce account, or sign-in if not already added via the integrations page (previous section).
Click “Allow access” to Relevance AI.
Write an SOQL query to retrieve the data you want to pull in from your Salesforce account.
Here is an example on an SOQL query that pulls in new leads:The following SOQL query pulls in Lead objects with the selected properties, where the “Relevance_Outreached__c” custom object has been set to “true”.
Advanced option (Optional): Specify a frequency, which is how often you want to fetch data from Salesforce. If you don’t specify a frequency, it’ll check every 1 minute.
Set a Cadence (Optional): Specificy a cadence, which is how often one of the items fetched from Salesforce triggers the agent (if 100 new leads are added, you might not want your agent to outreach to them all the same day, especially if you’re in the middle of warming up your inboxes). The rest will wait in a queue.
Get your agent to complete common Salesforce activities
Once your account is connected, you can use the Salesforce API call step in the Tool builder. This tool step allows you to complete Salesforce-specific activities, like managing Leads, Contacts, Notes, Tasks and more.
You can remove Salesforce as a Trigger in your agent settings, by clicking the three dots next to your connected account, and then “Remove”.If you want to remove the Salesforce integration completely, you can: