Slack Integration Setup

Terracotta AI connects to your Slack workspace to deliver PR review results, drift alerts, and AI-powered infrastructure chat โ€” all without leaving your team's channels.

Slack integration is available on Team plan and above. OSS (Free) plan users can upgrade from Settings > Billing.


๐Ÿš€ Overview

With Slack connected, your team gets:

  • Real-time notifications โ€” PR review results, drift alerts, and guardrail violations posted directly to your chosen channel
  • AI chat โ€” Ask Terracotta about your infrastructure, recent reviews, or drift status by mentioning it in any channel
  • Slash commands โ€” Quick status checks and activity summaries from the command line

๐Ÿ› ๏ธ Setting Up Slack

  1. Navigate to Settings > Integrations > Slack in your Terracotta dashboard
  2. Click Connect Slack
  3. You are redirected to Slack's OAuth authorization screen โ€” review the requested permissions and click Allow
  4. Select the channel where Terracotta should post notifications
  5. You are redirected back to Terracotta with a confirmation banner

The user initiating the connection must have admin permissions in both Terracotta and the Slack workspace.


๐Ÿ” Notifications

Once connected, Terracotta posts structured messages to your selected channel for:

  • PR review completions โ€” Summary of findings, severity breakdown, and a link to the full review
  • Drift alerts โ€” Drifted resources detected during scheduled or on-demand scans
  • Guardrail violations โ€” Policy violations caught during PR review with file and line references

Configure which notification types are active in Settings > Integrations > Slack > Notification Preferences.


๐Ÿง  AI Chat

Terracotta's Slack bot responds to natural-language questions about your infrastructure:

  • @mention Terracotta in any channel where the bot is present
  • DM the bot directly for private queries

Example prompts:

  • "What repos have active drift?"
  • "Summarize the last review on infra-core"
  • "Which guardrails failed this week?"

AI chat requires account linking (see below) to scope responses to your organization's data.


โœ… Account Linking

To enable personalized AI responses, link your Slack identity to your Terracotta account:

  1. Open a direct message with the Terracotta bot in Slack
  2. Send any message โ€” the bot responds with a linking prompt
  3. Click the link and authenticate with your Terracotta credentials
  4. Your Slack user is now associated with your Terracotta account

Linked accounts see responses scoped to their organization, repositories, and permissions.


๐Ÿ› ๏ธ Slash Commands

CommandDescription
/terracotta statusCheck connection status and recent activity

Slash commands work in any channel where the Terracotta bot is installed.


๐Ÿ” Disconnecting

To remove the Slack integration:

  1. Go to Settings > Integrations > Slack
  2. Click Disconnect
  3. Confirm the action in the dialog

Disconnecting removes all channel bindings and stops notifications. AI chat and slash commands become unavailable. You can reconnect at any time by repeating the setup flow.


๐Ÿ“‹ TL;DR

  • Slack integration is available on Team plan and above
  • Connect via Settings > Integrations > Slack using OAuth
  • Receive PR review, drift, and guardrail notifications in your channel
  • Use AI chat by @mentioning the bot or DMing it directly
  • Link your Slack account to your Terracotta account for personalized responses
  • /terracotta status for quick connection and activity checks
  • Disconnect anytime from Settings without affecting your Terracotta data