Salesforce
The Bread & Butter + Salesforce Integration & Rules allow you to automatically add or update leads in Salesforce based on user activity. You can also enable session notes to track when users visit and leave your website, giving your sales team real-time visibility into prospect engagement.
Step 1: Connect Salesforce
To set up the integration, you need to create a Connected App in Salesforce to generate your Consumer Key and Secret, and then enter them into Bread & Butter along with your Salesforce URL.
1. Create Connected App in Salesforce
- Log in to your Salesforce Developer site.
- Click your account icon at the top right and select My Developer Account.
- Note: If you don't see this, proceed to the next step. You may need to authenticate again.
-
Click the Settings (gear) icon at the top right and select Setup.

-
In the search bar in the left menu, enter External Client Apps, then select Settings.

-
Enable Connected Apps, then click New Connected App.

- Basic Information:
- For the Connected App Name (e.g., "Bread & Butter Integration").Connected App Name, we recommend using your organization or company name.
- Enter your Contact Email.
- API (Enable OAuth Settings):
- Check Enable OAuth Settings.
- Callback URL: Enter
https://api.breadbutter.io/integration_callback - Selected OAuth Scopes: Add the following scopes:
Access unique user identifiers (openid)Manage user data via APIs (api)-
Perform requests at any time (refresh_token, offline_access)
-
Check Configure ID Token.

- Check Include Standard Claims.
- Click Save.
- Note: It may take 2-10 minutes for the changes to take effect.
2. Get Credentials
- On the app page you just saved (or go to App Manager, find your app, click the dropdown arrow, and select View).
-
Under API (Enable OAuth Settings), click Manage Consumer Details.

- You may be prompted to verify your identity.
- Copy and save the Consumer Key and Consumer Secret.
- Get Salesforce URL: Click your Profile icon at the top right and copy your domain URL (e.g.,
https://yourdomain.my.salesforce.com).
3. Adjust Refresh Token Policy
- In Salesforce Setup, go to Apps > Connected Apps > Manage Connected Apps.
- Find your app and click Edit.
- Under OAuth Policies, ensure Refresh Token Policy is set to:
-
Refresh token is valid until revoked
-
- Click Save.
4. Add to Bread & Butter
- Log in to your Bread & Butter Dashboard.
- Click Automation > Integrations on the left side menu.
- Under the Integrations section, click on the Salesforce logo to create a new integration.
- Enter a Name for the integration (optional, the default name will be 'Salesforce').
- Paste the Consumer Key and Consumer Secret.
- Enter your Salesforce URL.
- Important: Ensure you include
https://at the beginning. - Enable Session Notes (Optional):
- Add note on session open: Adds a chatter post when a user arrives on your site.
- Add note on session close: Adds a summary post when they leave.
- Click Connect Salesforce.
- Follow the popup instructions to authenticate and allow access.
- Once returned to Bread & Butter, click Save & Close.
Step 2: Set up Rules
Once connected, you need to create a Rule to determine when data is sent to Salesforce.
- Click Automation > Integrations on the left side menu.
- Select the HubSpot Integration you created in Part 1.
- Under the Rules section, choose the Filter Conditions that will trigger this rule (e.g., EVENT: Email Verified, LEAD SCORE: 6,7,8,9,10). You can manually refine the filter condition, or pick from the pre-configured filters that were previously saved for your account.
- Enter a descriptive Name for the rule (e.g., 'Leads').
- Map Fields: If adding a contact: Map the Bread & Butter data fields to the corresponding Salesforce fields using the drop-down provided.
- You will see options to map Bread & Butter data fields to your Salesforce Lead fields.
- Select which Bread & Butter data points (e.g., Email, Company, UTM Source) should populate specific fields in Salesforce.
- For a full list of fields, see Field Mapping Definitions.
- Click Save & Close.
Your integration is now live! When the event occurs, the user will be added or updated in Salesforce.
Feature: Session Start and End Notes
With Bread & Butter, you can track user activity directly within Salesforce Chatter.
- Session Start: When a user visits your site, Bread & Butter checks if they exist in Salesforce. If found, it posts a note to their Chatter feed indicating they are active:

- Session End: When the user leaves, a summary note is posted detailing their visit:

This allows your sales team to see exactly when leads are engaging with your content without leaving Salesforce.
Feature: Salesforce Field Mapping
You can map detailed analytics data from Bread & Butter directly into Salesforce fields (standard or custom). This captures critical marketing data like UTM parameters, location, and device info automatically.
- User Info: Email, First Name, Last Name, Profile Image, Company
- Marketing Data: Referrer, UTM Source/Medium/Campaign/Term/Content
- Location: City, State/Province, Country, IP Address, ISP
- Tech: Operating System, Device Type, Browser
- Activity: Page View URL, Page Title, Event Name/Date
How it works: When creating a Rule, Bread & Butter fetches all available Lead fields from your Salesforce account. Simply use the dropdown menus to match the Bread & Butter data point on the left to the Salesforce field on the right.






