Skip to main content

How to Set Up Salesforce Einstein Activity Capture with Gmail

Einstein Activity Capture (EAC) syncs a sales rep’s email and calendar with Salesforce, so emails and meetings land on the right Contact or Lead without manual logging. This tutorial walks through setting it up with Gmail, from the admin configuration to a working test.

Gmail connected to Salesforce through Einstein Activity Capture
Einstein Activity Capture syncs a Gmail mailbox with Salesforce.

What Einstein Activity Capture does

EAC can sync three things between a connected mailbox and Salesforce:

  • Emails between the mailbox and your Salesforce records
  • Events (calendar meetings)
  • Contacts

Captured items appear on the record’s Activity Timeline. EAC stores the captured data outside regular Salesforce storage, so it does not count against your data storage limits.

Two addresses, two roles

Two different email addresses are involved, and it helps to keep them apart:

  • The connected mailbox (for example a Gmail account) belongs to the Salesforce user, the sales rep. EAC reads this mailbox.
  • The Contact’s email belongs to the customer. EAC matches it against Salesforce Contacts and Leads.

When mail or meetings pass between the two, EAC adds them to the Contact’s Activity Timeline.

How EAC links a connected mailbox to a Contact
The connected mailbox belongs to the rep; the customer email sits on the Contact record.

Requirements

  • A Salesforce org where you are an administrator (a Developer Edition or Trailhead Playground works for testing)
  • A Gmail account whose address matches the email on the Salesforce user. EAC only syncs when they match.
  • A second email address on a different domain for the test Contact
  • About 45 minutes, plus waiting time for the first sync

Tip: In a Trailhead Playground, use the admin user you already have. Changing usernames or user emails there is restricted, so creating extra users for this test is not worth it.

Step 1: Check that EAC is on and the connection method is Google

  1. Click the gear icon and open Setup.
  2. In Quick Find, search for Einstein Activity Capture and open Settings.
  3. On the Summary tab, under Connection to Salesforce, confirm Google G Suite with User-Level OAuth. This means each person connects their own Google account.
  4. On the Settings tab, make sure the Einstein Activity Capture switch is On.

In a brand-new org a welcome page with a Get Started button opens a setup wizard. Step 2 covers it.

The Summary tab shows Google as the connection method.
The Einstein Activity Capture switch must be On for configurations to take effect.

Warning: The menu next to the connection method may offer Reset Einstein Activity Capture. Do not use it. It wipes the setup.

Step 2: Create the configuration

A configuration decides which users are allowed to sync and what gets synced. If you see the welcome page, click Get Started and follow the wizard. If a configuration already exists, open the Configurations tab and confirm it is Active.

Walk through the setup wizard

In a new org the wizard guides you through the configuration. Here are the screens in order.

Get Started. The Einstein Activity Capture page shows a welcome screen. Click Get Started. The note about RBAC and Azure on this page applies to the Microsoft connection methods, not to Gmail.

The Einstein Activity Capture welcome screen with the Get Started button
Click Get Started to open the setup wizard.

Select your email and calendar service. Choose Google G Suite and click Next. Microsoft Office 365 and Microsoft Exchange are the other choices.

Selecting Google G Suite as the email and calendar service
Choose the service your company uses.

Step 1: Choose how users connect. User Level means each user connects their own account. The alternative, the Google Workspace Marketplace App, has users connect through your company’s app. Choose User Level and click Next.

Choosing User Level connection in the EAC wizard
User Level lets each user connect their own account.

Step 2: Name your configuration. Enter a unique name and a description, keep Active ticked, and click Next.

Naming the EAC configuration
Give the configuration a unique name and keep it Active.

Step 3: Review sync settings. Emails, Events and Contacts can each be switched on or off. Events and contacts sync in both directions by default, and the contact filter is set to All Contacts, which the screen warns can increase sync wait time. Click Next.

EAC sync settings for emails, events and contacts
Choose what to sync and in which direction.

Step 4: Advanced settings. Choose how many days of past email to include when a user first connects (30 days by default), whether to capture the entire email message or only the header, and how far back to include events (events that ended within the last 4 days by default). Click Next.

EAC advanced settings for emails and events
Advanced settings control how much history is captured.

Step 5: Choose who the configuration applies to

  1. On the Add Users and Profiles screen, change the Search dropdown from Users to Profiles.
  2. Select a profile in Available and click the right arrow to move it to Selected.
  3. Add the profile of every person who should sync. For a single-admin test, System Administrator is enough. In a production org, add the business profiles that email customers and hold meetings (for example sales, support and contract profiles).
  4. Click Next.

A configuration only allows syncing. Each user also needs the EAC permission (Step 3) and must connect their own mailbox (Step 5).

Choosing profiles for the EAC configuration
Select the profiles whose users should sync, then click Next.

Step 6: Exclude addresses

The wizard also shows an Exclude Addresses screen with three fields:

  • Customer Domains: customers or partners whose email and events should never be captured
  • Internal Domains: your own company domains. EAC ignores conversations that stay inside them.
  • Email Addresses: single addresses to exclude, separated by commas

For a test, leave all three empty and click Next. You can change them later in Setup. Finish the wizard, then check that the configuration is listed as Active on the Configurations tab.

The EAC Exclude Addresses screen
Customer domains, internal domains and single addresses can be excluded. Leave them empty for a test.

Step 7: Ready to Launch. When every step shows a green check, click Finish to enable Einstein Activity Capture.

The Ready to Launch screen of the EAC setup wizard
When all steps are complete, click Finish.
An active EAC configuration
The configuration appears as Active on the Configurations tab.

Step 3: Give the user the EAC permission

A configuration alone is not enough. If the user does not have the EAC permission, Salesforce offers no way to connect a mailbox. The page Setup > Einstein Activity Capture > Status & Metrics shows 0 licensed users in that case.

  1. In Setup, open Permission Sets.
  2. Click the letter S in the alphabet filter.
  3. Find Standard Einstein Activity Capture. There can be two entries with the same name. Check the License column and choose the one whose license is Standard Einstein Activity Capture User.
  4. Open it, click Manage Assignments, then Add Assignment.
  5. Tick the user, click Next, keep No expiration date, and click Assign. Salesforce confirms “1 assignments were successful”.

Reload Salesforce. A blue banner appears: Einstein Activity Capture is enabled. To start using it, connect your email and calendar to Salesforce. A new Connected Accounts section also appears in the user’s personal Settings.

Choosing the Standard Einstein Activity Capture permission set
Choose the entry whose License column says Standard Einstein Activity Capture User.
Permission set assigned to the user
Salesforce confirms the assignment with a success message.
Banner confirming EAC is enabled
After the permission is assigned, a banner confirms EAC is enabled, and the Email and Calendar Accounts page opens a welcome screen.

Step 4: Create a test Contact

  1. Open Contacts and click New.
  2. First name EAC, last name Test Contact.
  3. Email: an address you can read, on a different domain from the connected mailbox.
  4. Save.

Why a different domain? EAC ignores email between internal addresses. The org’s internal domain is taken from the admin user’s email, so with a Gmail admin, gmail.com becomes the internal domain and mail between two Gmail addresses is never captured. The Contact’s Activity tab then shows a warning that emails with this contact are not captured. The default internal domain cannot be removed from the excluded list, so use a Contact on another domain.

Creating the EAC test Contact
A test Contact whose email is on a different domain from the connected mailbox.

Step 5: Connect Gmail

This step is done by the mailbox owner, because it needs their own Google sign-in.

  1. Click the link in the blue banner, or open Settings > Connected Accounts > Email and Calendar Accounts.
  2. Click New Account and choose Google.
  3. Sign in with the Gmail address that matches the Salesforce user’s email.
  4. On Google’s consent screen, tick every permission, including email and calendar. A skipped permission can leave that part unsynced.
  5. Confirm the page lists the Gmail address tagged Your Connection.

A banner reads We are getting Einstein Activity Capture ready for you. That is the first sync running. Do not disconnect and reconnect during this time, because it restarts the sync.

The New Account button in Email and Calendar Accounts
Click New Account to connect a mailbox.
Gmail connected to Salesforce
The connected Google account is tagged Your Connection.

Step 6: Send a test email and a calendar event

  1. From the connected Gmail account, send an email to the Contact’s address with a clear subject, such as “EAC test 1”.
  2. If you can read the Contact’s mailbox, reply from it.
  3. In Google Calendar, create a timed event (not all-day), for example tomorrow from 4:00 to 4:30 PM, and invite the Contact’s address. Save and send the invitation.
  4. Do not edit the event afterwards.
  5. Allow time for the sync. Email typically appears first, and calendar events take longer.

Step 7: Check the results

  1. Open the test Contact and go to the Activity tab.
  2. Click Refresh on the Activity Timeline.
  3. Look for the email and the event. Past items appear under the month heading, and future events appear under Upcoming & Overdue.

Once the account is connected, calendar events are synced along with email. In testing, the meeting appeared on the Contact’s Activity Timeline and in the Events list with the Contact shown in the Name column. Sync timing can vary: an event may reach Salesforce before it is linked to the Contact. In that case it shows in the Events list with an empty Related To while its attendee list already names the Contact. Give EAC more time to link it before changing anything.

Also open Setup > Einstein Activity Capture > Status & Metrics:

  • Licensed users and Configured users should be at least 1.
  • The connected account should show Active, with Disabled and Needs Attention at 0.
  • Initial Sync Status moves from Not Started to In Progress to Complete. Once it shows Complete, the first sync is done.
  • This page updates slowly, so allow time for it to catch up.
A captured email and event on the Contact's Activity Timeline
The emails and the meeting appear on the Contact’s Activity Timeline.
EAC Status and Metrics licensed and configured users
Status & Metrics shows licensed and configured users.
EAC Status and Metrics connected account and initial sync
The connected account shows Active and the initial sync shows Complete.
The synced calendar event in Salesforce
Synced events are listed with the Contact in the Name column.

Troubleshooting

  • No connect option anywhere: the user lacks the EAC permission. Check Status & Metrics. If licensed users is 0, assign the permission set (Step 3).
  • “Emails with this contact aren’t captured”: the Contact’s email is in the internal domain. Use a Contact on a different domain.
  • Cannot remove an excluded domain: the default internal domain is protected. Change the test Contact instead.
  • Email appears, event does not: calendar sync is slower. Check the Events list, and use a timed event rather than an all-day one.
  • Event times look wrong: Salesforce shows times in the Salesforce user’s time zone, which may differ from the calendar owner’s. Compare time zones first.
  • Status & Metrics shows Not Started: the page lags behind the actual sync. Wait and refresh.
  • Account shows Needs Attention or Disabled: reconnect the account from Email and Calendar Accounts and approve all permissions.

Using Outlook / Microsoft 365 instead

The overall flow is the same: configuration, user permission, matching email, connect, test. The differences are that the connection method in EAC settings is the Microsoft option, a personal outlook.com address does not work (a work Exchange Online mailbox is required), and a Microsoft 365 tenant administrator has to grant consent. For a client, involve their IT provider early.

Summary

Connecting Gmail to Einstein Activity Capture follows a fixed order: configuration, permission, matching email, connect, test. The points that most often cause trouble are the missing user permission, the internal-domain rule, and the time the first sync needs.