> For the complete documentation index, see [llms.txt](https://docs.lossless.io/aegis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lossless.io/aegis/add-a-notification-channel/add-a-discord-notification-channel.md).

# Add a Discord notification channel

To set up a Discord notification channel, you will need a Discord webhook URL. We recommend you create a test Discord server for Aegis alerts before enabling it in a public server.

You will need to create a Discord webhook URL using the Discord interface and then return to Aegis to finish setting up your notification channel.

#### Create a Discord webhook URL

1. Open the Discord server where you wish to set up alerts.
2. Click on your server name in the top left corner to see your server options.
3. Click “Server Settings”.
4. Click “Integrations” under APPS.
5. Click “Create Webhook”.
6. Click on your newly created webhook where you can rename it and select the channel where your notifications will begin appearing.
7. Click “Copy Webhook URL”.
8. Go back to Aegis and paste your Discord webhook URL into the Discord Webhook field.
9. Once you paste the URL into the field, Aegis will verify that the webhook is valid and you will see a “Try” button.
10. Click “Try” to test your Discord notifications. If you did everything correctly, you will receive a message saying “test message” to your selected channel.


---

# 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.lossless.io/aegis/add-a-notification-channel/add-a-discord-notification-channel.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.
