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

# Automations

> Create scheduled, webhook, and message-triggered tasks that CodeRabbit Agent runs automatically in Discord.

export const OpenBetaBadge = ({tip = "This feature is currently in open beta. We are actively improving it based on your feedback. If you encounter any issues or have suggestions, please share them on our Discord community or visit the support page.", title = "Open Beta", cta = "Contact support", href = "/support", disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="badge-alert" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const GitLabBadge = ({tip = "This feature is available on GitLab.", title = "GitLab", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="gitlab" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const GitHubBadge = ({tip = "This feature is available on GitHub and GitHub Enterprise.", title = "GitHub", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="github" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

<GitHubBadge title="GitHub Cloud" tip="CodeRabbit Agent for Discord is available for eligible open-source communities with public GitHub repositories." /> <GitLabBadge title="GitLab Self-Hosted" tip="CodeRabbit Agent for Discord is available for enabled GitLab Self-Hosted organizations." /> | <OpenBetaBadge title="Limited Availability" tip="CodeRabbit Agent for Discord is available to selected communities and organizations during launch." cta="Get started" href="https://www.coderabbit.ai/discord" />

Automations let CodeRabbit Agent run recurring or event-driven tasks in Discord.

<Info>
  During launch, automations are supported only in public Discord channels. Private channels and direct messages are not supported.
</Info>

## Parent-channel scope

An automation authored in a native thread belongs to the verified parent channel. The parent channel determines where the automation appears in lists, which authorization rules apply, which messages can match, and where authorized users manage it.

The native thread remains the conversation context for authoring, confirmations, controls, and management-card updates. These interactions return to the thread where the automation was created.

## Delivery by trigger

Automation delivery depends on the trigger type:

| Trigger                                    | Delivery                                                                                                                |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| Message triggered                          | **Same thread**: matches messages in the parent channel and replies to each matching message in its originating thread. |
| Scheduled, recurring, or webhook triggered | **Fresh thread**: posts a new message in the parent channel for each run.                                               |

Confirmations, controls, and management-card updates return to the originating native thread, regardless of how run results are delivered.

## Compatibility with thread-scoped automations

<Info>
  Automations saved against a native thread continue to match, appear in lists, and accept authorized management actions. No customer migration is required. Editing an existing scheduled, recurring, or webhook automation updates its delivery to a new parent-channel message for each run. Message-triggered automations continue to reply to each matching message in its originating thread.
</Info>

## What's next

<CardGroup cols={1}>
  <Card title="Set up CodeRabbit Agent for Discord" href="/discord-agent/setup" icon="settings" horizontal>
    Connect an eligible community and configure CodeRabbit Agent for Discord.
  </Card>

  <Card title="Usage and limits" href="/discord-agent/usage-and-limits" icon="message-circle-warning" horizontal>
    Review the Discord surfaces and launch limits that apply to automation runs.
  </Card>
</CardGroup>
