Salesforce
Interact with your Salesforce CRM with Relevance.
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.
1. How to connect your Salesforce account
To add Salesforce as an integration, all you need to do is sign-into your Salesforce account via the integrations page:
- Go to the “Integrations” page in the sidebar.
- Click on “Salesforce”.
- Click on the Add Integration button.
- Sign-in to your Salesforce account.
- Click “Allow access” to Relevance AI.
2. Setup Salesforce as an Agent Trigger
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.
Add a Salesforce trigger to your agent.
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:
Pull 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”.
SELECT Id, Name, Email, Phone, AccountId, Account.Name, Title
FROM Lead
WHERE Relevance_Outreached__c = true
Now, any new Leads that are added to the CRM since the last time we checked that meet the query conditions, will be sent to the agent.
-
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.
3. 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.
3.0. Use Salesforce API tool-step
You can build custom tools that perform Salesforce activities, by using the Salesforce API Call tool-step:
- Create a new tool.
- Scroll down to Tool-steps.
- Add Salesforce API tool-step.
- Select your connected Salesforce account in the dropdown.
Below are examples of common Salesforce activities your agents can perform.
3.1. Get an existing Contact’s details.
3.2. Create a new Lead.
3.3. Create a note (e.g. lead qual research).
3.4. Create a task
3.5. Mark a task as complete
4. Remove Salesforce integration
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:
- Go to the “Integrations” page from the sidebar
- Select Zoom from the list
- Click ”…” on the account you want to remove
- Click remove