Skip to main content

Discord

This documentation will teach you how to integrate your AI into Discord.

Integration is a paid user feature. Therefore, only users with professional subscriptions and above can use integrations.

How to Setup a Discord Integration

Prerequisites:

Step 1: Create an AI Application

  1. Navigate to Vanus AI and sign in with Github, Google, Microsoft Account① or click Sign up②.

ai_integration_discord1

  1. Initiate a new AI App by hitting the Create App③ button.

ai_integration_discord2

  1. Input an App Name④, select an App Model⑤, upload to the Knowledge Base⑥, then click Create⑦.

ai_integration_discord3

If you find yourself uncertain about which app model to select, please refer to the Large Language Models (LLM) Documentation for clear guidance on choosing the most suitable LLM for your requirements.

note

In the next steps, we will go to the Discord website or Application to create our Discord Server and get the required credentials to make the connection.

Step 2: Create a Discord Server

  1. Access the Discord App or Webpage at Discord.

  2. After signing in, you can press the + button to establish a new channel①.

ai_integration_discord4

  1. Hit Create My Own②.

ai_integration_discord5

  1. Select For me and my friends③.

ai_integration_discord6

  1. Input a SERVER NAME④ and click Create⑤.

ai_integration_discord7

Step 3: Develop a Discord Application

  1. Go to the Discord Developer Portal.

  2. Press New Application①.

ai_integration_discord8

  1. Assign a NAME② to your bot, agree to the Developer Terms of Service and Developer Policy③, then hit Create④.

ai_integration_discord9

  1. From the sidebar menu, select Bot⑤, and under Privileged Gateway Intents, enable MESSAGE CONTENT INTENT⑥.

ai_integration_discord10

  1. Click on Save Changes⑦.

ai_integration_discord11

  1. Press Reset Token⑧.

ai_integration_discord12

  1. Copy⑨ the generated token.

ai_integration_discord13

  1. Return to Vanus AI, click on the Integrations⑩ tab and select Discord Integration⑪.

ai_integration_discord14

  1. A dialog box⑫ will be displayed on the screen, featuring two blank fields: for a Name and Bot Token.

ai_integration_discord15

  1. Name⑬ the integration, paste the Bot Token⑭, and hit Create⑮.

ai_integration_discord16

  1. Your integration has been successfully created and is now Running⑯.

ai_integration_discord17

  1. Finally, to add an AI bot to a channel, return to the application within the developer portal.

  2. In the sidebar menu, find OAuth2⑰ and URL Generator⑱.

ai_integration_discord18

  1. Choose bot⑲ under SCOPES.

ai_integration_discord19

  1. Under BOT PERMISSION (ReadMessages/ViewChannel, Send Messages, Mention Everyone, Use External Emojis, Send TTS Messages, Send Messages In threads, Create public, threads Create private threads) or Administrator.

ai_integration_discord20

  1. Copy⑳ the URL, and then insert it into a web browser to access the authentication page.

ai_integration_discord21

note

The URL㉑ is a website link that directs you to a page where you need to authorize your newly created bot to access a Discord server.

  1. Choose your Server㉒ and press Continue㉓.

ai_integration_discord22

  1. Click on Authorize㉔.

ai_integration_discord23

  1. Your Bot has been successfully authorized㉕.

ai_integration_discord24

  1. Return to your Discord Application or website.

ai_integration_discord25

Communicate with the AI

  • To Send a message in a channel, you need to mention the AI①.

ai_integration_discord26

Important: Please be aware that each bot carries a role with a similar name, and trying to mention the role will not yield any results.

ai_integration_discord27

  • To send a message privately, you can click on the AI bot②.

ai_integration_discord28

  • Write and send your message.

ai_integration_discord29

ai_integration_discord30