> For the complete documentation index, see [llms.txt](https://docs.nisa.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nisa.ai/deploying-bots/discord.md).

# Discord

## Setting Up Nisa Discord Bot

Connect Nisa to your Discord and set up the interactions endpoint URL. \
\
Follow these steps:

**Prerequisites:**

* A Discord account.
* "Manage Server" permission on the Discord server to add the bot.

**Step 1. Navigate to Discord Developer Portal**

* Visit the [Discord Developer Portal](https://discord.com/developers/applications).
* Log in with your Discord credentials.

**Step 2. Create a New Application**

* Click on the “New Application” button.

<figure><img src="/files/Fl0CDUIw367Ayq4LtIzA" alt=""><figcaption><p>creating a new application in Discord</p></figcaption></figure>

* Add the application's name and press 'Create'' button.

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

**Step 3. Set Up a Bot User**

* Create a new deployment.

<figure><img src="/files/fuk8qq7DrnqWEcpjkiXD" alt=""><figcaption><p>creating new deployment in Nisa's CMS</p></figcaption></figure>

* Add the necessary informations.

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

Your Nisa product will generate the Interactions Endpoint URL and the invitation URL upon saving the deployment.

**Step 8. Add Bot to Discord Server**

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

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

**Step 9. Configure Interactions Endpoint URL**

* Paste the Interactions Endpoint URL (generated by Nisa product) in the Discord Developer Portal.

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

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

* Save the changes.

**Step 10. Interact with Nisa Bot on Discord**

* Visit your Discord server.
* Start interacting with your bot using the '/ask' command.

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

**Conclusion**

Congratulations! Your Nisa bot is now connected to Discord, with the interactions endpoint URL configured and ready for use. Make sure to manage the bot’s permissions and roles effectively.

**Important Reminder:**

Secure your bot token; never share it or publish it online. Regenerate the token in the Discord Developer Portal under the “Bot” tab if it gets compromised.

For further assistance or inquiries, feel free to reach out. Enjoy exploring the functionalities of your new Discord bot!


---

# 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:

```
GET https://docs.nisa.ai/deploying-bots/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.
