Discord Bot
Kapa can be installed as a bot on your Discord server. The bot allows users to ask questions in natural language about your product which improves developer experience as developers can find answers to their questions faster. The bot is fully customizable and can be configured to respond in specific forum channels or to direct mentions.
Check out the example deployments to see examples of how communities like NextJS, SST, and Astro use the Kapa Discord bot to improve their developer experience.
Integration types
You have two options for deploying Kapa in Discord:
- Discord (Single Channel): Use this option to deploy Kapa to a specific channel in your Discord server. This is ideal if you want Kapa active in one channel or if you need different configurations per channel.
- Discord (Global Server): Use this option to deploy Kapa globally in your Discord server. Choose this if you want Kapa to be available across multiple channels using the same configuration.
Choose Discord (Single Channel) for flexible, per-channel configurations or Discord (Global Server) for a unified setup with direct messaging. Pick the option that best fits your needs for deploying Kapa in Discord.
You can use both integration types in the same server. For example, you can have a default configuration for all channels while applying specific settings to a single channel. Specific configurations will always override the default.
Setup
The following steps are required to deploy Kapa to your Discord workspace:
- Create a dedicated Discord channel for Kapa (Optional)
- Create a Discord integration in the Kapa platforn
- Configure your Discord integration
- Install the Kapa Discord bot to your Discord
- Enable Kapa from your Discord server with a bot command
1. Create a new Discord channel (optional)
We recommend creating a dedicated channel for Kapa. Avoid adding Kapa to an existing help channel to keep interactions clear. Users should be able to distinguish between channels where they can expect human responses and those where Kapa provides answers. We suggest naming this channel #ask-ai
to help users easily identify its purpose.
Take a look at example deployments to see how communities like NextJS, SST, and Astro use the kapa Discord bot to enhance their developer experience.
2. Create a Discord Integration
Go to the Integrations tab in the Kapa platform and create a new integration. Choose whether you want a single-channel or global server deployment (see Integration types).

3. Configure Your Integration
Discord integrations offer several configuration options, some mandatory and some optional.
-
Guild ID: This is the unique identifier for your Discord server. You can find it under Server Settings > Widget > Server ID.
-
Channel ID: This is the unique identifier for the Discord channel where you want to deploy Kapa. Right-click on the channel and select Copy Channel ID to find it.
Forum mode
The option Enable forum auto-reply mode controls whether Kapa automatically responds to new posts in the Discord channels that you've invited the bot to.
If this option is checked, Kapa automatically replies to all new posts.

If left unchecked, users must tag Kapa to generate a reply.

Additional configuration options are available by clicking the Advanced Configuration button. These options allow you to customize Kapa's default texts and responses. You can use Discord formatting to make responses more engaging. For more details, check the Formatting Tips on the configuration screen.
When you're done configuring the integration, click Save to save your changes.
4. Install Kapa Discord Bot to Your Server
Install the bot from this link to your server: Discord Bot Install Link

5. Enable Kapa Discord bot via command
At this point, you've installed the Discord bot to your server and configured its behavior through the Kapa platform. The final step is to enable your Integration
using a bot command from your Discord server. This confirms to the Kapa platform that you have the necessary authority over the Discord channels where you want Kapa to respond.
To enable the bot, open the Discord channel where you want Kapa to respond. If you're enabling a Single Channel integration, run the following command:
!kapa_enable_channel <integration_id>
For Global Server mode, run this command once from any channel in your server:
!kapa_enable_server <integration_id>
The <integration_id>
is the ID of the integration you created in the Kapa app. You can find it by clicking the Copy Integration ID button in the integrations table. Enter the command in the message box and press Enter. The bot will confirm once the integration is successfully enabled.

The bot command and the confirmation message will be visible to all users in the channel. Once the bot is enabled, you can delete both the command and the bot's response to keep the channel tidy.
6. Start Using Kapa
Kapa bot is now ready to help!
Troubleshooting
Kapa Not Responding To Any Messages
If you encounter any problems, such as the bot not responding, there could be several reasons:
-
Private Threads Permission: The "Create Private Threads" permission might be turned off for the role of our bot.
To adjust this setting:
- Navigate to Server Settings > Roles > Bot Role
- Scroll down to Permissions
- Ensure the Create Private Threads permission is enabled for the bot role.
-
Role Name Conflict: In some cases, Discord might auto-create a role with the "kapa.ai" name, which gets mentioned instead of the actual bot. This can cause confusion and prevent the bot from responding.
To resolve this:
- Go to Server Settings > Roles
- Find the role named "kapa.ai"
- Rename this role from "kapa.ai" to "bot-help". By renaming the role, conflicts between mentioning a role and the bot should be eliminated.

Kapa Follows Up With "Sorry, I Seem To Be Having Trouble"
If Kapa follows up with a message that says "Sorry, I seem to be having trouble", it might be due to the bot lacking the permission to post messages with embeds. This is often indicated by an error message like discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
.
To resolve this:
- Check if you have disabled the "Embed Links" permission.
- If it's disabled, enable the "Embed Links" permission for the bot role.
