Discord
With ChatBotKit, you can easily integrate powerful conversational AI technology with Discord, a popular messaging and collaboration platform for gamers and communities. By integrating with Discord, you can chat with your AI chatbot directly from within the platform, enabling you to access a wide range of conversational AI functionalities.
Step-by-step Guide
To integrate ChatBotKit with Discord, follow these simple steps:
- Go to Integrations and then click the Discord Bot button.
- Fill in the Name and provide your chatbot Backstory
- Optionally select the bot Model, Dataset and Skillset.
- Save the integration by clicking the "Create" button.
Once your integration is created you will need to setup your discord application. Go to Discord Developer Portal and click "New Application". Follow steps are require to setup the actual integration.
- Go to your Discord application and navigate to "General Information" to find your Application ID and Public Key.
- Go to the "Bot" section and click "Reset Token" to obtain your Bot Token. If there is no "Reset Token" button then you may need to add a bot first. Click the "Add Button".
- Copy and save these three values - Application ID, Public Key, and Bot Token.
We are back to ChatBotKit to complete the final steps of the setup.
- In ChatBotKit, navigate to "Integrations" and click New Discord Bot.
- Optionally provide a handle, which is the slash command used for this bot. If you don’t provide a handle the discord slash command will be
/discord
. - Save the integration by clicking the "Save" button.
How to Interact with your Discord Bot
To start a new conversation with your chatbot, simply use the bot slash command (i.e /chatbotkit
). For example:
/chatbotkit How is it going?
If you have used a custom handle use that instead. For example:
/mycustomhandle How is it going?
Advanced Options
ChatBotKit's Discord integration offers several advanced options to help you customize your bot's behavior:
- Ephemeral: This option allows you to create ephemeral messages, which are only visible to the user who triggered the command. This is useful for sensitive information that you don't want to be visible to other users.
- Session Duration: This option allows you to control how long a conversation with your bot can last. By default, sessions are set to last forever, but you can adjust this to suit your needs.
- Streaming: This option allows you to stream the text from your bot. The response will appear in small chunks. Streaming is enabled by default.
To enable any of these options, simply navigate to your Discord integration settings in ChatBotKit and select the appropriate checkbox.
Troubleshooting
My discord command is not showing.
There are two possible reasons why the discord command is not showing: additional setup may be required, or you may need to restart your browser or application. Please click the setup button and follow the instructions provided. If that does not work, try restarting your browser or application.
I am getting "Invalid application command".
This error may occur when your chatbot integration with Discord is not set up correctly. Click on the "Setup" button and then restart / refresh Discord.