Configure Salesforce.com for AI agent imports

To import AI agents from Salesforce.com, you need to perform several configuration tasks in your Salesforce.com tenant and in Okta.

About this task

Configuring Salesforce.com for AI agent imports requires setup in two systems. In Salesforce, you create a dedicated integration user, assign the required permission set, and configure an OAuth app. In Okta, you set the Login URL for the Salesforce.com app integration.

Before you begin

  • Your Salesforce org has Agentforce enabled.
  • Your Salesforce org has the Agent platform builder license, which is required for the AgentPlatformBuilder permission set.
  • At least one Agentforce agent is listed in Setup > Agents.
  • You have System Administrator access in Salesforce.
  • The Salesforce.com app is added from the OIN catalog in your Okta org.
  • You know your Salesforce org's My Domain URL, which is the URL in your browser when you're logged into Salesforce (for example, https://yourorg.my.salesforce.com or https://yourorg.develop.my.salesforce.com).
  • Create a dedicated integration user
    1. In Salesforce, go to Setup > Users > Users and click New User.
    2. Set First Name to Okta and Last Name to AgentImport.
    3. Enter your admin email address in the Email field.
    4. Enter the username with the format okta.ai.import@yourdomain.com.
      The username must be globally unique across all Salesforce orgs.
    5. Set User License to Salesforce.
    6. Set Profile to Minimum Access - Salesforce.
    7. Click Save.
  • Assign the AgentPlatformBuilder permission set
    1. In Salesforce, go to Setup > Users > Permission Sets.
    2. Search for Agent Platform Builder and click it.
    3. Click Manage Assignments.
    4. Click Add Assignments.
    5. Select the Okta AgentImport user and click Next.
    6. Click Assign.
    7. Go back to Permission Sets > Agent Platform Builder > Manage Assignments and confirm that the Okta AgentImport user has Active status.
      This confirmation is required before continuing. If the user doesn't appear as active, the import fails with a no permission error in Okta.
  • Enable API login
    1. If Test API Credentials fails in Okta, in Salesforce go to Setup > Security > Session Settings and enable Allow API login without IP restriction.
      If this setting isn't visible, API login is already enabled in your org. This step is only needed for the initial credential check in Okta.
  • Create an external client app
    1. In Salesforce Setup, open External Client App Manager and click New External Client App.
    2. In the External Client App Name field, enter Okta AI Agent Import.
    3. Enter your admin email in Contact Email and set Distribution State to Local.
    4. Select Enable OAuth.
    5. Enter the callback URL as https://localhost.
    6. Add Manage user data via APIs (api) to the OAuth scopes.
    7. Click Save.
    8. Reopen the app and click Edit.
      Flow enablement settings only become available after the app is saved.
    9. Under Flow Enablement, select Enable Client Credentials Flow.
    10. In the Run As (Username) field, enter okta.ai.import@yourdomain.com.
    11. Under OAuth Policies, set IP Relaxation to Relax IP restrictions.
    12. Set Permitted Users to All users may self-authorize.
    13. Click Save.
      It may take up to five minutes for the app to activate.
  • Get the consumer key and consumer secret
    1. In Salesforce Setup, go to External Client App Manager.
    2. Find the Okta AI Agent Import app, click the dropdown arrow, and select View OAuth Settings.
    3. Copy the Consumer Key and the Consumer Secret. Store both values safely.
      You need these values when you configure the AI agent import in Okta.
  • Set the login URL in Okta
    1. In the Admin Console, go to Applications > Applications.
    2. Select the Salesforce.com app instance.
    3. Select the General tab and click Edit.
    4. In the Login URL field, enter your org's My Domain URL, copied exactly from your browser.
    5. Click Save.

    After you have completed these configurations, see Enable AI agent imports for an app.