# Discord

{% embed url="<https://www.loom.com/share/a21f43a053f949cd97e234dc47d26650?sid=c19fdfb1-b54e-4adc-9e65-2f16cdb3bc1d>" %}

1. Log in to [Dashboard](https://orimon.ai/login) -> navigate to the overview page of the bot that you want to change.
2. On the overview page, you will see several tabs. Look for the one labelled "Launch" and click on it.

<figure><img src="/files/78Vke399BhS8XtzzAuPM" alt=""><figcaption></figcaption></figure>

3. Select the "Discord" tab. Click on the "**Enable**" switch to enable the integration.
4. After you enable the Integration, you will see a page as shown below.

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

{% hint style="warning" %}
**Important Note:** *Please note that you must <mark style="color:blue;">**sign-in**</mark> to your discord account, on your browser, where you wish to integrate your OrimonAI chat-bot, before proceeding further. A link for doing the same is provided on the Integration page as well as* [*here*](https://discord.com/developers/applications)*.*\
\
*You need to create a Discord Account,* [*here*](https://discord.com/register) *in-case you don't have one.*
{% endhint %}

5. Now, click on the **Discord application** link, provided on the integration page, this should redirect you to a new window, as shown below. Click on "**New Application**" on the top-right corner.

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

6. Following this a prompt will open up, asking you to name your application

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

7. Pick a name of your choice and then click on "**Create**", after which you will see a page as shown below.

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

8. Now, copy both the **Application ID** & **Public Key** one by one and paste them in their respective dialog boxes on the integration.
9. Then navigate back to the Application page on DIscord and one the panel on the left navigate to "**Bot"** as shown below.

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

10. Then under the "**Token**" section click on "**Reset Token**" and on the pop-up that opens, asking for confirmation click "**Yes, do it**"&#x20;
11. After doing this you'll see a token for Integrating your chat-bot with discord as shown below.

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

12. Copy this token and navigate back to the integration page on your dashboard, and paste this under "**Bot Token**" dialog box.

{% hint style="warning" %}
**Caution:** If you **Reset** the **Bot Token** post Discord integration, the bot will be *<mark style="color:orange;">inaccessible until you delete the integration</mark>*. To resume, create a new integration with the updated token.
{% endhint %}

13. Now click on "**Submit**" on the Integration page on your dashboard, then a pop-up will open up asking you to confirm your integration. Click on "**Continue Integration**"

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

If your bot has successfully integrated you will see a page like the one shown below.

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

14. In order to make your discord bot operational, you need to add atleast one command to this integration.\
    For this click on the "**+**" button in the "**Chat Commands**" like shown below.

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

15. Then a pop-up will open, asking you for information/configuration of your command, fill the details according to your preference, an example of which is shown below.

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

Then click on "**Submit**".

16. If your command has been successfully added, you will see a screen like the one shown below.

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

17. Here click on the link to "**Add Bot to Server**", after which you will be redirected to a screen where a pop-up will ask you to select a server to add the bot to, like the one shown below.

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

From the drop-down, select the server of your choice and click on "**Continue**" & on the authorisation page that shows up next, click on "**Authorise**".

18. Now you can go to the server where you have integrated your chat-bot to test if it is functioning as expected, by using the command you configured.

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

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

That's all for Integrating your chat-bot with Discord!


---

# 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://orimon.gitbook.io/docs/channels/discord.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.
