- Receive messages directly from your Slack bot, triggering a new run with the message content.
- Communicate back to your Slack workspace after processing the message.
- Obtain relevant context from Slack by reading thread messages and conversation history.
The Slack integration with Fleet does not have any direct pricing. However, agent runs and traces are billed through the LangSmith platform according to your organization’s plan.For current pricing information, see the LangSmith pricing page.
Prerequisites
- An existing agent in Fleet (see Quickstart to create one)
- Admin access to a Slack workspace or permission to install apps
Create a Slack bot
Create a new Slack app
- Navigate to the Integrations page in Fleet.
- Click Add Slack App.
- Enter a name for the bot.
- Click Create Slack App. You will be redirected to the Slack API site with a popup asking you to pick a workspace.
Select your workspace
- Choose the workspace where you want to install the bot.
- Click Next.
- Click Create Bot.
Enter your app credentials
After creating the bot, you will receive your app credentials. Enter the following credentials in Fleet:
- App ID
- Client ID
- Client secret
- Signing secret
Copy the full client secret and signing secret carefully to ensure a successful connection.
Link the Slack bot to an agent
You can link a Slack bot to an agent from the integrations page or from the agent editor. Each agent can only have one Slack app, and each Slack app can only be linked to one agent.Link from the integrations page
- Navigate to the Slack Apps section on the Integrations page in Fleet.
- Select the bot you want to link.
- From the dropdown menu, choose the agent you want to link to.
- Verify that <Agent Name> appears next to the bot name.
Link from the agent editor
- Select your agent from My Agents in the left-hand navigation.
- Click Edit Agent.
-
Scroll to the Channels section.
You may need to set the agent identity first. Click Set Identity in the top right corner.
- Click Slack.
- From the dropdown menu, select the Slack app you want to link.
Use the default LangSmith Slack bot
Use the default LangSmith Slack bot
You can also use the default LangSmith Slack bot instead of a custom app:
- In the Channels section, click LangSmith Bot.
- In Slack, invite the default app to an existing channel and copy the channel ID.
- In the agent editor, click Add Slack Channel and paste the channel ID.
- Send any message in the channel to trigger a run.
Add Slack tools
Tools let your agent take actions. To respond in Slack, you need to add Slack tools.- In the agent editor, scroll to the Tools section.
- Click + Add.
- Search for “Slack” and add the tools you need, if not already added:
- slack_send_channel_message—Post messages to a channel
- slack_reply_to_message—Reply in a thread
- slack_write_private_message—Send direct messages
- slack_read_channel_history—Read recent messages
- slack_read_thread_messages—Read thread replies
- If prompted, click Connect to authorize the Slack tools.
- Click Save changes.
Invite the bot to your channel
- In Slack, go to the channel where you want to use the bot.
- Type
/invite @YourSlackBotNameto invite the bot. - Send a message mentioning the bot to verify it responds.
Configure agent behavior (optional)
Your agent needs to know how to handle incoming Slack messages. Update its instructions by prompting it directly in the agent chat:Troubleshooting
Agent does not respond
If your agent is not responding, you can try the following:- Check the thread in Fleet for any approvals that need human input.
- Verify the bot was invited to the channel.
- Check the Feed tab for errors.
- Ensure the trigger is not paused in the Triggers section.
- Try reauthenticating with Slack to make sure Fleet has your most up-to-date Slack user ID stored.
Not allowed to tag the bot
If you receive a private message saying you are not allowed to tag the bot, your Slack ID is not authorized for that agent. The agent’s owner needs to share the agent with you—either by sharing run access with the whole workspace or with you individually.Next steps
Add more tools
Connect additional services to your agent
Add more triggers
Set up email, schedule, or webhook triggers
Use templates
Start from a prebuilt agent template
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

