Configure Langsmith for AI agent imports

To import agents from LangSmith Deployments, you need to perform the following authentication and configuration steps in both the LangSmith and Okta tenants.

Before you begin

  • You must be an Organization Admin in LangSmith.
  • You must be a super admin or an AI agent admin in Okta.

Generate a LangSmith API key

Okta uses an API key to authenticate with the Langsmith endpoints.

  1. Sign in to your LangSmith account.
  2. Go to Settings.
  3. Select the Organization > Access and Security > API Keys.
  4. Click on +API Key and provide a Description for the API key (for example, okta-ai-agent-import).
  5. In the Key Type, select the Service Key.
  6. Select the appropriate scope. If you selected Specific Workspaces, add the required workspaces from which the agents are to be imported.
  7. Set Expiration date according to your org's security policies.
  8. Click Create API Key.
  9. Copy the API key and store it in a secure location.

Add the required URL hosts to the app instance

The URLs are required to access the appropriate hosts to call the APIs.

  1. In the Admin Console, go to Applications > Applications.
  2. Select the LangSmith instance.
  3. Go to the General tab.
  4. Click Edit in the App Setting section.
  5. In LangSmithUrl, enter the base URL of your Langsmith instance without the https protocol, for example, api.smith.langchain.com.

    For a list of regional host names, see the LangSmith User Management documentation.

  6. Click Save.

For a list of regional control plane host names, see the LangSmith Control Plane API reference.