Components
Agent Builder consists of the following components:agentBootstrap: Job that deploys the LangSmith Deployment (agent) needed for Agent Builder.agentBuildertoolServer: Provides MCP tool execution for agents.triggerServer: Handles webhooks and scheduled triggers.agent: The main agent that will handle agent generation and where all the assistants will be created.
Enable Agent Builder
To enable Agent Builder, add the following to yourvalues.yaml:
Generate an encryption key
Agent Builder requires a Fernet encryption key to securely store secrets. Generate one using Python:agent_builder_encryption_key parameter. See Use an existing secret for details.Enable OAuth tools and triggers (optional)
To enable OAuth-based tools (like Gmail, Slack, GitHub), configure theoauthProviderOrgId and add provider IDs for each integration you want to enable. You can enable any combination of providers.
Available providers
General configuration
Add the following to yourvalues.yaml. Include only the providers you need.
Provider setup guides
GitHub OAuth provider
GitHub OAuth provider
Create a GitHub OAuth app
Configure the app
Set permissions
Add callback URL
<hostname> with your LangSmith hostname and <provider-id> with your provider ID:Generate client secret
Configure OAuth provider in LangSmith
- Client ID: from GitHub app
- Client Secret: from GitHub app
- Authorization URL:
https://github.com/login/oauth/authorize - Token URL:
https://github.com/login/oauth/access_token - Provider ID: Unique string, for example:
github
Deploy
values.yaml and deploy:Install the app on repositories
- Authenticate the app to your GitHub account.
- Go to Settings > Applications > Installed GitHub Apps and install the app on the repositories you want it to access.
Google OAuth provider
Google OAuth provider
Create OAuth client in GCP
Add URLs to GCP
<hostname> with your LangSmith hostname and <provider-id> with the provider ID you’ll use (e.g., google):Authorized JavaScript origins:https://<hostname>
https://<hostname>/api-host/v2/auth/callback/<provider-id>https://<hostname>/host-oauth-callback/<provider-id>
Copy credentials
Configure OAuth provider in LangSmith
- Client ID: Find in GCP
- Client Secret: Find in GCP
- Authorization URL:
https://accounts.google.com/o/oauth2/auth - Token URL:
https://oauth2.googleapis.com/token - Provider ID: Unique string, for example:
google
Deploy
values.yaml and deploy:Linear OAuth provider
Linear OAuth provider
Create a Linear OAuth app
Add callback URL
<hostname> with your LangSmith hostname and <provider-id> with your provider ID:Copy credentials
Configure OAuth provider in LangSmith
- Client ID: from Linear app
- Client Secret: from Linear app
- Authorization URL:
https://linear.app/oauth/authorize - Token URL:
https://api.linear.app/oauth/token - Provider ID: Unique string, for example:
linear
Deploy
values.yaml and deploy:LinkedIn OAuth provider
LinkedIn OAuth provider
Create a LinkedIn OAuth app
Configure OAuth settings
Add redirect URI
<hostname> with your LangSmith hostname and <provider-id> with your provider ID:Copy credentials
Configure OAuth provider in LangSmith
- Client ID: from LinkedIn app
- Client Secret: from LinkedIn app
- Authorization URL:
https://www.linkedin.com/oauth/v2/authorization - Token URL:
https://www.linkedin.com/oauth/v2/accessToken - Provider ID: Unique string, for example:
linkedin
Deploy
values.yaml and deploy:Slack OAuth provider
Slack OAuth provider
Create a Slack app
Add scopes
channels:historychannels:readchat:writegroups:historygroups:readim:historyim:readim:writempim:historyteam:readusers:readusers:read.email
Copy credentials from Slack
Configure OAuth provider in LangSmith
- Client ID: Find in Slack app
- Client Secret: Find in Slack app
- Authorization URL:
https://slack.com/oauth/v2/authorize - Token URL:
https://slack.com/api/oauth.v2.access - Provider ID: Unique string, for example:
slack
Add redirect URI to Slack
<hostname> with your LangSmith hostname and <provider-id> with your provider ID (e.g., slack):Get the bot ID
- Get the bot token from OAuth & Permissions in your Slack app.
- Run the following command:
- Copy the
bot_idfrom the response.
Deploy LangSmith
values.yaml and deploy:Enable event subscriptions
- After deployment, go to Event Subscriptions in your Slack app and enable events.
-
Set the Request URL to:
-
Add the following bot events:
message.channelsmessage.groupsmessage.immessage.mpim
Set up triggers and tools
- Add the Slack bot to the channel you want it to read from.
- When configuring the Slack tool or trigger in Agent Builder, provide the channel ID and channel name.