# Invite Your Bot

First, visit the [Discord Dev Portal](https://discord.com/developers) and head on over to the `OAuth2` tab.

<figure><img src="/files/GNpBFDXQqoyjQITDXvdf" alt=""><figcaption><p>OAuth2 Tab</p></figcaption></figure>

Once there, locate the "OAuth2 URL Generator" section and select all necessary scopes. For all Discord Bots, select the `bot` scope and if you have slash commands on your bot, then also select the `applications.commands` scope, if you are unsure if your bot has slash commands or want to implement them in the future, just select it just in case.

<figure><img src="/files/88kP73yIWdbbswmz9KSA" alt=""><figcaption><p>OAuth2 URL Generator</p></figcaption></figure>

Once you have selected the scopes, scroll down to the new area available and select your bot's permissions based on what you want it to do. For your bot to be able to do anything, just select the `Administrator` scope.

<figure><img src="/files/2j8wNEd78WJ6Pi0WvIpz" alt=""><figcaption><p>Bot Permissions</p></figcaption></figure>

Now we are done, just copy the `GENERATED URL` at the bottom and paste it in a new tab to add your bot to your server and share the link with your friends if you want them to add your bot as well.

<figure><img src="/files/4fT6WPNCLvbwwoPqnW0E" alt=""><figcaption><p>Generated URL</p></figcaption></figure>


---

# 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.uniplex.xyz/bot-hosting/invite-your-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.
