{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Salesforce Agentforce Integration","description":"Control the power of AI Agents in runtime.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"salesforce-agentforce-integration","__idx":0},"children":["Salesforce Agentforce Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Connect your Salesforce Agentforce environment to Capsule Security for complete visibility into your AI agents, topics, actions, and conversation activity."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"overview","__idx":1},"children":["Overview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This integration syncs your Agentforce agents and captures conversation data:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Category"},"children":["Category"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What Gets Captured"},"children":["What Gets Captured"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agents"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Agentforce bots with configuration, status, and metadata"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Topics"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Agent skills and topic definitions with instructions"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tools"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Apex actions, Flows, APIs, Prompt Templates, External Services"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Sources"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retrievers and knowledge base components"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Channels"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Slack and other deployment channels"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Conversations"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["User messages, agent responses, and tool invocations"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":2},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before you begin, ensure you have:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agentforce"]}," enabled with at least one activated agent"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Cloud"]}," enabled (required for Einstein Audit and Feedback Data)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Salesforce Administrator"]}," or equivalent permissions"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Einstein"]}," enabled in your org (required for conversation auditing)"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-create-a-connected-app","__idx":3},"children":["Step 1: Create a Connected App"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a Connected App in Salesforce to enable secure OAuth authentication with Capsule."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps","__idx":4},"children":["Steps"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["gear icon"]}," in the top-right corner and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setup"]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the Quick Find box on the left, search for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Manager"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Connected App"]}," in the top-right corner"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Configure the basic information:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connected App Name"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CapsuleSecurity"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Name"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CapsuleSecurity"]}," (auto-populated)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Contact Email"]},": Enter your admin email address"]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2-configure-oauth-settings","__idx":5},"children":["Step 2: Configure OAuth Settings"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enable OAuth and configure the required scopes and security settings."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-1","__idx":6},"children":["Steps"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scroll down to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API (Enable OAuth Settings)"]}," section"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Check ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable OAuth Settings"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enter the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Callback URL"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://portal.us-east1.capsulesecurity.io/integrations/callback/AGENTFORCE\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the following ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Selected OAuth Scopes"]}," (click Add for each):"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Manage user data via APIs (api)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Perform requests at any time (refresh_token, offline_access)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Access chatbot services (chatbot_api)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Access the Salesforce API Platform (sfap_api)"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Configure security settings:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Check ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Require Secret for Web Server Flow"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," at the bottom of the page"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]}," on the confirmation dialog"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your Connected App settings should look like this:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/salesforce-connected-app-settings.7b83c7ba3b183164be94112616e6258b5c92d6226e6de831bd8cb51a11aa5ab1.9c1bb791.png","alt":"Connected App OAuth Settings"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"why-these-scopes","__idx":7},"children":["Why these scopes?"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Scope"},"children":["Scope"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Purpose"},"children":["Purpose"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["api"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Access Salesforce data and metadata"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["refresh_token, offline_access"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maintain persistent connection for scheduled syncs"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["chatbot_api"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Access Agentforce conversation and bot data"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["sfap_api"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Access the Salesforce API Platform for agent configuration"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-3-enable-einstein-audit-and-feedback-recommended","__idx":8},"children":["Step 3: Enable Einstein Audit and Feedback (Recommended)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enable Einstein auditing to capture agent conversations in Capsule. Without this, conversation data may not be available."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-2","__idx":9},"children":["Steps"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Setup, search for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Einstein Setup"]}," in the Quick Find box"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Einstein Setup"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ensure ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Einstein"]}," is turned ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Locate ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Einstein Audit and Feedback Data"]}," and toggle it ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"why-is-this-needed","__idx":10},"children":["Why is this needed?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Einstein Audit and Feedback Data enables conversation logging for Agentforce agents. This allows Capsule to capture:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["User messages and agent responses"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Topic classifications"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tool invocations and results"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Session metadata"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-4-add-connected-app-to-your-agent","__idx":11},"children":["Step 4: Add Connected App to Your Agent"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Link your Connected App to your Agentforce agent to enable API access."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-3","__idx":12},"children":["Steps"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Setup, search for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agentforce Agents"]}," in the Quick Find box"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click the name of your agent"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Open in Builder"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Agentforce Builder, click the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connections"]}," tab"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you see an option to turn on the updated connections experience, click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Turn It On"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Select the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Messaging"]}," connection"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scroll down to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["External Apps"]}," section"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add External App"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API"]}," as the connection type"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Choose your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CapsuleSecurity"]}," connected app from the dropdown"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-5-get-your-consumer-credentials","__idx":13},"children":["Step 5: Get Your Consumer Credentials"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve the Consumer Key and Secret from your Connected App."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-4","__idx":14},"children":["Steps"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["gear icon"]}," in the top-right corner and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setup"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the Quick Find box, search for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Manager"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Find ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CapsuleSecurity"]}," in the list"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["dropdown arrow"]}," on the right side of the row and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["View"]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scroll down to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API (Enable OAuth Settings)"]}," section"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Next to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Key and Secret"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage Consumer Details"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You may need to verify your identity (Salesforce will send a verification code)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Copy the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Key"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Secret"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"security-notes","__idx":15},"children":["Security notes"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Store these credentials securely"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Never share them in emails, chat, or code repositories"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The Consumer Secret is only shown once—copy it immediately"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-6-configure-the-integration-in-capsule","__idx":16},"children":["Step 6: Configure the Integration in Capsule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Connect your Salesforce org to Capsule using the credentials from Step 5."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-5","__idx":17},"children":["Steps"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Log in to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Capsule Security"]}," portal"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations"]}," in the left sidebar"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Find the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Salesforce Agentforce"]}," card and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Set up Integration"]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enter your credentials:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Key"]},": Paste from Step 5"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Secret"]},": Paste from Step 5"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You will be redirected to Salesforce to authorize the connection"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Review the permissions and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You will be redirected back to Capsule upon successful connection"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"after-setup","__idx":18},"children":["After setup"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Initial sync begins automatically"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["First sync may take several minutes depending on data volume"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["View synced agents in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Inventory → Agents"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["View conversations in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Observability → Filter Activity Type - Session"]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-gets-captured","__idx":19},"children":["What Gets Captured"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Capsule captures the following data from your Agentforce environment:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Entity Type"},"children":["Entity Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Category"},"children":["Category"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agentforce Agents"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Model Agent"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bot configuration, status, languages, tone settings"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Topics"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Topic"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Agent skills with instructions and guidance"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Apex Actions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom Apex code invoked by agents"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Flow Actions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Flow automations triggered by agents"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Actions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["REST API endpoints called by agents"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Prompt Templates"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Templates for generating agent responses"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retrievers"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Data Source"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Knowledge base and data retrieval components"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["External Services"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["External service integrations"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Predictive Models"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ML models used for predictions"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Slack Channels"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Access Channel"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Slack deployment integrations"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversation-data-captured","__idx":20},"children":["Conversation data captured"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When Einstein Audit is enabled, Capsule also captures:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User messages"]}," — Input from users interacting with agents"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agent responses"]}," — Generated responses from Agentforce"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Topic classifications"]}," — How the agent categorized the conversation"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tool invocations"]}," — Actions and tools executed during the conversation"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Session metadata"]}," — Timestamps, session IDs, and channel information"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"verification","__idx":21},"children":["Verification"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After setup, verify that data is syncing correctly."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"check-agents","__idx":22},"children":["Check agents"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Capsule, navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Inventory → Agents"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Look for your Agentforce agents in the list"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click on an agent to view its topics and tools"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"check-conversations","__idx":23},"children":["Check conversations"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Observability"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Filter by ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Activity Type → Session"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Look for recent Agentforce conversations"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click on a session to view the full conversation transcript"]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":24},"children":["Troubleshooting"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"connected-app-not-appearing-in-agent-connections","__idx":25},"children":["Connected App not appearing in agent connections"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Ensure the Connected App is saved and activated"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Wait a few minutes for Salesforce to propagate the changes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Verify you have the correct OAuth scopes configured"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"no-conversations-appearing-in-capsule","__idx":26},"children":["No conversations appearing in Capsule"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Verify Einstein Audit and Feedback Data is enabled"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Check that your agent is activated and has handled conversations"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Initial sync may take several minutes"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"oauth-authorization-fails","__idx":27},"children":["OAuth authorization fails"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Verify the Callback URL matches exactly: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://portal.us-east1.capsulesecurity.io/integrations/callback/AGENTFORCE"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Ensure all required OAuth scopes are selected"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Check that Client Credentials Flow is enabled"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"agent-not-syncing","__idx":28},"children":["Agent not syncing"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Verify the agent is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Activated"]}," in Agentforce"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Check that the Connected App is linked to the agent (Step 4)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Ensure your Salesforce user has permission to access the agent"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"support","__idx":29},"children":["Support"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For help with this integration:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Email"]},": support@capsule.security"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Include"]},": Your Salesforce Org ID, integration status, and any error messages"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For Salesforce Agentforce issues:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Salesforce Help"]},": ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://help.salesforce.com"},"children":["help.salesforce.com"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agentforce Documentation"]},": ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://developer.salesforce.com/docs/einstein/genai"},"children":["developer.salesforce.com/docs/einstein/genai"]}]}]}]},"headings":[{"value":"Salesforce Agentforce Integration","id":"salesforce-agentforce-integration","depth":1},{"value":"Overview","id":"overview","depth":2},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Step 1: Create a Connected App","id":"step-1-create-a-connected-app","depth":2},{"value":"Steps","id":"steps","depth":3},{"value":"Step 2: Configure OAuth Settings","id":"step-2-configure-oauth-settings","depth":2},{"value":"Steps","id":"steps-1","depth":3},{"value":"Why these scopes?","id":"why-these-scopes","depth":3},{"value":"Step 3: Enable Einstein Audit and Feedback (Recommended)","id":"step-3-enable-einstein-audit-and-feedback-recommended","depth":2},{"value":"Steps","id":"steps-2","depth":3},{"value":"Why is this needed?","id":"why-is-this-needed","depth":3},{"value":"Step 4: Add Connected App to Your Agent","id":"step-4-add-connected-app-to-your-agent","depth":2},{"value":"Steps","id":"steps-3","depth":3},{"value":"Step 5: Get Your Consumer Credentials","id":"step-5-get-your-consumer-credentials","depth":2},{"value":"Steps","id":"steps-4","depth":3},{"value":"Security notes","id":"security-notes","depth":3},{"value":"Step 6: Configure the Integration in Capsule","id":"step-6-configure-the-integration-in-capsule","depth":2},{"value":"Steps","id":"steps-5","depth":3},{"value":"After setup","id":"after-setup","depth":3},{"value":"What Gets Captured","id":"what-gets-captured","depth":2},{"value":"Conversation data captured","id":"conversation-data-captured","depth":3},{"value":"Verification","id":"verification","depth":2},{"value":"Check agents","id":"check-agents","depth":3},{"value":"Check conversations","id":"check-conversations","depth":3},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"Connected App not appearing in agent connections","id":"connected-app-not-appearing-in-agent-connections","depth":3},{"value":"No conversations appearing in Capsule","id":"no-conversations-appearing-in-capsule","depth":3},{"value":"OAuth authorization fails","id":"oauth-authorization-fails","depth":3},{"value":"Agent not syncing","id":"agent-not-syncing","depth":3},{"value":"Support","id":"support","depth":2}],"frontmatter":{"seo":{"title":"Salesforce Agentforce Integration"}},"lastModified":"2025-12-16T17:05:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/salesforce-agentforce","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}