Prerequisites
- LiteLLM Agent Platform deployed and accessible
- A LAP agent
- A Slack workspace where you can create or install apps
1. Open the agent Slack flow
In the LAP UI, open Agents, choose an agent, then click Connect to Slack. The flow opens Slack with a pre-filled manifest. The manifest uses agent-specific callback URLs:2. Create the Slack app
Review the pre-filled manifest in Slack, create the app, then return to LAP. The app includes the bot scopes needed for mentions, direct messages, channel messages, and replies.3. Save app credentials
Paste these values from Slack’s Basic Information page back into the LAP flow:- App ID
- Client ID
- Client Secret
- Signing Secret
4. Connect OAuth
Click Connect OAuth. LAP creates a one-time state value through:$LAP_URL/host-oauth-callback/<provider-id>. On success, LAP stores the bot token in the vault and marks the agent as connected.
5. Talk to your agent
Mention the bot in any channel:Routing to different agents
Create a separate Slack app for each LAP agent you want to expose. Each app points to its own/api/agents/<agent-id>/slack/... endpoints.