> For the complete documentation index, see [llms.txt](https://docs.betsybot.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.betsybot.xyz/features/settings/setting-up-your-custom-bot.md).

# Setting up your custom bot

{% hint style="info" %}
This feature requires an active [Gold Subscription](https://discord.com/channels/943258522643230740/shop). Explore unlimited possibilities with our Platinum Subscription! 🌟 With exclusive access to advanced features, your creativity will know no bounds. Join our Discord server for support and discover all you can achieve with Betsy! 🚀🌈
{% endhint %}

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

### Create your discord application

1. Navigate to[ discord applications ](https://discord.com/developers/applications)
2. Click "New Application" in the top left.\
   \
   ![](/files/utBixxsKVipq6IVnGqNc)<br>
3. Navigate to the "Bot" page on the left menu.\
   \
   ![](/files/yW1GrJPO9iHUXNNZUdVc)
4. If you do not have a bot create, create one now.
5. Enable the following Intents
   1. Server Members Intent
   2. Message Content Intent\
      \
      ![](/files/uk8ZI2OWlasyAGSnkvM5)
6. Navigate back to the General Information Tab. You will need the information here in the settings section for your custom bot on the Betsy Admin Panel\
   \
   ![](/files/6CShLwe47Bu4Hf3Mrr6j)
7.

### Invite your bot to your server

1. Navigate to[ discord applications ](https://discord.com/developers/applications)
2. Navigate to Oauth2 -> URL Generator
3. Tick on the `bot` and the `application.commands` scope.
4. Open up the generated URL to invite your bot

### Enter your discord application settings into the Betsy dashboard

1. Navigate to the "Settings" page for the server you would like to setup. E.g: \
   \
   ![](/files/Butvwfcs4bV1FOqYw6oA)
2. In the "Application Id" setting copy the "Application Id" (2) value from your "General Information" tab for your Discord Application (1)\
   \
   ![](/files/LnF4ZH0zjNS77dPsq4yx)\
   \
   ![](/files/NvjJjGCctjQFPQCIUF1i)<br>
3. Navigate to the "Bot" page for your discord application (1). Click the "Reset token" button under the Token area for the bot (2). \
   \
   ![](/files/UUgti74pObFHQ1wSZ1pH)<br>
4. A pop-up window will be displayed, click "yes"\
   \
   ![](/files/fSJNfhxnwKfqIO1WRSc3)
5. Copy this value. \
   \
   ![](/files/YTtnKPVKm5rImLFGpGEx)
6. Return to betzy's dashboard and paste that value into the Bot Token Area\
   \
   ![](/files/v2TORwCkzj2TowGArlCU)<br>
7. (Optional) Customize the status by entering your status on the settings page.\
   \
   ![](/files/rxdOdMF6V1tDp74arDfK)
8. Click "save"\
   \
   ![](/files/jwIM0K3tMemhVqkiVHeZ)

### Update your Discord Application Settings

#### Update Webhook URL

In order to receive webhook events for your custom bot you must update the "INTERACTIONS ENDPOINT URL" in the Discord Application General Information Page.

Enter the following URL "<https://api.betsybot.xyz/Webhook/DiscordInteraction?key=>{publicKey}"

You must replace {publicKey} with your application public key. Which can be found just above the Interactions Endpoint URL Input.

For example if your public key is "def077d8420fb37d33f83b835da308ded92fb61a9d9ccb443769bba31fc081ad" the url will look like <https://api.betsybot.xyz/Webhook/DiscordInteraction?key=>def077d8420fb37d33f83b835da308ded92fb61a9d9ccb443769bba31fc081ad

If you successfully added the URL it will prompt you as such. It will fail to save if you've done this incorrectly.


---

# 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.betsybot.xyz/features/settings/setting-up-your-custom-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.
