Slack setup
Connect your agent to Slack with your own Slack app. Cohort gives you a ready-made app manifest, so setup is mostly copy and paste: create the app from the manifest, install it, and paste two tokens and your member ID into Cohort. It takes about five minutes.
You’ll need: permission to create and install apps in your Slack workspace, and your Slack member ID (so your agent knows it’s you).
Step 1: Start the wizard
- In Cohort, go to Settings → Channels and click Connect on Slack.
- Choose which agent the Slack app is for. The wizard shows a manifest for that agent.
- Click Copy to copy the manifest.
Step 2: Create the Slack app from the manifest
- Go to api.slack.com/apps and click Create New App.
- Choose From an app manifest, pick your Slack workspace, and paste the manifest.
- Review and create the app.
Step 3: Install the app and copy the bot token
- In the app’s settings, open Install App and install it to your workspace.
- Copy the Bot User OAuth Token. It starts with
xoxb-.
Step 4: Generate an app-level token
- Open Basic Information and scroll to App-Level Tokens.
- Generate a token with the
connections:writescope. - Copy it. It starts with
xapp-.
Step 5: Connect in Cohort
- Paste the Bot User OAuth Token and the App-Level Token into the wizard.
- Enter Your Slack member ID, such as
U12345678. In Slack, open your profile, click the ⋯ menu, and choose Copy member ID. - Click Connect. Cohort checks both tokens with Slack before saving them.
Then message your agent in Slack, in a direct message or by @mentioning it in a channel it has been added to.
What your agent can do in Slack
Once Slack is connected, your agent can work with the Slack channels it belongs to, from any channel you talk to it on (Chat, Signal, iMessage, Slack itself).
- Say where it is. Ask “which channels are you in, and where can I reach you?” It lists web Chat, its email address, its other connected channels, and the Slack channels its app is a member of. The list is live, so it can tell you right away whether it has been added to a channel or removed from one.
- Read a channel it is in. Ask it to summarize the last messages of a channel (up to 50 at a time). Asked in that channel, it reads it. A public channel can be read from any conversation in the workspace. A private channel can be read only where what’s said in it may be heard: by its members in their own direct messages, and by those who oversee them (see Who hears what).
- Post for you. Ask it to post a note to a channel, or to send someone a direct message in Slack. It posts as itself and replies with a link to the message. If it isn’t sure where to post or exactly what to say, it checks with you first.
Who can ask it to post: only a workspace owner or admin, asking where Cohort knows who they are. A request from anyone else is refused, and nothing is posted.
Channels it is not in: your agent can only read and post in channels its Slack app has been added to. Invite it with /invite @your-agent in that channel. Otherwise it says it isn’t a member and does nothing.
Messages are treated as information, not instructions. What other people wrote in a channel never tells your agent what to do. When something it read could be trying to steer it, it checks with you before posting.
Older Slack apps: an app created from an older manifest may be missing a permission these features need. Your agent names the missing permission. Add it in the app’s settings at api.slack.com/apps under OAuth & Permissions → Bot Token Scopes, then reinstall the app.
Troubleshooting
The agent doesn’t reply.
- Make sure the member ID is yours: your agent answers only you.
- For channel messages, invite the app to the channel and @mention it.
- Give it a few seconds for the first message.
“Paste a Bot User OAuth Token that starts with xoxb-.” You pasted a different token. Copy the one under Install App.
“Paste an App-Level Token that starts with xapp-.” Generate an app-level token under Basic Information → App-Level Tokens with the connections:write scope.
Start over. Disconnect Slack in Settings → Channels, then run the wizard again.