# Custom bot

First, head on over to the appy dashboard by [clicking here](https://appybot.xyz/dashboard?selected=customInstance)

Once done, you will see the following page. Now its time to start configuring your bot, see below for more details

<figure><img src="/files/uUztNXxhK09I9JLYRF6C" alt=""><figcaption></figcaption></figure>

## Creating the app

First, kick the main Appy bot from your server (don't worry, your server settings wont be deleted). Once done, visit the discord developer page by [clicking here](https://discord.com/developers/applications)

### Click the new application button:

<figure><img src="/files/9MB2GHf900bV1B8r3Zq1" alt=""><figcaption></figcaption></figure>

Fill out the contents of the form and click create:

<figure><img src="/files/JrLGBgWHAegwezBZA1d7" alt=""><figcaption></figcaption></figure>

Head on over to the "bot" page and enable the circled intents.

{% hint style="warning" %}

## Important

You must only enable the settings which are circled. If you enable any others you may run into issues.
{% endhint %}

<figure><img src="/files/casmcLqVfUHKu68rD4t1" alt=""><figcaption></figcaption></figure>

## Setting up OAuth callbacks

The next step is to setup the oauth callback so that you can invite the bot to your server. Head on over to the "oauth" page and copy the following url into the redirects box: `https://appy.bot/callback/discord`&#x20;

<figure><img src="/files/pcRam9Wd1EuDl5ATTR4H" alt=""><figcaption></figcaption></figure>

## Obtaining the bot token

Head on over to the "bot" tab, and you'll see your token. Copy this and paste it into the appy website

<figure><img src="/files/QVcy3wZTf6hib1i3RoFL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/sqPHfiW3QzWaP4zrASQZ" alt=""><figcaption></figcaption></figure>

Now, go back to appy site and finish the configuration!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appy.bot/getting-started/set-up/custom-bot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
