video

How To Build an AI Chat Bot on Discord

Step by step guide on how to launch an AI chat bot on your Discord server. Takes no more than 10 minutes and no coding is required!

In this guide, we’re going to follow 5 simple steps to create a smart conversational AI that anyone can talk to on your Discord server:

  1. Create a Discord server
  2. Create a Discord application
  3. Add bot to your Discord server
  4. Create a Quickchat.ai account
  5. Integrate your Discord bot with Quickchat.ai

Here’s what it’s going to look like once we’re finished:

End goal - smart conversational AI that anyone can talk to on your Discord server

End goal - smart conversational AI that anyone can talk to on your Discord server

1. Create a Discord server

If you’re reading this you probably know what Discord is. But in case you don’t, in their own words, Discord is Your Place to Talk and Hang Out. You can create communities, talk via text or voice and share digital content. Reportedly, Discord has now grown to 150M monthly active users (as of September 1st, 2021).

If you don’t have a Discord account yet, head over to discord.com and create one. I’d also recommend downloading their mobile or desktop app if you’re planning to use it more.

Once you’re logged in, go ahead and create your first server:

Create your first server

Create your first server

Server creation steps

Server creation steps

And you’re done!

And you’re done!

2. Create a Discord application

We will now create a Discord application for your bot. Head over to discord.com/developers/applications and make sure you’re still logged on as to your Discord account.

Create a new application

Create a new application

Choose application name

Choose application name

And you’re done!

And you’re done!

3. Add bot to your Discord server

We will now create your bot and add it to your Discord server.

Add new bot

Add new bot

Continue

Continue

And you’re done!

And you’re done!

Adding bots to Discord servers is super simple. We will generate a unique URL which you (or any other Discord server administrator) can click on or paste into your browser. Bot will magically appear in the chosen server.

First of all, let’s generate our URL by choosing OAuth2, URL Generator on the left hand side:

Assign the bot scope

Assign the bot scope

It’s usually best to give the bot the minimum necessary permissions. We need the bot to be able to: - send messages in channel - create public threads - send messages in threads

Choose permissions and copy your URL

Choose permissions and copy your URL

In general, your URL will have the following structure:

https://discord.com/api/oauth2/authorize?client_id=<YOUR CLIENT ID>&permissions=309237647360&scope=bot

Let’s now add it to your Discord server by simply pasting it into the browser. As before, make sure that you’re logged in to your Discord account.

Select the server to add the bot and continue

Select the server to add the bot and continue

When adding the bot user will be asked to confirm permissions requested by the bot creator

When adding the bot user will be asked to confirm permissions requested by the bot creator

And that&rsquo;s it!

And that’s it!

You will now be able to see that the bot has appeared on your server. It is however offline for now. Our final step is to use Quickchat.ai to launch the AI that will power the bot!

Bot joined server but for the time being it is offline

Bot joined server but for the time being it is offline

4. Create a Quickchat.ai account

Quickchat.ai allows you to create your own AI Assistant that has great conversational skills and general world knowledge by default, out of the box.

If you want to, you can give your AI specific knowledge about your company, project, product or virtually anything else. If you want to learn how to do it, watch our 10-minute video guide on YouTube.

But even without any specific knowledge the Quickchat engine makes a great conversation partner so we’re going to go with that for now. Head over to quickchat.ai and create your account:

Start building

Start building

Subscribe for the 2-week trial for just $14.

Subscribe and pay with Stripe

Subscribe and pay with Stripe

5. Integrate your Discord bot with Quickchat.ai

The final step is to enable your Discord bot in the Quickchat dashboard. Select Settings on the left and scroll down to the Discord bot section:

Discord bot section in dashboard Settings

Discord bot section in dashboard Settings

Let’s now retrieve your Discord bot token. Head over to the Bot section of your Discord application settings and copy the token:

Copy bot token

Copy bot token

Now enable your Discord bot in Quickchat settings and paste the token:

Paste bot token retrieved from Discord developer portal

Paste bot token retrieved from Discord developer portal

And that’s it! 🎉 Go back to Discord and check that your bot is now online. Magic!

Your Discord bot is now live!

Your Discord bot is now live!

Share this article:

comments powered by Disqus