> For the complete documentation index, see [llms.txt](https://docs.guildabot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guildabot.com/guilda-bot-knowledge-base/customer-guides/installation-guide/create-discord-app.md).

# Create Discord App

To begin linking your Discord bot to **Guilda**, you need to create a Discord application.

1. Navigate to the [Discord Developer Portal](https://discord.com/developers/applications).
2. In the top right corner, click the **"New Application"** button.

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

3. In the pop-up window, enter a name for your application, accept the TOS, then click **"Create"** and complete the Captcha.

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

Next, you’ll need to create a bot user for your application:

4. On the left-hand sidebar, click the **"Bot"** tab.

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

5. Click the **"Reset Token"** button to generate a new secret token for your bot.

   * **Note**: If you have Two-Factor Authentication (2FA) enabled, you will be prompted to enter a verification code.

   <figure><img src="/files/BlDTcMMyhrSakMf0h5Ij" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/hDIs5NxVaXLReEWtTjaf" alt="" width="307"><figcaption></figcaption></figure>

<figure><img src="/files/Ny7A3alxrFmPzck3XS7s" alt="" width="384"><figcaption></figcaption></figure>

5. After the token is generated, copy it to your clipboard (Click Copy button). You’ll need this in the next step.

   * **Important**: Keep your bot token secure and **never share it** publicly. (You can save it in a Password Manager App, secret doc, etc).
   *

   ```
   <figure><img src="/files/ZdxB7Ecu44fbP7bG4xFY" alt=""><figcaption></figcaption></figure>
   ```

Click **Next Step** below to proceed


---

# 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://docs.guildabot.com/guilda-bot-knowledge-base/customer-guides/installation-guide/create-discord-app.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.
