Set up a Discord bot and connect it to your AI team.
Connecting Discord
Connect a Discord bot so your AI team can interact with users in your Discord server.
Setting Up the Bot
1. Create a Discord Application
- Go to the Discord Developer Portal
- Click New Application and give it a name
- Go to Bot in the sidebar and click Add Bot
- Under the bot's token section, click Copy to get the Bot Token
- Enable Message Content Intent under Privileged Gateway Intents
2. Invite the Bot to Your Server
- Go to OAuth2 > URL Generator
- Select scopes:
bot - Select permissions:
Send Messages,Read Message History,View Channels - Copy the generated URL and open it to invite the bot to your server
- Note your server's Guild ID (enable Developer Mode in Discord settings, then right-click your server name and copy ID)
3. Add a Discord Channel in Workspace
- Open your team in the editor
- Click Add Block and select Channel
- Choose Discord from the channel type dropdown
- Paste the Bot Token
- Enter the Guild ID (optional — limits the bot to one server)
- Save and start (or restart) the team
4. Start Chatting
Mention the bot or send a direct message in Discord. Your team will respond.
If you leave Guild ID empty, the bot will respond in any server it has been invited to.