> For the complete documentation index, see [llms.txt](https://docs.copia.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.copia.io/docs/git-based-source-control/integrations/discord.md).

# Discord

### Overview

Setting up the Discord integration is a quick and simple process of copying and pasting your webhook URL from Discord into the *Webhook* settings page in Copia.

### Configure Discord

First, ensure that Discord can receive notifications via a webhook from Copia. You can refer to [this guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) to configure Discord to receive a webhook.

After creating a webhook, copy the webhook URL for the server or channel you want to receive messages at by clicking the \_Copy Webhook UR\_L button.

![](https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2FgKDEhvK6tsCqWPZIKAiH%2FIntegration_Discord.png?alt=media\&token=b7cde37b-50c5-4b35-830b-3a3c7b7550af)

### Create a Webhook in Copia

Choose the repository you want to create an integration for. Navigate to the *Settings* tab and choose the *Webhooks* section. Click on the *Add Webhook* button and select the *Discord* option.

![](https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2F2hjJjlMMUujfoF7zkwQ6%2FWebApp_Integration_Discord.png?alt=media\&token=82c2416a-2d01-4ab7-a564-b2890a4c6690)

Paste the Discord webhook URL into the Target URL field. You can optionally add a Username and Icon URL, which will be displayed with every event in Discord.

Choose which events you want to trigger a notification. When complete, click the *Add Webhook* button.

![](https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2FIMvUVzzWOEVaE64wojLv%2FWebApp_Integration_Discord_InProgress.png?alt=media\&token=abd0e9ca-6373-4ca7-a4c0-f7c3867febe0)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.copia.io/docs/git-based-source-control/integrations/discord.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
