Connectors
Connectors bridge your agents to chat platforms. Messages sent to the bot on any platform are routed to the assigned agent, and responses are sent back.
Supported Platforms
| Platform | Library | Auth Method |
|---|---|---|
| Discord | discord.js | Bot token |
| Slack | @slack/bolt | Bot token + App token |
| Telegram | grammy | Bot token |
| baileys | QR code pairing |
Discord
- Create a bot at Discord Developer Portal
- Copy the Bot Token
- In SwarmClaw, go to Connectors > New Connector
- Select Discord, paste the token, and choose an agent
- Add channel IDs the bot should respond in (comma-separated)
- Enable and start the connector
The bot needs the MESSAGE_CONTENT intent enabled in the developer portal.
Slack
- Create a Slack app at api.slack.com
- Enable Socket Mode and generate an App-Level Token
- Add Bot Token Scopes:
chat:write,app_mentions:read - Install to your workspace and copy the Bot Token
- In SwarmClaw, create a Slack connector with both tokens
- The bot responds to mentions (
@YourBot) in channels it's invited to
Telegram
- Message @BotFather on Telegram
- Create a new bot and copy the token
- In SwarmClaw, create a Telegram connector with the token
- The bot responds to all direct messages and group mentions
- In SwarmClaw, create a WhatsApp connector
- A QR code appears in the connector sheet
- Open WhatsApp on your phone > Linked Devices > Link a Device
- Scan the QR code
- The connector links to your WhatsApp account
Note: WhatsApp uses the Baileys library (unofficial). The QR code may need to be re-scanned periodically.
Managing Connectors
Each connector shows its status: running, stopped, or error. Use the toggle to start/stop connectors. Error details are displayed when something goes wrong.