Discord Integration
Add your agent to Discord servers using slash commands.
Overview
Discord integration provides:
- Slash command support (
/ask) - Server-wide availability
- Channel-specific responses
- Rich embed formatting
Prerequisites
- A Discord account
- Manage Server permissions on the target server
- Discord Developer Portal access
Setup Steps
1. Create a Discord Application
- Go to Discord Developer Portal (opens in a new tab)
- Click New Application
- Enter a name (e.g., "My Support Bot")
- Click Create
2. Create a Bot User
- In your application, go to Bot section
- Click Add Bot → Yes, do it!
- Under Token, click Copy — save this securely
3. Configure Bot Permissions
- Go to OAuth2 → URL Generator
- Select scopes:
botapplications.commands
- Select bot permissions:
- Send Messages
- Use Slash Commands
- Embed Links
- Copy the generated URL
4. Add Bot to Your Server
- Open the generated URL in a browser
- Select the server to add the bot
- Authorize the permissions
5. Connect to Cuneiform Chat
- Go to Agents → Select your agent
- Navigate to Integrations tab
- Click Discord
- Enter your Bot Token and Application ID
- Click Connect
Using the Bot
Slash Commands
Users interact with your bot using slash commands:
/ask What are your business hours?The bot processes the question and responds in the channel.
Response Format
Responses appear as rich embeds with:
- Answer text
- Source references (optional)
- Your bot's branding
Features
Server-Wide Access
Once added, the bot is available in all text channels where it has permissions.
Thread Support
The bot can respond in threads, keeping conversations organized.
Permissions Control
Control where the bot can respond using Discord's channel permissions.
Create a dedicated support channel and restrict the bot to that channel for focused use.
Configuration Options
Command Settings
Customize the slash command behavior:
| Setting | Description |
|---|---|
| Command name | Default is /ask |
| Description | Shown in Discord's command picker |
| Response visibility | Public or ephemeral (only visible to user) |
Troubleshooting
Bot Not Responding
- Verify the bot is online (check Discord)
- Confirm bot has permissions in the channel
- Check the token is correct in Cuneiform Chat
- Test slash commands are registered (
/shows your command)
Commands Not Showing
Slash commands can take up to an hour to register globally. For immediate testing:
- Commands register instantly in development servers
- Wait for global propagation in production
Permission Errors
Ensure the bot has these permissions:
- Send Messages
- Use Slash Commands
- Embed Links
- Read Message History (for thread support)
Security
- Bot tokens are encrypted
- Commands use Discord's built-in security
- No server data is accessed beyond messages
Disconnecting
To remove the Discord integration:
- Go to Agents → Select agent → Integrations
- Click Discord → Disconnect
To fully remove the bot:
- Go to your Discord server settings
- Navigate to Integrations → Remove the bot