# Discord Integration

It is possible to have Discord messages received by the BotManager. To do this, you have to create a webhook and provide that url in BotManager.

{% hint style="info" %}
This feature is currently only used by the Automation and Margin Watch Add-Ons. Both Add-Ons can send automatic status notifications. See [here](https://docs.botmanager.io/add-ons/margin-watch#status-notifications) for Margin Watch and [here](https://docs.botmanager.io/add-ons/automation#status-notifications) for Automation.
{% endhint %}

## Step by Step Guide

In this tutorial, you will configure your own Discord server, create a Discord webhook, configure BotManager, and test notifications from your BotManager to your Discord channel.

### Prerequisites

* A Discord account. You can visit the [Discord registration page](https://discordapp.com/register) to sign up for a free Discord account.

### Step 1 - Setting Up Your Discord Webhook <a href="#step-1-setting-up-your-discord-webhook" id="step-1-setting-up-your-discord-webhook"></a>

Once you have opened your Discord account you can create your own private Discord server.

First, [log in to your Discord account](https://discord.com/login) in your browser or [launch your Discord app](https://discord.com/new/download) and click on the **Create a server** button.

![](/files/5g1eD499SBNCb494eaF1)

Then pick a name for your server and click on the **Create a server** button.

Next, you will configure your Discord webhook. The webhooks are unique URLs that you can use to link services together. Discord’s webhooks allow you to automate your messages and send data updates to your Discord text channels.

To create a webhook you have to first click on your channel and then click on the **Edit Channel** button right next to your channel’s name.

![](/files/864iGC7xnh72kMc7puC9)

Then click on the **Webhooks** tab and click the **Create Webhook** button.

![](/files/NfusHerNT7EE07qh5DNw)

After that, pick a name for your webhook. You can simply use *BotManager* for that.

Copy your webhook URL and save it for later. Finally, click the **Save** button.

![](/files/OS70GLjpfWiuuztV2ise)

You now have your Discord account, server, and webhook. You can now move on to BotManager.

### Step 2 - Configure BotManager to use Discord

Click on the Button **Discord & Telegram Intergration**

![](/files/AAbj7ME61SGfktqxIjri)

Paste the webhook URL in the text field and click on **Apply**.

![](/files/oZGspxX8MVDh3PbM4VQY)

BotManager will now send Notifications to this URL and Discord will make sure that you get those messages on your channel.

Click on the **Test** Button to receive a Test Message from BotManager in your Discord channel.

### Step 3 - Turn on Notifications

See [here](https://docs.botmanager.io/add-ons/margin-watch#status-notifications) for Margin Watch and [here](https://docs.botmanager.io/add-ons/automation#status-notifications) for Automation.

###


---

# 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://docs.botmanager.io/discord-integration.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.
