Slack
The Slack channel allows your assistant to receive and respond to direct messages in Slack. When configured:
- Users can DM the bot in Slack to start a conversation
- The assistant processes the message and replies in-thread
- Threaded replies are maintained automatically
- File attachments (images) are supported
Configuration
| Field | Description |
|---|---|
| Bot User OAuth Token | Your Slack app’s bot token (starts with xoxb-) |
| Signing Secret | Your Slack app’s signing secret for verifying webhook requests |
Setting Up a Slack App
- Go to api.slack.com/apps and click Create New App then From scratch
- Give the app a name (e.g. your assistant’s name) and select your workspace
- Under OAuth & Permissions, scroll to Bot Token Scopes and add:
chat:write— Send messagesusers:read— Look up user profilesusers:read.email— Read user email addressesim:history— Read DM message history
- Click Install to Workspace and authorize the app
- Copy the Bot User OAuth Token (starts with
xoxb-) from the OAuth & Permissions page - Under Basic Information, copy the Signing Secret
- Under Event Subscriptions:
- Toggle Enable Events on
- Set the Request URL to
https://yourdomain.com/webhooks/channels/slack/inbound(replace with your TeamWeb AI instance’s public URL) - Slack will send a verification challenge — TeamWeb AI handles this automatically
- Under Subscribe to bot events, add
message.im - Click Save Changes
- Under App Home, ensure Messages Tab is enabled so users can DM the bot
- In TeamWeb AI, go to your assistant’s Channels tab, click on Slack, paste the Bot Token and Signing Secret, and enable the channel
Slack users must have an account in TeamWeb AI with the same email address as their Slack profile. TeamWeb AI uses the Slack user’s email to match them to a TeamWeb AI user account.