Skip to main content
This page walks through five automations teams commonly set up with CodeRabbit Agent for Slack. Each guide covers what you get, the connections you need, how to set it up, starter instructions you can paste, and ways to make it more useful. For how triggers, delivery, and permissions work, see Automations.

Before you start

All the automations on this page rely on the same setup. If you’ve already used @coderabbit in Slack, most of it is done.
  1. Set the Base Scope. In the CodeRabbit web app, open Slack > Scopes and make sure the Base Scope includes the repositories the agent should read. Automations run with the same repository and tool access as a normal request in that channel. See Scopes.
  2. Connect your tools. Go to Connections > Add connection. Each guide below lists the connections it needs. Only global admins and scope admins can add connections, and a saved connection isn’t used until it’s added to the Slack Base Scope or to a named scope. See Connections.
  3. Add the bot to private channels. CodeRabbit joins public channels automatically. For a private channel, run /invite @coderabbit in the channel first. Otherwise, saving the automation fails with “CodeRabbit could not post in that Slack channel.”
  4. Check who can create automations. In Account Settings, the automation creation setting can be Any user (the default), Slack admins or above, or Automation admins or above. If people see a message that only admins can create automations in this workspace, an admin needs to change this setting or create the automation for them.
  5. Set a budget. Automation runs use Agent minutes, the same as manual requests. In Slack > Scopes, each scope has an Automation spend limit that is separate from its User spend limit. For channels where every message can start a run, such as the question and support automations, add a named scope for that channel with its own automation limit.

Three ways to create an automation

Test before you trust it

  • Created in Slack chat: the agent runs the job once before you save. Change the wording and run it again until the output looks right.
  • Schedule: turn it on and use Run now to see the output right away. Run now isn’t available while the automation is paused.
  • Slack channel message trigger: Run now isn’t available. Turn the automation on, then post a real message that matches, or start in a test channel. A paused automation ignores new messages.
  • Webhook: turn the automation on, then send a test event from the other tool. For example, PagerDuty sends pagey.ping. The automation’s run history shows whether each event matched, and whether it ran or was skipped as a duplicate.
To see what happened in any run, open the automation’s run history or thread review. The Usage page shows the Agent minutes for each run. Several guides below add buttons, a second channel, or DMs to the result. You turn these on by describing them in the instructions. See Buttons, second channel, and DMs.

Respond to an incident

What you get: when an alert fires, CodeRabbit replies in the alert’s thread within minutes. The reply says whether the alert looks real or like noise, what changed recently in the affected service, who probably owns it, and what to do next. People can keep working with it in the thread, for example “open a revert PR” or “draft the RCA.” Connections: your observability tool. Datadog uses an API key plus an application key. Sentry, PagerDuty, and Google Cloud also work.

Option A: watch the channel your alerts already post to

Use this if Datadog, PagerDuty, or Sentry already posts alerts in a Slack channel such as #prod-alerts. You don’t need any webhook setup.
  1. In that channel, ask:
    Slack message
  2. Paste the starter instructions into the same message, send it, review the sample run, and select Create automation.
  3. To cut noise further, limit the trigger to the alerting bot and to phrases such as Triggered, P1, or [Prod].

Option B: send alerts from the source with a webhook

Use this if your alerts don’t land in Slack, or if you only want some of them, such as P1 incidents on certain services.
  1. In the web app, open Automations, choose a Webhook trigger, and pick PagerDuty, Datadog, Sentry, or Google Cloud. For PagerDuty, a global admin connects PagerDuty once and CodeRabbit manages the webhook subscription for the whole account. The Triage PagerDuty incident and Add assessment to PagerDuty incident templates are a good start.
  2. Choose event types, such as incident.triggered, and add filters such as event.data.priority.name equals P1. Datadog starts with a filter on alert_transition equals Triggered.
  3. Choose the destination Slack channel.
  4. Save and turn the automation on. For PagerDuty, CodeRabbit sets up the webhook for you. For Datadog, Sentry, or Google Cloud, follow the setup steps shown to add the webhook in that tool. Then send a test event.

Incident starter instructions

Make incident response more useful

  • Teach it your runbooks. Run /learn or ask “@coderabbit remember that the payments service is owned by #team-payments and rollbacks go through Argo.” Facts saved in public channels are shared across the workspace. You can also ask the agent to turn a good investigation into a skill, so every alert gets the same checklist.
  • Keep working in the thread. In automations created from Slack chat, the agent can also respond to later replies in the alert thread. For example: “if someone says fix it, open a revert PR.”
  • Add one-click buttons. End the instructions with “Add buttons: Open revert PR (open a PR reverting the most likely cause), Draft RCA (write an RCA in this thread) and Mark as noise (save to the knowledge base that this alert was noise).”
  • Escalate the serious ones. Add to the instructions: “If your verdict is Real and the priority is P1, also post a 3-line summary to #incidents with a link to this thread.”
  • Record the assessment in your incident tool. Add a PagerDuty connection as a destination, or use the Create Jira issue from PagerDuty incident, Create Linear issue from PagerDuty incident, or Create GitHub issue from PagerDuty incident templates to file follow-up work.
  • Schedule the RCA. In the incident thread, ask: “@coderabbit tomorrow at 10am, draft an RCA for this incident in this thread.” That sets up a one-time automation.
  • Require sign-off before risky actions. Give people the Approver role in the channel’s in Slack > Scopes. When an action needs approval, the run pauses until an Approver approves or rejects it in Slack. Automation runs are covered too: the requester is the automation’s creator, or whoever selected Run now. Each Approver needs their GitHub account linked to their Slack account, or the scope won’t save.

Answer code and product questions

What you get: a channel such as #ask-eng or #support-eng where support, sales, PMs, and new hires post questions. CodeRabbit replies in the thread with a plain-language answer backed by the code, the PR that changed the behavior, and the release it shipped in. Engineers only step in to correct or confirm when needed. Connections: repositories (required). Add Notion, Google Drive, Linear, or Jira if answers depend on specs or known issues.

Option A: mention the agent

Anyone can already ask @coderabbit in any channel the bot is in. This is the right choice for occasional questions, and needs no setup.

Option B: answer every question in the channel

  1. Create the channel, for example #ask-eng.
  2. Recommended: in Slack > Scopes, add a named scope for this channel. Give it only the repositories and connections it needs, and set its own Automation spend limit, because every post can start a run.
  3. In the channel, ask:
    Slack message
  4. Paste the starter instructions into the same message, send it, review the sample run, and select Create automation.

Question starter instructions

Make answers more useful

  • Learn from engineer corrections. When an engineer corrects an answer, reply with “@coderabbit remember this” or use /learn. Over time, the agent answers what used to need an engineer. See Knowledge Base.
  • Connect your docs and trackers. With Notion, Google Drive, Linear, or Jira connected, the agent can say “this is a known issue, tracked in ENG-1234, fix planned for the next release” instead of only describing the code. Tools without a built-in connector can be added as MCP servers.
  • Add a weekly FAQ digest. Add a second, weekly automation in the same channel: “Every Friday at 3pm, summarize the questions asked this week, group repeats, and flag the ones we answered with low confidence.” This shows what to document.
  • Add follow-up buttons. End the instructions with “Add buttons: Explain more simply (rewrite the answer for a non-technical reader), Save to knowledge base (save this answer as a fact) and Find an owner (name who most recently changed this code).”

Triage incoming support tickets

What you get: when a new ticket arrives, CodeRabbit posts a triage summary in your escalation channel within minutes. It says whether the ticket is a bug, expected behavior, or a known issue, how severe it is, which PRs, releases, or tickets are related, and includes a draft customer reply. A support engineer reviews it and, in the same thread, can ask CodeRabbit to post the reply, file a bug, or escalate. Connections: your support tool (Zendesk, Intercom, or Pylon) so the agent can read the whole ticket and write back, your repositories, and an issue tracker (Linear or Jira) for filing bugs. Optional: Salesforce or HubSpot so it can rank severity by customer.

Option A: trigger on every new ticket

  1. In the web app, open Automations, choose a Webhook trigger, and pick Zendesk, Intercom, or Pylon.
  2. Choose the events, for example ticket.created for Zendesk or conversation.user.created for Intercom. For Pylon, create a Pylon trigger with the send webhook action. The editor walks you through it.
  3. Optional: add a filter so only some tickets run, such as detail.priority equals HIGH for Zendesk or issue.priority equals urgent for Pylon.
  4. Choose the destination Slack channel, for example #support-escalations. Add your support tool as an additional destination if the agent should write an internal note on the ticket.
  5. Save and turn the automation on, set up the webhook in your support tool by following the steps shown, and send a test ticket.

Option B: trigger on escalations posted in Slack

If your support tool’s Slack app already posts new tickets to a channel, or agents post escalations there by hand, create a Slack channel message automation in that channel instead. Ask: “@coderabbit triage every new ticket posted in this channel using the steps below.” Paste the support starter instructions into the same message, send it, review the sample run, and select Create automation.

Support starter instructions

Make support triage more useful

  • Keep a person in the loop before anything is sent. The starter instructions say “Don’t send it,” so the automation only drafts. Add buttons that do the sending: “Add buttons: Post as internal note (add the draft to the ticket as an internal note), Send reply to customer (post the draft as a public reply), File Linear bug (create a Linear issue with the analysis).” Nothing reaches the customer until someone selects a button. Start with internal notes until you trust the drafts.
  • Feed it your known issues and macros. Use /learn for workarounds and known issues, and ask the agent to save your triage steps as a skill so every ticket gets the same checks.
  • Rank severity by customer. Connect Salesforce or HubSpot so the agent can weigh severity by the customer’s plan or deal size.
  • Tie into incident response. Add to the instructions: “If severity is Critical, also post a summary to #incidents.” If the incident automation watches #incidents, one flow feeds the other.
  • Add a weekly themes report. “Every Monday, summarize last week’s tickets in this channel by root cause, and list the top 3 code areas generating tickets.” Engineering managers can use it in planning.

Triage new engineering tickets

What you get: every new Linear, Jira, or GitHub issue gets a comment from CodeRabbit with the likely affected code, a suggested owner based on who has worked in that area, related PRs and possible duplicates, an effort and risk estimate, a suggested priority, and a short plan. A summary is posted in your team channel, where a lead can assign it, have a plan written, or ask CodeRabbit to open a PR. Connections: your issue tracker and your repositories. Linear and Jira trigger setup needs a tracker admin to authorize once.

Option A: triage each new ticket

  1. In the web app, open Automations and start from the Triage Linear issue, Triage Jira issue, or Triage GitHub issue template. Use Recommend fix on Linear issue or Recommend fix on Jira issue if you also want a proposed fix.
  2. Configure the trigger:
    • Linear: choose or connect a Linear workspace (CodeRabbit manages the webhook for you), pick the teams, and choose events such as Issue.create.
    • Jira: connect Jira (CodeRabbit manages the webhook) and pick up to 50 projects.
    • GitHub: pick a repository the CodeRabbit GitHub App already has access to and choose the issues event. No personal token is needed.
  3. To triage only some tickets, add a filter, for example only issues with the label needs-triage, or only issues in a Triage status.
  4. Add destinations: the tracker connection to post the comment, and a Slack channel for the summary.
  5. Save, turn the automation on, and create a test issue.

Option B: daily backlog sweep

In your team channel, ask:
Paste the engineering ticket starter instructions into the same message. You can run both options together. The “don’t have a CodeRabbit triage comment yet” condition stops the same issue from getting a second triage comment.

Engineering ticket starter instructions

Make ticket triage more useful

  • Turn the plan into code. End the instructions with “Add buttons: Assign to suggested owner (assign the issue to the owner you suggested), Write full plan (create a Coding Plan for this issue) and Open a PR (implement the plan and open a PR).” turn the short plan into a full implementation plan, and CodeRabbit can implement it and open the PR. A GitHub repository can be an automation destination, so the PR is opened with the CodeRabbit GitHub App’s permissions.
  • Keep code work out of the triage channel. If Code Channels are enabled, implementation moves to its own channel, and the triage channel only sees the summary.
  • Use Issue Enrichment for GitHub issues. Issue Enrichment comments on new GitHub issues automatically with duplicates, related PRs, suggested assignees, and labels. Use the automation for Linear and Jira, or when you want the Slack summary and buttons.
  • Teach it who owns what. Use /learn for team ownership and service boundaries that aren’t clear from the code, such as “billing UI is owned by the Growth team even though Platform wrote it.”
  • Follow the PRs to merge. Once PRs are open, Triage in Slack keeps them moving with digests, reviewer requests, and reminders.

Tell customer-facing teams what changed

What you get: every week, CodeRabbit posts a plain-language summary of the changes customers will notice to a channel such as #customer-updates or #support. Each item says what changed, who it affects, and how to explain it, with a link to the PR. Support, Sales, and CS can answer “what’s new?” without asking an engineer. Connections: none beyond your repositories. Optional: Linear or Jira so each change links to its ticket, and Zendesk, Intercom, or Pylon so the agent can point out open tickets a fix resolves.

Set up a weekly summary

  1. In the channel where the summary should go, for example #customer-updates, ask:
  2. Paste the starter instructions into the same message, send it, review the sample run, and select Create automation.
  3. If customers only see some of your repositories, name them in the request, for example “in the web-app and api repositories.”
Merged doesn’t always mean released. If your weekly summary might list changes that haven’t reached customers yet, add to the instructions: “Only include changes that are in a published release.”

Change summary starter instructions

Make change summaries more useful

  • Teach it your product’s language. Use /learn for the names customers see, for example “In customer-facing text, call an ‘org’ a ‘workspace’.” Once the format looks right, ask the agent to save it as a skill so every summary follows it.
  • Add buttons for the next step. End the instructions with “Add buttons: Draft customer email (rewrite this as an email to customers), Sales talking points (rewrite the New items as three talking points) and Help center updates (list the help articles that may need updating).”
  • Make sure the right people see breaking changes. Add to the instructions: “If anything is in Heads-up, also post it to #cs-leads.”
  • Link the request behind each change. With Linear or Jira connected, each item can link its ticket, so CS can tell the customers who asked for it.
  • Close the loop with Support. With Zendesk, Intercom, or Pylon connected, add: “For each item under Fixed, list open tickets that describe the same problem.” Support can then follow up with those customers.
  • Answer follow-up questions in the thread. Anyone in the channel can reply with @coderabbit and a question, such as “does the export fix apply to self-hosted?” Pair this with the question automation for questions that come up later.

What’s next

Automations

Learn how triggers, delivery, and permissions work.

Scopes

Control which repositories and tools automation runs can access.

Agent skills

Save a procedure once and reuse it in every run.