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.
- 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.
- 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.
- Add the bot to private channels. CodeRabbit joins public channels automatically. For a private channel, run
/invite @coderabbitin the channel first. Otherwise, saving the automation fails with âCodeRabbit could not post in that Slack channel.â - 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.
- 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.
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.
-
In that channel, ask:
Slack message
- Paste the starter instructions into the same message, send it, review the sample run, and select Create automation.
-
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.- 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.
- Choose event types, such as
incident.triggered, and add filters such asevent.data.priority.nameequalsP1. Datadog starts with a filter onalert_transitionequalsTriggered. - Choose the destination Slack channel.
- 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
/learnor 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
-
Create the channel, for example
#ask-eng. - 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.
-
In the channel, ask:
Slack message
- 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
- In the web app, open Automations, choose a Webhook trigger, and pick Zendesk, Intercom, or Pylon.
- Choose the events, for example
ticket.createdfor Zendesk orconversation.user.createdfor Intercom. For Pylon, create a Pylon trigger with the send webhook action. The editor walks you through it. - Optional: add a filter so only some tickets run, such as
detail.priorityequalsHIGHfor Zendesk orissue.priorityequalsurgentfor Pylon. - 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. - 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
/learnfor 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
- 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.
- 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
issuesevent. No personal token is needed.
- Linear: choose or connect a Linear workspace (CodeRabbit manages the webhook for you), pick the teams, and choose events such as
- To triage only some tickets, add a filter, for example only issues with the label
needs-triage, or only issues in a Triage status. - Add destinations: the tracker connection to post the comment, and a Slack channel for the summary.
- Save, turn the automation on, and create a test issue.
Option B: daily backlog sweep
In your team channel, ask: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
/learnfor 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
-
In the channel where the summary should go, for example
#customer-updates, ask: - Paste the starter instructions into the same message, send it, review the sample run, and select Create automation.
-
If customers only see some of your repositories, name them in the request, for example âin the
web-appandapirepositories.â
Change summary starter instructions
Make change summaries more useful
- Teach it your productâs language. Use
/learnfor 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
@coderabbitand 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.