
How it works
Once connected, Openlayer:- Discovers your agents — automatically fetches all active Agentforce agents from your Salesforce org
- Links projects and data sources — each enabled agent writes to an Openlayer project and data source, either created for it automatically or one you choose
- Syncs conversations — periodically pulls agent interactions from Data 360 (via the Data 360 API), converting them into structured traces with sessions, requests, and individual steps
- Enriches traces — extracts LLM model names, providers, token counts, and user IDs from GenAI Gateway data, records the duration of each step, and estimates cost for supported models
All access is read-only — Openlayer never writes data to your Salesforce
org.
Prerequisites
Before connecting, ensure the following are configured in your Salesforce org:1. Agentforce enabled
You must have at least one active Agentforce agent.- In Salesforce Setup, go to Agentforce Agents
- Turn on Agentforce and create or enable an agent
2. Data 360 provisioned with Agent Analytics
Openlayer reads conversation data from Data 360, which requires Agent Analytics to be enabled.- In Salesforce Setup, go to the Einstein Feedback and Monitoring page
- Turn on Agent Analytics
3. Create a Salesforce Connected App
Openlayer authenticates via OAuth using a Connected App you create in your Salesforce org. This gives you full control over the scopes and access granted.Step-by-step: Create a Connected App
Step-by-step: Create a Connected App
- In Salesforce Setup, search for App Manager and click New Connected App
-
Fill in the basic information:
- Connected App Name:
Openlayer - API Name:
Openlayer - Contact Email: your admin email
- Connected App Name:
- Under API (Enable OAuth Settings), check Enable OAuth Settings
-
Set the Callback URL to:
On-premise deployments: replace
app.openlayer.comwith your deployment’s base URL. -
Add the following OAuth Scopes:
- Click Save, then Continue
- After creation, go to Manage Consumer Details to retrieve the Consumer Key (Client ID) and Consumer Secret (Client Secret)
4. User permissions
System Administrators have all required permissions by default. Non-admin users connecting the integration need:- API Enabled permission
- Data 360 User permission set
- Read access to BotDefinition
- Approve Uninstalled Connected Apps or Use Any API Client permission
Setup guide
Step 1: Navigate to the integration
In your Openlayer workspace, go to Settings → Integrations and find the Salesforce Agentforce card. Click Enable.
Step 2: Provide your Connected App credentials
Enter the credentials from the Connected App you created in the prerequisites, pick the environment your org logs in through, then click Connect.- Client ID: the Consumer Key from your Connected App
- Client Secret: the Consumer Secret from your Connected App
- Salesforce environment: the Salesforce login domain Openlayer sends you to when you authorize
For Custom My Domain, enter the domain on its own, in the form
mycompany.my.salesforce.com. Openlayer cannot connect until you fill it in.

Step 3: Authorize with Salesforce
After clicking Connect, you will be redirected to Salesforce to log in and authorize Openlayer. Once authorized, you’ll be redirected back to Openlayer and the connection status will show as Connected. The Overview section then reports the Environment you connected through —Sandbox, your custom My Domain, or Production. Check it if you are unsure which org Openlayer is reading from.
Step 4: Configure sync settings
Once connected, configure automatic syncing in the Settings section of the General tab:- Periodic sync — toggle on to enable automatic syncing (every 15 minutes)
- Initial sync range — set the start date for the first sync to control how far back Openlayer fetches historical data
- Auto-register new agents — toggle on to automatically create a project and start monitoring when a discovered agent has recent activity
- An agent you disable stays disabled. Auto-registration only picks agents that don’t already have an Openlayer project or data source, and never turns back on an agent you turned off.
- Each sync registers at most 25 agents. Any remaining agents register on later syncs, so an org with many active agents ramps up over several syncs.
- Projects it creates don’t send the Project created notification. Enabling an agent yourself still does.
When the activity check cannot run during a refresh, Openlayer skips
auto-registration for that round, tells you so, and retries on the next sync.

Initial conversations may take up to one sync cycle to appear, as they must
first be written to Data 360 by Salesforce before Openlayer can retrieve them.
Step 5: Enable agents
On the Agents tab, Openlayer lists all discovered Agentforce agents. Discovery alone does not start monitoring: for each agent you want to monitor, toggle it on. You can also click the refresh button next to the status filter to re-discover agents from your Salesforce org. When you enable an agent, you choose where its sessions go:- A new project — Openlayer creates a project and data source for the agent.
- A new data source in an existing project — select Create new data source. It is named after the agent by default.
- An existing data source — it must belong to the chosen project and to a storage type that holds sessions, so BigQuery and Snowflake data sources can’t be used.
- Agent — agent name and Salesforce ID, with any sync error shown in red under the ID
- Project and Data source — where the agent’s sessions are written
- Last sync — when the agent was last synced
- Sessions — number of synced sessions

Check your Salesforce environment
The Overview on the General tab includes a Salesforce environment section that checks what your connected org has set up. It lists your org’s Salesforce API version and data spaces, and the checks below. Use it when sessions aren’t syncing.
Checking tables doesn’t consume Data Cloud credits.
Each check runs on its own. If one shows Could not check, the connected Salesforce user usually lacks permission to read that part of the org, such as Setup metadata. The other checks still report.
Results are cached for up to 6 hours. Refresh the section to re-check your org now. Refreshing requires permission to connect Agentforce; any workspace member can view the results.
Monitoring in Openlayer
Once agents are enabled and the first sync completes, conversations automatically appear in their respective Openlayer projects.Conversation traces
Each Agentforce session is converted into a trace that captures user queries, agent responses, LLM model names, latency, and more. Within a trace:- LLM steps show the prompt as a chat of system, user, and assistant messages, the response text, prompt and completion token counts, and the step’s duration. Tool calls the LLM invokes appear in the step’s metadata, along with request IDs.
- Router and guardrail steps show the classified input and the target that was selected.

Backfill historical data
To import conversations that occurred before the integration was connected, open the menu (the three dots) next to an enabled agent and click Backfill. In the backfill dialog, choose the date range:- All available history — re-fetch all past sessions
- Custom start date — fetch sessions from a specific date forward

Each sync reads at most 20,000 sessions, so a large backfill, or catching up
an agent after a long pause, fills in over several sync cycles. Data 360
queries consume your org’s Data Cloud credits, so backfilling all available
history has a credit cost.
Run evaluations
With conversations flowing into Openlayer, you can:- Create tests to score response quality
- Detect hallucinations and measure faithfulness
- Track safety and compliance metrics
- Monitor latency and cost trends
- Compare agent performance across versions
Re-authenticating
If your Salesforce sign-in expires or is revoked, the connection shows an error. Click Re-authenticate in the Overview header to sign in to Salesforce again. Openlayer reuses your Connected App, so you don’t re-enter the Client ID and Client Secret or disconnect.- Sign in to the same Salesforce org that is already connected. Openlayer refuses a sign-in to a different org.
- Nothing changes until the new sign-in completes. Syncs keep running, and abandoning the sign-in leaves the existing connection as it was.
Disconnecting
To disconnect the Salesforce Agentforce integration:- Go to Settings → Integrations → Salesforce Agentforce
- Click Disconnect
Troubleshooting
- OAuth fails → verify the Callback URL in your Connected App matches
https://app.openlayer.com/integrations/agentforce/callbackexactly, and that the Salesforce environment you selected matches the org holding the Connected App. - No agents discovered → confirm you have at least one active Agentforce agent and that Data 360 with Agent Analytics is enabled.
- Conversations not appearing → Salesforce writes session data to Data 360 with a delay. Wait for the next sync cycle and ensure Agent Analytics is turned on.
- Backfill looks incomplete → large backfills continue on the following syncs. See the backfill note.
- Agent shows an error after a sync → Openlayer could not read from Data 360. It does not skip unread data, and the next sync retries.
- Permission errors → verify the connecting user has the required permissions, including
API EnabledandData 360 User. - Sessions still not syncing → open the Salesforce environment section and look for a missing required Data 360 table, Agent Platform Tracing turned off, or a Standard Data Model below 1.130.
- Connection shows an error → your Salesforce sign-in may have expired or been revoked. Re-authenticate instead of disconnecting.