Skip to main content๐ฅ Refer to the setup video for a step-by-step visual guide:
Overview
The Discord integration allows your NeuralTalk AI chatbot to:
- Interact with users in Discord servers and channels
- Answer questions and provide assistance automatically
- Handle direct messages from community members
- Support slash commands for specific functionalities
- Scale your community support with AI-powered responses
Prerequisites
Before setting up your Discord integration, you need:
- โ
An active NeuralTalk AI account
- ๐ค A created and trained chatbot on the NeuralTalk AI platform
- ๐ Admin or โManage Serverโ permissions on the Discord server
Setup Process
Step 1: Access NeuralTalk AI Integration Settings
- Log in to your NeuralTalk AI dashboard
- Select the chatbot you want to connect to Discord
- Navigate to Settings in the left sidebar
- Click on Chatbot Settings from the expanded menu
- Find the Discord integration card in the integrations section
- Click the Connect button to start the integration process
Step 2: Authorize Discord Integration
When you click Connect in NeuralTalk AI, youโll be redirected to Discordโs authorization page:
Review Application Permissions: Youโll see a screen asking for permission to access your Discord account
The application will request permission to:
- Add a bot to a server
- Access your username, avatar, and banner
- Know what servers youโre in
- Create commands
- Have an existential crisis (this is a joke permission Discord shows)
- Select your Discord server from the dropdown menu where you want to add the bot
- Click Continue to proceed to the next authorization step
Step 3: Grant Bot Permissions
In the next screen, youโll need to authorize specific permissions for your bot:
The bot will request the following permissions:
- โ
Administrator (for full server access)
- โ
Manage Roles (to assign roles if needed)
- โ
Manage Nicknames (to change user nicknames)
- โ
Change Nickname (to change the botโs own nickname)
- โ
Manage Expressions (to manage server emojis and stickers)
- And other necessary permissions for proper functioning
- Review all the permissions listed
- Click Authorize to grant these permissions to your NeuralTalk AI bot
- Complete any CAPTCHA verification if prompted
Step 4: Verify Successful Connection
After successful authorization, youโll be redirected back to your NeuralTalk AI dashboard where you should see:
The connection status will show:
- โ
Discord Connected
- Connected to server: [Your server name]
- Server ID: Your Discord server ID number
- Connected Channels: Number of channels the bot has access to
- Last Connected: Date of connection
- Token Expiry: Current status of your bot token
Youโll also see a red Disconnect button if you need to remove the integration later.
How It Works
Once connected, your NeuralTalk AI Discord bot will:
- In channels: Respond when mentioned (@YourBot) or when using configured slash commands
- In direct messages: Respond to all messages sent directly to the bot
- Process messages through your NeuralTalk AI chatbot backend
- Use your trained knowledge base to provide relevant responses
Usage Examples
Channel Usage
Users can interact with your bot in a Discord channel by:
- Mentioning the bot with a question (e.g.,
@YourBot How do I reset my password?)
- The bot will respond in the same channel
- Follow-up questions can be asked by mentioning the bot again
Direct Message Usage
Users can get private assistance by:
- Right-clicking on the botโs name in the server member list
- Selecting โMessageโ
- Asking questions directly to the bot in the DM channel
- Continuing the conversation naturally without needing to mention the bot
Slash Commands
If youโve configured slash commands, users can:
- Type
/ in any channel where the bot has access
- Select from available commands (e.g.,
/help, /faq, etc.)
- Complete any required parameters
- Submit the command to receive a response
๐ก Pro Tip: Set up custom slash commands for frequently asked questions or specific functions to make your bot more user-friendly.
Advanced Configuration
Configuring Slash Commands
To set up custom slash commands:
- In your NeuralTalk AI dashboard, go to Settings > Chatbot Settings
- Scroll to the Discord integration section
- Click Configure next to your connected Discord integration
- Navigate to the โSlash Commandsโ section
- Click Add Command and configure:
- Command name (without the / prefix)
- Description
- Response template or function
Channel Restrictions
You can limit which channels your bot responds in:
- Go to Settings > Chatbot Settings
- Find your Discord integration and click Configure
- Navigate to โChannel Settingsโ
- Choose between:
- All Channels: Bot responds in any channel it has access to
- Specific Channels: Select which channels the bot should respond in
- Save your changes
Track your Discord integration performance:
- Navigate to Analytics in your dashboard
- Select the Channels or Messages tab
- Filter by Discord integration
- View metrics such as:
- Number of interactions
- Response time
- Most active channels
- Popular topics
- User satisfaction ratings
Troubleshooting
Bot Not Responding
If your bot isnโt responding to messages:
- Check Connection Status: Ensure the bot shows as โDiscord Connectedโ in your NeuralTalk AI dashboard
- Verify Bot Status: Check if the bot appears online in your Discord server
- Check Permissions: Ensure the bot has the correct permissions in the server and specific channels
- Message Content Intent: Verify that Message Content Intent is enabled in the Discord Developer Portal
- Re-authorize if needed: If issues persist, try disconnecting and reconnecting the integration
Integration Disconnected
If your Discord connection is lost:
- Go to Settings > Chatbot Settings
- Check if the Discord integration shows โDisconnectedโ
- Click Connect and go through the authorization process again
- If issues persist, you may need to reset your Discord bot token and update it
Permission Issues
If users report the bot cannot perform certain actions:
- Check that the bot has Administrator permissions or the specific permissions it needs
- Ensure the botโs role is positioned high enough in the serverโs role hierarchy
- Verify channel-specific permissions havenโt been restricted
Best Practices
- Set Clear Expectations: Use a bot description or welcome message to help users understand what your bot can help with
- Monitor Conversations: Regularly review bot interactions to identify areas for improvement
- Update Knowledge Base: Keep your NeuralTalk AI chatbot trained with current information
- Use Rate Limiting: Configure appropriate rate limits to prevent spam and abuse
- Test Thoroughly: Test the bot in a private channel before making it available server-wide
Security Considerations
- Always keep your Discord bot token secure
- NeuralTalk AI encrypts your token and all communication with the Discord API
- Consider restricting the bot to specific channels for sensitive communities
- Be mindful of what information your bot is trained to share in public channels
- Regularly review and update bot permissions as needed
Disconnecting Your Bot
To disconnect your Discord integration from NeuralTalk AI:
- Go to Settings > Chatbot Settings
- Find the Discord integration card
- Click the red Disconnect button
- Confirm the disconnection when prompted
This will stop the bot from processing messages but will not remove the bot from your Discord server. To completely remove the bot:
In Discord:
- Go to your Server Settings
- Navigate to Members
- Find your NeuralTalk AI bot and click Kick or Ban
Alternatively:
- Right-click on the botโs name in any channel
- Select Kick from server
Need Help?
If you encounter any issues while setting up or using your Discord integration:
- Check our troubleshooting guide above
- Visit our documentation for more detailed guides
- Contact our support team at [email protected]
- Join our Discord community for peer support and tips
Next Steps