Documentation Index
Fetch the complete documentation index at: https://docs.cowagent.ai/llms.txt
Use this file to discover all available pages before exploring further.
Integrate CowAgent into Slack via a Slack App in Socket Mode. Supports direct messages (DM) and channels (triggered by @mention or replying within a thread). Socket Mode uses a persistent WebSocket connection — no public IP or callback URL required, works out of the box.
1. Setup
Step 1: Create a Slack App
- Open the Slack API apps page, click Create New App → From scratch.
- Enter an App Name (e.g.
CowAgent), pick the Workspace to install into, and create it.
Step 2: Enable Socket Mode and get the App Token
- In the left sidebar go to Settings → Socket Mode and turn on Enable Socket Mode.
- You will be prompted to generate an App-Level Token with the
connections:writescope. Save this token starting withxapp-.
Step 3: Configure bot scopes and install
-
Go to Features → OAuth & Permissions, click Add an OAuth Scope under Bot Token Scopes, and add the following scopes one by one:
files:read/files:writeare used for sending/receiving images and files; omit them if you only need text conversations. -
Go to Features → Event Subscriptions, turn on Enable Events, and under Subscribe to bot events click Add Bot User Event to add:
Add
message.groupsif you need to use the bot in private channels. - Go to Features → App Home, enable Messages Tab under Show Tabs, and check Allow users to send Slash commands and messages from the messages tab. Otherwise the DM input box is disabled and users cannot message the bot.
-
Back in OAuth & Permissions, click Install to Workspace. After installing, copy the Bot User OAuth Token starting with
xoxb-.
Step 4: Connect to CowAgent
- Web Console (Recommended)
- Config File
Open the Web Console (default
http://127.0.0.1:9899), go to Channels, click Add Channel, choose Slack, paste the Bot Token (xoxb-) and App Token (xapp-), and click connect.2. Capabilities
| Feature | Support |
|---|---|
| Direct message (DM) | ✅ |
| Channel (@bot / reply in thread) | ✅ |
| Text messages | ✅ send / receive |
| Image messages | ✅ send / receive |
| File messages | ✅ send / receive (PDF / Word / Excel, etc.) |
| Thread replies | ✅ replies are posted to the thread of the triggering message |
Slack organizes conversations into threads. The bot posts replies into the thread of the triggering message, keeping channels tidy.
3. Usage
Once connected:- Direct message (DM): find your App under Apps in the Slack sidebar and message it directly.
- Channel: invite the App into a channel (
/invite @your-app), then trigger it with@your-app hello; continue the conversation by replying within the same thread.
