---
title: "Slack Integration"
source: https://docs.autohand.ai/integrations/slack
---

# Slack

Connect Autohand to your Slack workspace for AI-powered code assistance, incident response, and team collaboration.

## Overview

Autohand for Slack brings AI engineering assistance directly to your team's conversations. Debug production issues, answer codebase questions, and ship code without leaving Slack.

[Add to Slack](/slack/)

### How it works

 

#### Connect

Add Autohand to your Slack workspace in one click. No complex setup required.

 

#### Context

Autohand learns your codebase, PRs, and team patterns to provide relevant answers.

 

#### Command

Ask questions, debug issues, and ship code from any channel or DM.

## Use cases

Autohand helps your team in several key workflows:

#### Incident response

Debug production issues in real-time. Get root cause analysis and suggested fixes within minutes.

#### Code reviews

Get AI-assisted PR reviews directly in Slack threads. Catch bugs before they ship.

#### Team Q&A

Answer codebase questions instantly. Help your team find what they need without interrupting others.

#### Onboarding

Help new engineers understand the codebase. Answer architecture questions on demand.

## Setup

Follow these steps to connect Autohand to your Slack workspace:

### Step 1: Install the app

1.  Click the **Add to Slack** button above or visit your [Autohand for Slack](/slack/) page
2.  Select the Slack workspace you want to connect
3.  Review and approve the requested permissions
4.  Click **Allow** to complete the installation

### Step 2: Connect repositories

After installation, connect your code repositories:

1.  Go to **Settings > Integrations** in your Autohand dashboard
2.  Click **Connect Repository** and select GitHub, GitLab, or Bitbucket
3.  Choose which repositories Autohand can access
4.  Autohand will begin indexing your codebase

### Step 3: Invite to channels

Invite Autohand to channels where you want it available:

``` text
/invite @autohand
```

Autohand will only respond in channels where it's explicitly invited.

## Permissions

Autohand requests the minimum permissions needed to function:

| Permission | Purpose | Scope |
|---|---|---|
| channels:read | View basic channel info | Invited channels only |
| channels:history | Read messages for context | Invited channels only |
| chat:write | Send responses | Invited channels only |
| app_mentions:read | Respond when mentioned | All mentions |
| im:read | Read direct messages | DMs with Autohand |
| im:write | Respond to direct messages | DMs with Autohand |

## Slash commands

Autohand responds to mentions and provides several slash commands:

### Mention Autohand

``` text
@autohand why is our API returning 500 errors?
```

### Available commands

| Command | Description |
|---|---|
| /autohand help | Show available commands |
| /autohand status | Check connection status |
| /autohand search [query] | Search the codebase |
| /autohand review [PR URL] | Review a pull request |
| /autohand explain [file path] | Explain a file or function |

## Configuration

Configure Autohand behavior from your dashboard:

### Channel settings

-   **Response mode**: Choose between threaded replies or channel messages
-   **Auto-respond**: Automatically respond to certain message patterns
-   **Quiet hours**: Disable notifications during specified times

### Repository access

-   **Branch restrictions**: Limit which branches Autohand can read
-   **File filters**: Exclude sensitive files from indexing
-   **Refresh interval**: Control how often the codebase is re-indexed

## Security

Autohand is built with security as a priority:

-   **No code storage**: Your code is processed but never stored on our servers
-   **Encrypted connections**: All data is transmitted over TLS 1.3
-   **SOC 2 Type II**: Enterprise plans include compliance certification
-   **Audit logs**: Track all Autohand activity in your workspace
-   **SSO integration**: Enterprise plans support SAML and OIDC

## Troubleshooting

### Autohand is not responding

1.  Verify Autohand is invited to the channel with `/invite @autohand`
2.  Check your API key is valid in **Settings > Integrations**
3.  Ensure the workspace connection is active

### Slow responses

Response times depend on codebase size and query complexity. For large repositories:

-   Consider excluding test files and generated code from indexing
-   Use specific file paths or function names in your questions
-   Upgrade to a higher plan for increased throughput

### Missing context

If Autohand seems unaware of recent changes:

-   Trigger a manual reindex from **Settings > Repositories**
-   Check that the relevant branch is configured for indexing
-   Verify webhook delivery in your repository settings