> 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/slack.md).

# Slack

## Overview

The Slack webhook is a popular Copia integration. You can integrate Copia with Slack to receive custom notifications for Copia activity.

## Configure Slack

Start by configuring Slack to receive notifications via a webhook from Copia. A detailed guide on this process can be found [here](https://api.slack.com/messaging/webhooks).

Once you have created an App, enabled *Incoming Webhooks*, and selected a Channel to post to, you should have access to Slack's Webhook URL. Copy the URL to your clipboard by clicking the *Copy* button.

![](https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2FcVrysabbO3awZvFZEZAY%2FSlack_CopyURL.png?alt=media\&token=708fec4a-8e65-46ab-a508-e83124db638b)

## Create a DeviceLink Webhook in Copia

To create a DeviceLink Site webhook in Copia using the Slack URL, see the [DeviceLink Webhooks](/docs/devicelink/additional-features/webhooks.md) topic.

## Create a Repository Webhook in Copia

From the Repository settings, navigate to the *Settings* tab and choose the *Webhooks* section. Click on the *Add Webhook* button and select the *Slack* option.

![](https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2FBMnsZ2rur81pus21oEXT%2FWebApp_Integration_Slack.png?alt=media\&token=1cbbd9f9-5aa3-4a9b-bc95-7ef1fa00330c)

Paste the URL into the *Target URL* field. Be sure to 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%2F1LWzXqsl442qdZbx31qB%2FWebApp_Integration_Slack_InProgress.png?alt=media\&token=92cd8e01-0047-4718-b9dd-c4638bf60979)


---

# 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/slack.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.
