Create a Discord bot
Open the Discord Developer Portal
Go to discord.com/developers/applications and click New Application.Give it a name — this becomes your bot’s display name (e.g. “Mike”).
Create the bot
In the left sidebar, click Bot. Then click Add Bot → Yes, do it!Under Token, click Reset Token and copy the token. You’ll need this in ClawHQ.
Enable required intents
Still on the Bot page, scroll to Privileged Gateway Intents and enable:
- Server Members Intent
- Message Content Intent
Generate an invite link
In the sidebar, click OAuth2 → URL Generator.Under Scopes, select:
bot, applications.commandsUnder Bot Permissions, select:- Read Messages / View Channels
- Send Messages
- Read Message History
- Use Slash Commands
Talk to your agent
Once connected, mention your bot in any channel:Slash commands
ClawHQ registers/ask as a global slash command. Type /ask in any channel to open a modal for longer messages.
DM support
Agents respond to direct messages by default. You can disable this per-agent in Team → [Agent] → Settings → DM access.Troubleshooting
Bot is offline or not responding- Check Settings → Channels → Discord — the connection status should show green
- Verify the bot has been invited to the server with the correct permissions
- Check
docker compose logs openclawfor error details
- Make sure Message Content Intent is enabled in the Discord Developer Portal
- The bot needs Read Messages and Read Message History permissions in the channel
- Re-invite the bot using the URL Generator with updated permissions