# Create a Discord Bot

Follow the next set of steps to create your own Discord bot:

1. Navigate to [Discord Developer Portal](https://discord.com/developers/applications)

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2Fdyona2KbqtXWRzIjeoRh%2Fdbc-ss-1.png?alt=media&#x26;token=59d5c2a7-0129-4d6d-b1db-9fb5807efd8e" alt=""><figcaption></figcaption></figure>
2. Click on **New Application**

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FRC7mqhsmJxAy6ycXYpG8%2Fdbc-ss-2.png?alt=media&#x26;token=2d4bef03-37fc-4c9e-9d6d-2aecadc8c3d8" alt=""><figcaption></figcaption></figure>
3. Enter the name of the bot that you want to create. Let's go with **ConvaiTracy**
4. Accept the Developer Terms of Service and Developer Policy and click on **Create**.

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2Fvn6C7lQlcTrTUYJ6gXQw%2Fdbc-ss-3.png?alt=media&#x26;token=9b961e9b-9531-4f04-8f53-0836433fcbba" alt=""><figcaption></figcaption></figure>
5. Now, you land on the application details page. Upload an app icon and provide a description as you see fit. and click on Save Changes.

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2F1OAL7f4qWdHzHjz1rgpL%2Fdbc-ss-4.png?alt=media&#x26;token=ebfdcc87-33b8-427e-816b-32d7ca30cfea" alt=""><figcaption></figcaption></figure>
6. Then click on **OAuth2** --> **URL Generato**r&#x20;

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FU8pWZGaLCYDVHpnnrpMl%2Fdbc-ss-5.png?alt=media&#x26;token=f39056ec-c9d1-4c14-bca4-6172ffd9e21d" alt=""><figcaption></figcaption></figure>
7. Click on the **bot** checkbox under the **Scopes** section

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FJh426SZX69YwQxG9KQLt%2Fdbc-ss-6.png?alt=media&#x26;token=19ce4d46-835e-40e2-a25a-56e0eaafb562" alt=""><figcaption></figcaption></figure>
8. Click on the following checkboxes under the various Permissions

   1. General Permissions:
      1. Manage Webhooks
   2. Text Permissions:
      1. All the checkboxes
   3. Voice Permissions:
      1. Connect
      2. Speak
      3. Use Voice Activity
      4. Priority Speaker
      5. Request To Speak

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FyxlhJvRD37KhN4XP0P6n%2Fdbc-ss-7.png?alt=media&#x26;token=2cc5995a-f642-4b77-a7cd-ae14a74f3eb1" alt=""><figcaption></figcaption></figure>
9. Copy the URL generated below. This will be the shareable invite link for the bot on all servers.

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2F2KNBniuEJpAFEasxteX2%2Fdbc-ss-8.png?alt=media&#x26;token=f8f95ce2-13e4-4e8e-b8f9-f3298c6344eb" alt=""><figcaption></figcaption></figure>
10. Next click on **Bot**
11. Click on **Add Bot**  --> **Yes, do it!**

    <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2Fy4ueHlTuz811bSPQim6B%2Fdbc-ss-9.png?alt=media&#x26;token=ac5e425e-5128-4828-8757-59d4aa66987b" alt=""><figcaption></figcaption></figure>
12. Allow the following intents under the **Privileged Intents** section and click on **Save Changes.**

    <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FLKyq00UsEm66UOEqX8aW%2Fdbc-ss-10.png?alt=media&#x26;token=cdfa1ed0-160e-4980-a889-fc991b60583d" alt=""><figcaption></figcaption></figure>
13. Click on **Reset Tokens** to generate a new token for the bot. Then click on **Yes, do it**

    <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FCmXLYNsKA5EGFP3NzyWH%2Fdbc-ss-11.png?alt=media&#x26;token=4d0bf88b-4ceb-4c79-8d26-ed08393415c0" alt=""><figcaption></figcaption></figure>
14. **Copy** the generated token to be used later for hosting the bot server.

Now we move on to connecting the Discord bot with a Convai Character and hosting the server.

{% content-ref url="hosting-discord-bot-from-personal-server" %}
[hosting-discord-bot-from-personal-server](https://docs.convai.com/api-docs/plugins-and-integrations/other-integrations/discord/hosting-discord-bot-from-personal-server)
{% endcontent-ref %}
