> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Automation destinations

> Deliver CodeRabbit automation results to a Slack or Discord channel, a Slack DM, a connected tool such as Linear, Jira, or PagerDuty, or a GitHub repository.

Cloud Only (This feature is available on CodeRabbit Cloud only. It is not available on self-hosted CodeRabbit deployments.)

A destination is where an automation delivers its result. In the automation editor, you set it in the **Target** card ("Choose where results go").

## Choose a destination

| Destination | What a run delivers |
| - | - |
| Slack channel | A message in a channel you pick under **Existing Channel**. |
| Slack DM | A message in your DM with CodeRabbit, picked as **My DM with CodeRabbit**. Available for scheduled and webhook triggers. |
| Discord channel | A message in a public Discord channel. |
| Workspace connection | A write to any connected tool CodeRabbit can write to: issue trackers such as Linear, Jira, Asana, or Trello; incident and monitoring tools such as PagerDuty, Datadog, or Sentry; support tools such as Intercom, Zendesk, or Pylon; docs and files such as Notion or Google Drive; CRM and marketing tools such as HubSpot or Salesforce; cloud and CI tools; and MCP servers. |
| GitHub repository | An issue or a pull request in the repository you select. |

An automation can deliver to up to 10 targets. In the **Target** card, select **Add target** to add another one. An automation has at most one Slack or Discord destination and at most one GitHub repository; the other targets are workspace connections. For example, the **Create PR from Linear issue** template opens the pull request in a GitHub repository and comments the pull request link on the Linear issue through a Linear target. When you start from a template, the editor uses the template's targets; to add more, save the automation, then [edit it](https://docs.coderabbit.ai/automations/create.md#edit-an-automation).

![The Target card of the automation editor, titled Post results to these targets. It holds one GitHub repository target that creates issues or pull requests in one selected repository, with the repository coderabbitai/docs selected and the target instruction Create the requested GitHub issue or pull request in this repository. Below are a Remove GitHub target button and an Add target menu.](https://mintcdn.com/coderabbit/gKPHgRl-bneGQ2yQ/assets/images/automations-target-card.webp?fit=max\&auto=format\&n=gKPHgRl-bneGQ2yQ\&q=85\&s=4df15ab36f5624d56425548578072a4c)

A GitHub repository target with its own instructions, and Add target to deliver to more places

Channel message triggers reply on the same platform as their source channel: a **Slack message** trigger in Slack and a **Discord message** trigger in Discord. They can add other targets too, such as a workspace connection. Scheduled and webhook automations created under **Slack** > **Automations** or **Discord** > **Automations** deliver to their one Slack or Discord channel.

### Workspace connections

Any connection that CodeRabbit can write to can be a destination, and the **Target** card lists every provider you can pick. Read-only connections aren't offered. Each connection destination has **Target instructions** that say how to deliver the result, such as "Post one comment on the original Linear issue with a one-line summary. Do not change issue fields." The editor shows the connections available to automations; if one is missing, see [Connections and Base Scope](#connections-and-base-scope).

### GitHub repository

Add a **GitHub repository** target and choose a **Repository**. The target's instructions say what to create, for example "Open one pull request with the implemented fix. Do not merge the pull request." CodeRabbit creates the issue or pull request with the permissions of the CodeRabbit GitHub App. See [Identity for changes](#identity-for-changes).

### Slack and Discord

For webhook automations that post to Slack or Discord, **What to post** describes the message CodeRabbit posts for each event. Safety and link rules, shown under **Advanced**, always apply.

In public Slack channels, CodeRabbit joins the channel before it posts. Discord automations work in public channels. For platform details, see [Delivery in Slack](https://docs.coderabbit.ai/slack-agent/automations.md#delivery-in-slack) and [Automations in Discord](https://docs.coderabbit.ai/discord-agent/automations.md).

## Delivery modes

Slack and Discord destinations deliver in one of two modes:

| Mode | Behavior | Used by |
| - | - | - |
| **Fresh thread** | Starts a new thread for each run. In Discord, each run posts a new message in the parent channel. | Scheduled and webhook automations |
| **Same thread** | Posts back into the original thread. | Channel message automations, which always reply to the message that started the run, and Slack automations created from a thread |

Workspace connections and GitHub repositories have no threads. Each run writes to the item the instructions name, such as the triggering issue or incident, or a new pull request.

## Connections and Base Scope

Automations created on the **Automations** page can use the connections in [Base Scope](https://docs.coderabbit.ai/connections/scopes.md#workspace-automation-connections), or in the automation's [agent scope](#agent-scope) if you set one. To use a connection that the scope doesn't include, add it to the scope first. Until you do, the editor shows a notice such as "Add this connection to Base Scope before using it in an automation." with a button to **Set up Base Scope** or **Configure Base Scope**, and **Check again** after you change it.

If the scope later drops a connection that an automation uses, the automation pauses and shows **Paused · Connection unavailable**. Add the connection back, then resume the automation.

Adding a new connection requires a CodeRabbit admin. See [Connections](https://docs.coderabbit.ai/connections.md).

Automations that live in a Slack or Discord channel or DM use the scope (A shared set of repositories and connections that controls what CodeRabbit Agent can access in a given Slack conversation.) that applies to the automation's creator in that place, or to whoever selected **Run now**, not to the person who posted a matching message. That scope decides which repositories and connections the run can use, and which spend limits apply.

### Agent scope

By default, an automation uses the workspace's default resources. To give one automation its own repositories and connections, open the **Agent instructions** card, which shows the current **Agent scope**, and select **Customize agent scope** or **Edit agent scope**:

| Option | Resources the automation uses |
| - | - |
| **Default** | The workspace's default resources. |
| **Shared** | A shared scope that you pick. Select **Customize a copy** to change a copy of it for this automation only. |
| **Custom** | Repositories and connections that you choose for this automation only. |

Select **Apply scope**, then save the automation. Changing an automation's agent scope requires permission to manage scopes. See [Scopes and Base Scope](https://docs.coderabbit.ai/connections/scopes.md).

## Identity for changes

Automation runs never act with a personal, per-request "as me" identity, even when the instructions ask for it.

Issues and pull requests that an automation creates in a GitHub repository destination are created with the permissions of the CodeRabbit GitHub App, so the app must be installed on that repository.

For which connections and repositories a run can use, see [Connections and Base Scope](#connections-and-base-scope). Connection permissions and repository access checks always apply.

## What's next

> [card] [Manage and monitor automations](https://docs.coderabbit.ai/automations/manage.md)
>
> Follow each run and confirm that results reached their destination.

> [card] [Scopes and Base Scope](https://docs.coderabbit.ai/connections/scopes.md)
>
> Control which connections automations can use.

> [card] [Automation guides](https://docs.coderabbit.ai/automations/guides.md)
>
> See which destinations fit incident response, support triage, and ticket triage.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.