Discord Bot Setup
The Outpost Discord bot provides slash commands for ticket management, automatic thread creation for support requests, and real-time sync between Discord and the Outpost dashboard.
Create a Discord Application
- Go to the Discord Developer Portal
- Click New Application and name it (e.g., "Outpost Support")
- Go to the Bot section and click Add Bot
- Copy the Bot Token — you will need this for
DISCORD_BOT_TOKEN - Note the Application ID from the General Information page — this is
DISCORD_CLIENT_ID
Configure Bot Permissions
The bot requires the following permissions:
- Send Messages — respond in channels
- Create Public Threads — create support threads
- Send Messages in Threads — respond in threads
- Manage Threads — archive resolved threads
- Read Message History — context for AI triage
- Use Slash Commands — register and handle commands
- Embed Links — rich ticket status embeds
- Add Reactions — acknowledge messages
Configure Gateway Intents
In the Bot settings, enable these Privileged Gateway Intents:
- Message Content Intent — needed for AI to read message content
- Server Members Intent — for user identification
Invite the Bot
Generate an invite URL with the OAuth2 URL Generator:
- Go to OAuth2 → URL Generator
- Select scopes:
botandapplications.commands - Select the permissions listed above
- Copy the generated URL and open it to invite the bot to your server
Environment Variables
Add these to your .env file:
# Discord Bot
DISCORD_BOT_TOKEN=your-bot-token-here
DISCORD_CLIENT_ID=your-application-id
DISCORD_GUILD_ID=your-server-id
DISCORD_SUPPORT_CHANNEL=channel-id-for-support
Development tip: Set DISCORD_GUILD_ID for faster slash
command registration. Guild commands update instantly; global commands can take up to an
hour to propagate.
Slash Commands
The bot registers these slash commands:
| Command | Description |
|---|---|
| /ticket create | Create a new support ticket from a Discord message |
| /ticket status | Check the status of an existing ticket |
| /ticket close | Close a resolved ticket |
| /ticket assign | Assign a ticket to a team member |
| /search | Search the knowledge base for answers |
| /help | Show available commands and usage |
Thread-Based Support
When a user posts in the support channel, the bot can automatically:
- Create a thread for the conversation
- Run AI triage to classify and prioritize
- Search the knowledge base for relevant answers
- Post suggested solutions as the first reply
- Create a ticket in Outpost linked to the thread
Thread auto-creation is controlled by the DISCORD_SUPPORT_CHANNEL setting.
Messages in other channels are ignored unless a slash command is used.