The Discord integration allows your AI Agents to authenticate users with their Discord accounts and access Discord servers, channels, and messaging features on their behalf.

Overview

The Discord integration is perfect for AI applications that need to interact with Discord communities, manage servers, send messages, or automate community workflows. This integration provides access to Discord’s rich API for server and user management.

Configuration

1

Set up app in Discord

  1. Sign up for a Discord Developer account
  2. Create a new application in the Discord Developer Portal
  3. Navigate to the OAuth2 section and note your Client ID and Client Secret
2

Configure for Auth0

  1. Use the following settings when configuring your app:
  • Homepage URL: https://YOUR_AUTH0_DOMAIN
  • Authorization callback URL: https://YOUR_AUTH0_DOMAIN/login/callback
You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.

Add Connection in Auth0

In the Auth0 Dashboard, navigate to Authentication > Social and select Create Connection. Then, choose the matching connection from the list of supported options to add and begin the configuration process. Follow the prompts to configure your selected provider.

Enable Token Vault

At the bottom of the connection settings in the Advanced section enable the Enable Token Vault toggle. This will allow your connection to retrieve and store access tokens for third-party APIs.

Account linking

If you want to use more than one connection for a user, you can link their accounts. This allows the user to log in with any of their linked accounts and have a single user profile in your application. This allows calling APIs from different providers with a single user profile. Learn more about Client-initiated account linking.

Learn more