> For the complete documentation index, see [llms.txt](https://help.johnbot.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.johnbot.app/en/getting-started/add-bot.md).

# Add the Bot

**Video tutorial related to this page:** [Adding John-Bot to Your Discord Server - Tutorial #1](https://jnbt.xyz/tutorials/add)

## :link: Access the Invitation Page

To add John-Bot to your Discord server, head to John-Bot's invitation page. You can access it in several ways:

* Through the website, then click the "Add to Discord" button;
* Using the `/invite` command on a server that already has the bot (see image);
* Through the direct link: [https://jnbt.xyz/invite](https://jnbt.xyz/invite/docs)

![/invite command on a Discord server with John-Bot](/files/Llzdf0ZdOCFJRmxYGEcQ)

## :envelope: Invitation Process

Once on the invitation page, select the server you want to add John-Bot to, then click "Continue." Make sure the "Administrator" permission is properly checked, then confirm by clicking "Authorize." You may be asked to enter your two-factor authentication code ([2FA Support](https://support.discord.com/hc/en-us/articles/219576828-Setting-up-Two-Factor-Authentication)) or complete a CAPTCHA to verify you're not a robot.

## :hourglass: Finalization

After confirming the addition of John-Bot, check that it's online on your server. If it is, we recommend moving on to the next section of the getting started guide. If it isn't, this is usually caused by a misconfigured anti-raid bot or a permissions issue.\
If you run into any issues, feel free to [contact the John-Bot team](/en/contact.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.johnbot.app/en/getting-started/add-bot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
